From bd0b78ed478c81b20060fe9f606a240b1abc3b96 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 23 Mar 2026 22:05:28 +0000 Subject: [PATCH 1/8] feat: add locations field to AutomatedBackupPolicy docs: A comment for field `retention_period` in message `.google.bigtable.admin.v2.Table` is changed docs: A comment for field `frequency` in message `.google.bigtable.admin.v2.Table` is changed PiperOrigin-RevId: 888234464 Source-Link: https://github.com/googleapis/googleapis/commit/5993bc685e72fbda796378c146533f7ef6e95d8a Source-Link: https://github.com/googleapis/googleapis-gen/commit/773a76b233a0a2b8ba165129579441cedb68f157 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWJpZ3RhYmxlLWFkbWluLXYyLy5Pd2xCb3QueWFtbCIsImgiOiI3NzNhNzZiMjMzYTBhMmI4YmExNjUxMjk1Nzk0NDFjZWRiNjhmMTU3In0= --- .../google-cloud-bigtable-admin-v2/.gitignore | 22 + .../.repo-metadata.json | 18 + .../.rubocop.yml | 33 + .../google-cloud-bigtable-admin-v2/.toys.rb | 28 + .../google-cloud-bigtable-admin-v2/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../CHANGELOG.md | 2 + .../google-cloud-bigtable-admin-v2/Gemfile | 14 + .../google-cloud-bigtable-admin-v2/LICENSE.md | 201 + .../google-cloud-bigtable-admin-v2/README.md | 154 + .../google-cloud-bigtable-admin-v2/Rakefile | 169 + .../gapic_metadata.json | 357 ++ .../google-cloud-bigtable-admin-v2.gemspec | 29 + .../lib/google-cloud-bigtable-admin-v2.rb | 21 + .../admin/v2/bigtable_instance_admin_pb.rb | 78 + .../v2/bigtable_instance_admin_services_pb.rb | 142 + .../admin/v2/bigtable_table_admin_pb.rb | 91 + .../v2/bigtable_table_admin_services_pb.rb | 182 + .../lib/google/bigtable/admin/v2/common_pb.rb | 26 + .../google/bigtable/admin/v2/instance_pb.rb | 49 + .../lib/google/bigtable/admin/v2/table_pb.rb | 58 + .../lib/google/bigtable/admin/v2/types_pb.rb | 57 + .../lib/google/cloud/bigtable/admin/v2.rb | 43 + .../admin/v2/bigtable_instance_admin.rb | 54 + .../v2/bigtable_instance_admin/client.rb | 3710 ++++++++++++++ .../v2/bigtable_instance_admin/credentials.rb | 59 + .../v2/bigtable_instance_admin/operations.rb | 843 ++++ .../admin/v2/bigtable_instance_admin/paths.rb | 180 + .../bigtable/admin/v2/bigtable_table_admin.rb | 56 + .../admin/v2/bigtable_table_admin/client.rb | 4266 +++++++++++++++++ .../v2/bigtable_table_admin/credentials.rb | 58 + .../v2/bigtable_table_admin/operations.rb | 843 ++++ .../admin/v2/bigtable_table_admin/paths.rb | 214 + .../google/cloud/bigtable/admin/v2/version.rb | 30 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 473 ++ .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../admin/v2/bigtable_instance_admin.rb | 767 +++ .../bigtable/admin/v2/bigtable_table_admin.rb | 1167 +++++ .../google/bigtable/admin/v2/common.rb | 58 + .../google/bigtable/admin/v2/instance.rb | 519 ++ .../google/bigtable/admin/v2/table.rb | 741 +++ .../google/bigtable/admin/v2/types.rb | 575 +++ .../proto_docs/google/iam/v1/iam_policy.rb | 87 + .../proto_docs/google/iam/v1/options.rb | 50 + .../proto_docs/google/iam/v1/policy.rb | 426 ++ .../google/longrunning/operations.rb | 191 + .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/rpc/status.rb | 48 + .../proto_docs/google/type/expr.rb | 75 + .../snippets/Gemfile | 32 + .../create_app_profile.rb | 47 + .../bigtable_instance_admin/create_cluster.rb | 54 + .../create_instance.rb | 54 + .../create_logical_view.rb | 54 + .../create_materialized_view.rb | 54 + .../delete_app_profile.rb | 47 + .../bigtable_instance_admin/delete_cluster.rb | 47 + .../delete_instance.rb | 47 + .../delete_logical_view.rb | 47 + .../delete_materialized_view.rb | 47 + .../get_app_profile.rb | 47 + .../bigtable_instance_admin/get_cluster.rb | 47 + .../bigtable_instance_admin/get_iam_policy.rb | 47 + .../bigtable_instance_admin/get_instance.rb | 47 + .../get_logical_view.rb | 47 + .../get_materialized_view.rb | 47 + .../list_app_profiles.rb | 51 + .../bigtable_instance_admin/list_clusters.rb | 47 + .../list_hot_tablets.rb | 51 + .../bigtable_instance_admin/list_instances.rb | 47 + .../list_logical_views.rb | 51 + .../list_materialized_views.rb | 51 + .../partial_update_cluster.rb | 54 + .../partial_update_instance.rb | 54 + .../bigtable_instance_admin/set_iam_policy.rb | 47 + .../test_iam_permissions.rb | 47 + .../update_app_profile.rb | 54 + .../bigtable_instance_admin/update_cluster.rb | 54 + .../update_instance.rb | 47 + .../update_logical_view.rb | 54 + .../update_materialized_view.rb | 54 + .../bigtable_table_admin/check_consistency.rb | 47 + .../bigtable_table_admin/copy_backup.rb | 54 + .../create_authorized_view.rb | 54 + .../bigtable_table_admin/create_backup.rb | 54 + .../create_schema_bundle.rb | 54 + .../bigtable_table_admin/create_table.rb | 47 + .../create_table_from_snapshot.rb | 54 + .../delete_authorized_view.rb | 47 + .../bigtable_table_admin/delete_backup.rb | 47 + .../delete_schema_bundle.rb | 47 + .../bigtable_table_admin/delete_snapshot.rb | 47 + .../bigtable_table_admin/delete_table.rb | 47 + .../bigtable_table_admin/drop_row_range.rb | 47 + .../generate_consistency_token.rb | 47 + .../get_authorized_view.rb | 47 + .../bigtable_table_admin/get_backup.rb | 47 + .../bigtable_table_admin/get_iam_policy.rb | 47 + .../bigtable_table_admin/get_schema_bundle.rb | 47 + .../bigtable_table_admin/get_snapshot.rb | 47 + .../bigtable_table_admin/get_table.rb | 47 + .../list_authorized_views.rb | 51 + .../bigtable_table_admin/list_backups.rb | 51 + .../list_schema_bundles.rb | 51 + .../bigtable_table_admin/list_snapshots.rb | 51 + .../bigtable_table_admin/list_tables.rb | 51 + .../modify_column_families.rb | 47 + .../bigtable_table_admin/restore_table.rb | 54 + .../bigtable_table_admin/set_iam_policy.rb | 47 + .../bigtable_table_admin/snapshot_table.rb | 54 + .../test_iam_permissions.rb | 47 + .../bigtable_table_admin/undelete_table.rb | 54 + .../update_authorized_view.rb | 54 + .../bigtable_table_admin/update_backup.rb | 47 + .../update_schema_bundle.rb | 54 + .../bigtable_table_admin/update_table.rb | 54 + ...pet_metadata_google.bigtable.admin.v2.json | 2655 ++++++++++ ...bigtable_instance_admin_operations_test.rb | 400 ++ .../v2/bigtable_instance_admin_paths_test.rb | 139 + .../admin/v2/bigtable_instance_admin_test.rb | 2093 ++++++++ .../bigtable_table_admin_operations_test.rb | 400 ++ .../v2/bigtable_table_admin_paths_test.rb | 151 + .../admin/v2/bigtable_table_admin_test.rb | 2339 +++++++++ .../test/helper.rb | 26 + 131 files changed, 29938 insertions(+) create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/README.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/common_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json new file mode 100644 index 000000000000..b1afcd60adc1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json @@ -0,0 +1,18 @@ +{ + "api_id": "bigtableadmin.googleapis.com", + "api_shortname": "bigtableadmin", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest", + "distribution_name": "google-cloud-bigtable-admin-v2", + "is_cloud": true, + "language": "ruby", + "name": "bigtableadmin", + "name_pretty": "Cloud Bigtable Admin V2 API", + "product_documentation": "https://cloud.google.com/bigtable", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details.", + "ruby-cloud-env-prefix": "BIGTABLE", + "ruby-cloud-product-url": "https://cloud.google.com/bigtable", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml new file mode 100644 index 000000000000..8b307e35af07 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-bigtable-admin-v2.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-bigtable-admin-v2.rb" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts new file mode 100644 index 000000000000..73aed5753bd5 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Cloud Bigtable Admin V2 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md new file mode 100644 index 000000000000..1bb27d1cc834 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-bigtable-admin-v2 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-bigtable-admin-v2 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/bigtable/admin/v2" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/bigtable/admin/v2" + +::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-bigtable-admin-v2 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/bigtable/admin/v2" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md new file mode 100644 index 000000000000..7fe6da059f1e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Cloud Bigtable Admin V2 API + +Administer your Cloud Bigtable tables and instances. + +Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Cloud Bigtable Admin V2 API. Most users should consider using +the main client gem, +[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-bigtable-admin-v2 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/bigtable/admin/v2" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +request = ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new # (request fields as keyword arguments...) +response = client.create_instance request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/bigtable) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/bigtable/admin/v2" +require "logger" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-bigtable`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-bigtable-admin-v2`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-bigtable`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-bigtable-admin-v2`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile new file mode 100644 index 000000000000..485278a34b9d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-bigtable-admin-v2 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["BIGTABLE_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["BIGTABLE_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["BIGTABLE_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or BIGTABLE_TEST_PROJECT=test123 BIGTABLE_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" + ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["BIGTABLE_PROJECT"] = project + ENV["BIGTABLE_TEST_PROJECT"] = project + ENV["BIGTABLE_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-bigtable-admin-v2 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-bigtable-admin-v2 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-bigtable-admin-v2" + header "google-cloud-bigtable-admin-v2 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-bigtable-admin-v2 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-bigtable-admin-v2 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-bigtable-admin-v2 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-bigtable-admin-v2 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json new file mode 100644 index 000000000000..2370ce3ced54 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json @@ -0,0 +1,357 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.bigtable.admin.v2", + "libraryPackage": "::Google::Cloud::Bigtable::Admin::V2", + "services": { + "BigtableInstanceAdmin": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client", + "rpcs": { + "CreateInstance": { + "methods": [ + "create_instance" + ] + }, + "GetInstance": { + "methods": [ + "get_instance" + ] + }, + "ListInstances": { + "methods": [ + "list_instances" + ] + }, + "UpdateInstance": { + "methods": [ + "update_instance" + ] + }, + "PartialUpdateInstance": { + "methods": [ + "partial_update_instance" + ] + }, + "DeleteInstance": { + "methods": [ + "delete_instance" + ] + }, + "CreateCluster": { + "methods": [ + "create_cluster" + ] + }, + "GetCluster": { + "methods": [ + "get_cluster" + ] + }, + "ListClusters": { + "methods": [ + "list_clusters" + ] + }, + "UpdateCluster": { + "methods": [ + "update_cluster" + ] + }, + "PartialUpdateCluster": { + "methods": [ + "partial_update_cluster" + ] + }, + "DeleteCluster": { + "methods": [ + "delete_cluster" + ] + }, + "CreateAppProfile": { + "methods": [ + "create_app_profile" + ] + }, + "GetAppProfile": { + "methods": [ + "get_app_profile" + ] + }, + "ListAppProfiles": { + "methods": [ + "list_app_profiles" + ] + }, + "UpdateAppProfile": { + "methods": [ + "update_app_profile" + ] + }, + "DeleteAppProfile": { + "methods": [ + "delete_app_profile" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, + "ListHotTablets": { + "methods": [ + "list_hot_tablets" + ] + }, + "CreateLogicalView": { + "methods": [ + "create_logical_view" + ] + }, + "GetLogicalView": { + "methods": [ + "get_logical_view" + ] + }, + "ListLogicalViews": { + "methods": [ + "list_logical_views" + ] + }, + "UpdateLogicalView": { + "methods": [ + "update_logical_view" + ] + }, + "DeleteLogicalView": { + "methods": [ + "delete_logical_view" + ] + }, + "CreateMaterializedView": { + "methods": [ + "create_materialized_view" + ] + }, + "GetMaterializedView": { + "methods": [ + "get_materialized_view" + ] + }, + "ListMaterializedViews": { + "methods": [ + "list_materialized_views" + ] + }, + "UpdateMaterializedView": { + "methods": [ + "update_materialized_view" + ] + }, + "DeleteMaterializedView": { + "methods": [ + "delete_materialized_view" + ] + } + } + } + } + }, + "BigtableTableAdmin": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client", + "rpcs": { + "CreateTable": { + "methods": [ + "create_table" + ] + }, + "CreateTableFromSnapshot": { + "methods": [ + "create_table_from_snapshot" + ] + }, + "ListTables": { + "methods": [ + "list_tables" + ] + }, + "GetTable": { + "methods": [ + "get_table" + ] + }, + "UpdateTable": { + "methods": [ + "update_table" + ] + }, + "DeleteTable": { + "methods": [ + "delete_table" + ] + }, + "UndeleteTable": { + "methods": [ + "undelete_table" + ] + }, + "CreateAuthorizedView": { + "methods": [ + "create_authorized_view" + ] + }, + "ListAuthorizedViews": { + "methods": [ + "list_authorized_views" + ] + }, + "GetAuthorizedView": { + "methods": [ + "get_authorized_view" + ] + }, + "UpdateAuthorizedView": { + "methods": [ + "update_authorized_view" + ] + }, + "DeleteAuthorizedView": { + "methods": [ + "delete_authorized_view" + ] + }, + "ModifyColumnFamilies": { + "methods": [ + "modify_column_families" + ] + }, + "DropRowRange": { + "methods": [ + "drop_row_range" + ] + }, + "GenerateConsistencyToken": { + "methods": [ + "generate_consistency_token" + ] + }, + "CheckConsistency": { + "methods": [ + "check_consistency" + ] + }, + "SnapshotTable": { + "methods": [ + "snapshot_table" + ] + }, + "GetSnapshot": { + "methods": [ + "get_snapshot" + ] + }, + "ListSnapshots": { + "methods": [ + "list_snapshots" + ] + }, + "DeleteSnapshot": { + "methods": [ + "delete_snapshot" + ] + }, + "CreateBackup": { + "methods": [ + "create_backup" + ] + }, + "GetBackup": { + "methods": [ + "get_backup" + ] + }, + "UpdateBackup": { + "methods": [ + "update_backup" + ] + }, + "DeleteBackup": { + "methods": [ + "delete_backup" + ] + }, + "ListBackups": { + "methods": [ + "list_backups" + ] + }, + "RestoreTable": { + "methods": [ + "restore_table" + ] + }, + "CopyBackup": { + "methods": [ + "copy_backup" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, + "CreateSchemaBundle": { + "methods": [ + "create_schema_bundle" + ] + }, + "UpdateSchemaBundle": { + "methods": [ + "update_schema_bundle" + ] + }, + "GetSchemaBundle": { + "methods": [ + "get_schema_bundle" + ] + }, + "ListSchemaBundles": { + "methods": [ + "list_schema_bundles" + ] + }, + "DeleteSchemaBundle": { + "methods": [ + "delete_schema_bundle" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec new file mode 100644 index 000000000000..d15e999177a9 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec @@ -0,0 +1,29 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/bigtable/admin/v2/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-bigtable-admin-v2" + gem.version = Google::Cloud::Bigtable::Admin::V2::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details." + gem.summary = "Administer your Cloud Bigtable tables and instances." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "grpc-google-iam-v1", "~> 1.11" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb new file mode 100644 index 000000000000..0c7aa4cc6208 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/bigtable/admin/v2" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb new file mode 100644 index 000000000000..ada921bfd341 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb @@ -0,0 +1,78 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/bigtable_instance_admin.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/instance_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"Q\n\x12GetInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"T\n\x15\x44\x65leteInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"\xa7\x01\n\x14\x43reateClusterRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\"O\n\x11GetClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"h\n\x13ListClustersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"R\n\x14\x44\x65leteClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfb\x04\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x06tables\x18\x04 \x03(\x0b\x32;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1a\xf9\x01\n\rTableProgress\x12\x1c\n\x14\x65stimated_size_bytes\x18\x02 \x01(\x03\x12\x1e\n\x16\x65stimated_copied_bytes\x18\x03 \x01(\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32\x43.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07\x43OPYING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1al\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x02\x38\x01\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd2\x01\n\x1cPartialUpdateClusterMetadata\x12\x30\n\x0crequest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x10original_request\x18\x03 \x01(\x0b\x32\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8c\x01\n\x1bPartialUpdateClusterRequest\x12\x37\n\x07\x63luster\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xce\x01\n\x17\x43reateAppProfileRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"U\n\x14GetAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\"~\n\x16ListAppProfilesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"v\n\x17\x44\x65leteAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\x12\x1c\n\x0fignore_warnings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\xda\x01\n\x15ListHotTabletsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"k\n\x16ListHotTabletsResponse\x12\x38\n\x0bhot_tablets\x18\x01 \x03(\x0b\x32#.google.bigtable.admin.v2.HotTablet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\x18\x43reateLogicalViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1c\n\x0flogical_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0clogical_view\x18\x03 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\"\xc7\x01\n\x19\x43reateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x15GetLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\"\x8c\x01\n\x17ListLogicalViewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"q\n\x18ListLogicalViewsResponse\x12<\n\rlogical_views\x18\x01 \x03(\x0b\x32%.google.bigtable.admin.v2.LogicalView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x92\x01\n\x18UpdateLogicalViewRequest\x12@\n\x0clogical_view\x18\x01 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xc7\x01\n\x19UpdateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"m\n\x18\x44\x65leteLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1d\x43reateMaterializedViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12!\n\x14materialized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11materialized_view\x18\x03 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\"\xd1\x01\n\x1e\x43reateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1aGetMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\n\x1cListMaterializedViewsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1dListMaterializedViewsResponse\x12\x46\n\x12materialized_views\x18\x01 \x03(\x0b\x32*.google.bigtable.admin.v2.MaterializedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa1\x01\n\x1dUpdateMaterializedViewRequest\x12J\n\x11materialized_view\x18\x01 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xd1\x01\n\x1eUpdateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1d\x44\x65leteMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xe6\x36\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16\x43reateInstanceMetadata\xda\x41$parent,instance_id,instance,clusters\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16UpdateInstanceMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\xda\x41\x19parent,cluster_id,cluster\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\x12\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\'\n\x07\x43luster\x12\x1cPartialUpdateClusterMetadata\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07\x63luster\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"h\xda\x41!parent,app_profile_id,app_profile\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\xda\x41\x17\x61pp_profile,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\xb4\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\xda\x41\x14name,ignore_warnings\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaa\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xde\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xb1\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xe5\x01\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xe8\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xfc\x01\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\xde\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xbf\x01\n\x0eListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a\x30.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\n\x11\x43reateLogicalView\x12\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41(\n\x0bLogicalView\x12\x19\x43reateLogicalViewMetadata\xda\x41#parent,logical_view,logical_view_id\x82\xd3\xe4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0clogical_view\x12\xa9\x01\n\x0eGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1a%.google.bigtable.admin.v2.LogicalView\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xbc\x01\n\x10ListLogicalViews\x12\x31.google.bigtable.admin.v2.ListLogicalViewsRequest\x1a\x32.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\n\x11UpdateLogicalView\x12\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41(\n\x0bLogicalView\x12\x19UpdateLogicalViewMetadata\xda\x41\x18logical_view,update_mask\x82\xd3\xe4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0clogical_view\x12\xa0\x01\n\x11\x44\x65leteLogicalView\x12\x32.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xa8\x02\n\x16\x43reateMaterializedView\x12\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41\x32\n\x10MaterializedView\x12\x1e\x43reateMaterializedViewMetadata\xda\x41-parent,materialized_view,materialized_view_id\x82\xd3\xe4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xbd\x01\n\x13GetMaterializedView\x12\x34.google.bigtable.admin.v2.GetMaterializedViewRequest\x1a*.google.bigtable.admin.v2.MaterializedView\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xd0\x01\n\x15ListMaterializedViews\x12\x36.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1a\x37.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/instances/*}/materializedViews\x12\xaa\x02\n\x16UpdateMaterializedView\x12\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x32\n\x10MaterializedView\x12\x1eUpdateMaterializedViewMetadata\xda\x41\x1dmaterialized_view,update_mask\x82\xd3\xe4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xaf\x01\n\x16\x44\x65leteMaterializedView\x12\x37.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xdd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass + GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass + ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass + ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass + PartialUpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass + DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass + CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass + GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass + ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass + ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass + DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass + CreateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass + UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass + CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass + CreateClusterMetadata::TableProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress").msgclass + CreateClusterMetadata::TableProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State").enummodule + UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass + PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass + PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass + CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass + GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass + ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass + ListAppProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass + UpdateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass + DeleteAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass + UpdateAppProfileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass + ListHotTabletsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsRequest").msgclass + ListHotTabletsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsResponse").msgclass + CreateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewRequest").msgclass + CreateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewMetadata").msgclass + GetLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetLogicalViewRequest").msgclass + ListLogicalViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsRequest").msgclass + ListLogicalViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsResponse").msgclass + UpdateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewRequest").msgclass + UpdateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewMetadata").msgclass + DeleteLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteLogicalViewRequest").msgclass + CreateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewRequest").msgclass + CreateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewMetadata").msgclass + GetMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetMaterializedViewRequest").msgclass + ListMaterializedViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsRequest").msgclass + ListMaterializedViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsResponse").msgclass + UpdateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewRequest").msgclass + UpdateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewMetadata").msgclass + DeleteMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteMaterializedViewRequest").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb new file mode 100644 index 000000000000..5719dfcb7960 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb @@ -0,0 +1,142 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2' +# Original file comments: +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/bigtable/admin/v2/bigtable_instance_admin_pb' + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin' + + # Create an instance within a project. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation + # Gets information about an instance. + rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance + # Lists information about instances in a project. + rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse + # Updates an instance within a project. This method updates only the display + # name and type for an Instance. To update other Instance properties, such as + # labels, use PartialUpdateInstance. + rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance + # Partially updates an instance within a project. This method can modify all + # fields of an Instance and is the preferred way to update an Instance. + rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation + # Delete an instance from a project. + rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty + # Creates a cluster within an instance. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation + # Gets information about a cluster. + rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster + # Lists information about clusters in an instance. + rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse + # Updates a cluster within an instance. + # + # Note that UpdateCluster does not support updating + # cluster_config.cluster_autoscaling_config. In order to update it, you + # must use PartialUpdateCluster. + rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation + # Partially updates a cluster within a project. This method is the preferred + # way to update a Cluster. + # + # To enable and update autoscaling, set + # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + # are ignored. Note that an update cannot simultaneously set serve_nodes to + # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + # also specify both in the update_mask. + # + # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + # and explicitly set a serve_node count via the update_mask. + rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation + # Deletes a cluster from an instance. + rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty + # Creates an app profile within an instance. + rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile + # Gets information about an app profile. + rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile + # Lists information about app profiles in an instance. + rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse + # Updates an app profile within an instance. + rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation + # Deletes an app profile from an instance. + rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty + # Gets the access control policy for an instance resource. Returns an empty + # policy if an instance exists but does not have a policy set. + rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy + # Sets the access control policy on an instance resource. Replaces any + # existing policy. + rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy + # Returns permissions that the caller has on the specified instance resource. + rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse + # Lists hot tablets in a cluster, within the time range provided. Hot + # tablets are ordered based on CPU usage. + rpc :ListHotTablets, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse + # Creates a logical view within an instance. + rpc :CreateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Google::Longrunning::Operation + # Gets information about a logical view. + rpc :GetLogicalView, ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Google::Cloud::Bigtable::Admin::V2::LogicalView + # Lists information about logical views in an instance. + rpc :ListLogicalViews, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse + # Updates a logical view within an instance. + rpc :UpdateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Google::Longrunning::Operation + # Deletes a logical view from an instance. + rpc :DeleteLogicalView, ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Google::Protobuf::Empty + # Creates a materialized view within an instance. + rpc :CreateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Google::Longrunning::Operation + # Gets information about a materialized view. + rpc :GetMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Google::Cloud::Bigtable::Admin::V2::MaterializedView + # Lists information about materialized views in an instance. + rpc :ListMaterializedViews, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse + # Updates a materialized view within an instance. + rpc :UpdateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Google::Longrunning::Operation + # Deletes a materialized view from an instance. + rpc :DeleteMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Google::Protobuf::Empty + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb new file mode 100644 index 000000000000..52a9ea2d2e01 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb @@ -0,0 +1,91 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/bigtable_table_admin.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/common_pb' +require 'google/bigtable/admin/v2/table_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x13RestoreTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info\"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\n\x12\x43reateTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"\xbe\x01\n\x1e\x43reateTableFromSnapshotRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0fsource_snapshot\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\n\x13\x44ropRowRangeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"\xad\x01\n\x11ListTablesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\x9d\x01\n\x12UpdateTableRequest\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13UpdateTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n\x12\x44\x65leteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"P\n\x14UndeleteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"\x83\x01\n\x15UndeleteTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x03\n\x1bModifyColumnFamiliesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xdb\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x12\x34\n\x0bupdate_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x05\n\x03mod\"[\n\x1fGenerateConsistencyTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"\xb2\x02\n\x17\x43heckConsistencyRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1bstandard_read_remote_writes\x18\x03 \x01(\x0b\x32\x32.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\n\x1c\x64\x61ta_boost_read_local_writes\x18\x04 \x01(\x0b\x32\x32.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00\x42\x06\n\x04mode\"\x1a\n\x18StandardReadRemoteWrites\"\x1a\n\x18\x44\x61taBoostReadLocalWrites\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\xe6\x01\n\x14SnapshotTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12=\n\x07\x63luster\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"Q\n\x12GetSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"{\n\x14ListSnapshotsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15\x44\x65leteSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa2\x01\n\x13\x43reateBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"M\n\x10GetBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"P\n\x13\x44\x65leteBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"\x9b\x01\n\x12ListBackupsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe3\x01\n\x11\x43opyBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rsource_backup\x18\x03 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xcd\x01\n\x12\x43opyBackupMetadata\x12\x36\n\x04name\x18\x01 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12@\n\x12source_backup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfo\x12=\n\x08progress\x18\x03 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\xcb\x01\n\x1b\x43reateAuthorizedViewRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1f\n\x12\x61uthorized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0f\x61uthorized_view\x18\x03 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\"\xd2\x01\n\x1c\x43reateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x1aListAuthorizedViewsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x04view\x18\x04 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"z\n\x1bListAuthorizedViewsResponse\x12\x42\n\x10\x61uthorized_views\x18\x01 \x03(\x0b\x32(.google.bigtable.admin.v2.AuthorizedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x18GetAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"\xb9\x01\n\x1bUpdateAuthorizedViewRequest\x12\x46\n\x0f\x61uthorized_view\x18\x01 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x1cUpdateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x1b\x44\x65leteAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x19\x43reateSchemaBundleRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1d\n\x10schema_bundle_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rschema_bundle\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\"\x88\x01\n\x1a\x43reateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x01\n\x19UpdateSchemaBundleRequest\x12\x42\n\rschema_bundle\x18\x01 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x1aUpdateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x16GetSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\n\x18ListSchemaBundlesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x19ListSchemaBundlesResponse\x12>\n\x0eschema_bundles\x18\x01 \x03(\x0b\x32&.google.bigtable.admin.v2.SchemaBundle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x19\x44\x65leteSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\x92@\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\xda\x41\x15parent,table_id,table\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\xda\x41\x1fparent,table_id,source_snapshot\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xce\x01\n\x0bUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1c\n\x05Table\x12\x13UpdateTableMetadata\xda\x41\x11table,update_mask\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xca\x41\x1e\n\x05Table\x12\x15UndeleteTableMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xa1\x02\n\x14\x43reateAuthorizedView\x12\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41.\n\x0e\x41uthorizedView\x12\x1c\x43reateAuthorizedViewMetadata\xda\x41)parent,authorized_view,authorized_view_id\x82\xd3\xe4\x93\x02O\"\x12\x12*\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass + Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule + Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule + AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass + AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass + Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass + Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass + Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass + Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass + Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule + Cluster::NodeScalingFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.NodeScalingFactor").enummodule + AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass + AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass + AppProfile::MultiClusterRoutingUseAny::RowAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity").msgclass + AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass + AppProfile::StandardIsolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.StandardIsolation").msgclass + AppProfile::DataBoostIsolationReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly").msgclass + AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner").enummodule + AppProfile::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.Priority").enummodule + HotTablet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.HotTablet").msgclass + LogicalView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.LogicalView").msgclass + MaterializedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.MaterializedView").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb new file mode 100644 index 000000000000..4b069137666b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/table.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/types_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/timestamp_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass + ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass + Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass + Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass + Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule + Table::AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.AutomatedBackupPolicy").msgclass + Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule + Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule + AuthorizedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView").msgclass + AuthorizedView::FamilySubsets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.FamilySubsets").msgclass + AuthorizedView::SubsetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.SubsetView").msgclass + AuthorizedView::ResponseView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.ResponseView").enummodule + ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass + GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass + GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass + GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass + EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass + EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule + Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass + Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule + Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass + Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule + Backup::BackupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.BackupType").enummodule + BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass + TieredStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageConfig").msgclass + TieredStorageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageRule").msgclass + ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ProtoSchema").msgclass + SchemaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SchemaBundle").msgclass + RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb new file mode 100644 index 000000000000..7a9e1c6a0620 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/types.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc7\x19\n\x04Type\x12:\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\n\x0bstring_type\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StringH\x00\x12:\n\nint64_type\x18\x05 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float64H\x00\x12\x38\n\tbool_type\x18\x08 \x01(\x0b\x32#.google.bigtable.admin.v2.Type.BoolH\x00\x12\x42\n\x0etimestamp_type\x18\n \x01(\x0b\x32(.google.bigtable.admin.v2.Type.TimestampH\x00\x12\x38\n\tdate_type\x18\x0b \x01(\x0b\x32#.google.bigtable.admin.v2.Type.DateH\x00\x12\x42\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\n\x0bstruct_type\x18\x07 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StructH\x00\x12:\n\narray_type\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ArrayH\x00\x12\x36\n\x08map_type\x18\x04 \x01(\x0b\x32\".google.bigtable.admin.v2.Type.MapH\x00\x12:\n\nproto_type\x18\r \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ProtoH\x00\x12\x38\n\tenum_type\x18\x0e \x01(\x0b\x32#.google.bigtable.admin.v2.Type.EnumH\x00\x1a\xa9\x01\n\x05\x42ytes\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1a_\n\x08\x45ncoding\x12@\n\x03raw\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\x9f\x02\n\x06String\x12@\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.Type.String.Encoding\x1a\xd2\x01\n\x08\x45ncoding\x12N\n\x08utf8_raw\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\r\n\x07Utf8Raw:\x02\x18\x01\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xfd\x02\n\x05Int64\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.Encoding\x1a\xb2\x02\n\x08\x45ncoding\x12X\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\n\x12ordered_code_bytes\x18\x02 \x01(\x0b\x32>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1aN\n\x0e\x42igEndianBytes\x12<\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\xb4\x01\n\tTimestamp\x12\x43\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1a\x62\n\x08\x45ncoding\x12J\n\x11unix_micros_int64\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00\x42\n\n\x08\x65ncoding\x1a\x06\n\x04\x44\x61te\x1a\xb9\x04\n\x06Struct\x12;\n\x06\x66ields\x18\x01 \x03(\x0b\x32+.google.bigtable.admin.v2.Type.Struct.Field\x12@\n\x08\x65ncoding\x18\x02 \x01(\x0b\x32..google.bigtable.admin.v2.Type.Struct.Encoding\x1aI\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xe4\x02\n\x08\x45ncoding\x12M\n\tsingleton\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\n\x0f\x64\x65limited_bytes\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\n\x12ordered_code_bytes\x18\x03 \x01(\x0b\x32?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1a\x0b\n\tSingleton\x1a#\n\x0e\x44\x65limitedBytes\x12\x11\n\tdelimiter\x18\x01 \x01(\x0c\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x37\n\x05Proto\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x14\n\x0cmessage_name\x18\x02 \x01(\t\x1a\x33\n\x04\x45num\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x11\n\tenum_name\x18\x02 \x01(\t\x1a=\n\x05\x41rray\x12\x34\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1ak\n\x03Map\x12\x30\n\x08key_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x32\n\nvalue_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xdb\x03\n\tAggregate\x12\x32\n\ninput_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x37\n\nstate_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.TypeB\x03\xe0\x41\x03\x12;\n\x03sum\x18\x04 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12\x65\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\n\x03max\x18\x06 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\n\x03min\x18\x07 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xcd\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type").msgclass + Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes").msgclass + Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding").msgclass + Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding.Raw").msgclass + Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String").msgclass + Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding").msgclass + Type::String::Encoding::Utf8Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw").msgclass + Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes").msgclass + Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64").msgclass + Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding").msgclass + Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes").msgclass + Type::Int64::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes").msgclass + Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bool").msgclass + Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float32").msgclass + Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float64").msgclass + Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp").msgclass + Type::Timestamp::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp.Encoding").msgclass + Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Date").msgclass + Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct").msgclass + Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Field").msgclass + Type::Struct::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding").msgclass + Type::Struct::Encoding::Singleton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.Singleton").msgclass + Type::Struct::Encoding::DelimitedBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes").msgclass + Type::Struct::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes").msgclass + Type::Proto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Proto").msgclass + Type::Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Enum").msgclass + Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Array").msgclass + Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Map").msgclass + Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate").msgclass + Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Sum").msgclass + Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Max").msgclass + Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Min").msgclass + Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb new file mode 100644 index 000000000000..19a6f94a9e3e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" +require "google/cloud/bigtable/admin/v2/version" + +module Google + module Cloud + module Bigtable + module Admin + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + module V2 + end + end + end + end +end + +helper_path = ::File.join __dir__, "v2", "_helpers.rb" +require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb new file mode 100644 index 000000000000..aeb89a361209 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/bigtable/admin/v2/version" + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + ## + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + module BigtableInstanceAdmin + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb new file mode 100644 index 000000000000..4dbd45245ace --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb @@ -0,0 +1,3710 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + ## + # Client for the BigtableInstanceAdmin service. + # + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bigtable_instance_admin_stub + + ## + # Configure the BigtableInstanceAdmin Client class. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BigtableInstanceAdmin clients + # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.create_instance.timeout = 300.0 + + default_config.rpcs.get_instance.timeout = 60.0 + default_config.rpcs.get_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_instances.timeout = 60.0 + default_config.rpcs.list_instances.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_instance.timeout = 60.0 + default_config.rpcs.update_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.partial_update_instance.timeout = 60.0 + default_config.rpcs.partial_update_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_instance.timeout = 60.0 + + default_config.rpcs.create_cluster.timeout = 60.0 + + default_config.rpcs.get_cluster.timeout = 60.0 + default_config.rpcs.get_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_clusters.timeout = 60.0 + default_config.rpcs.list_clusters.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_cluster.timeout = 60.0 + default_config.rpcs.update_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_cluster.timeout = 60.0 + + default_config.rpcs.create_app_profile.timeout = 60.0 + + default_config.rpcs.get_app_profile.timeout = 60.0 + default_config.rpcs.get_app_profile.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_app_profiles.timeout = 60.0 + default_config.rpcs.list_app_profiles.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_app_profile.timeout = 60.0 + default_config.rpcs.update_app_profile.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_app_profile.timeout = 60.0 + + default_config.rpcs.get_iam_policy.timeout = 60.0 + default_config.rpcs.get_iam_policy.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.set_iam_policy.timeout = 60.0 + + default_config.rpcs.test_iam_permissions.timeout = 60.0 + default_config.rpcs.test_iam_permissions.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_hot_tablets.timeout = 60.0 + default_config.rpcs.list_hot_tablets.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableInstanceAdmin Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bigtable_instance_admin_stub.universe_domain + end + + ## + # Create a new BigtableInstanceAdmin client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BigtableInstanceAdmin client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @bigtable_instance_admin_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @bigtable_instance_admin_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations] + # + attr_reader :operations_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @bigtable_instance_admin_stub.logger + end + + # Service calls + + ## + # Create an instance within a project. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + # + # @overload create_instance(request, options = nil) + # Pass arguments to `create_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_instance(parent: nil, instance_id: nil, instance: nil, clusters: nil) + # Pass arguments to `create_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the project in which to create the new + # instance. Values are of the form `projects/{project}`. + # @param instance_id [::String] + # Required. The ID to be used when referring to the new instance within its + # project, e.g., just `myinstance` rather than + # `projects/myproject/instances/myinstance`. + # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # Required. The instance to create. + # Fields marked `OutputOnly` must be left blank. + # @param clusters [::Hash{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash}] + # Required. The clusters to be created within the instance, mapped by desired + # cluster ID, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # Fields marked `OutputOnly` must be left blank. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new + # + # # Call the create_instance method. + # result = client.create_instance request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an instance. + # + # @overload get_instance(request, options = nil) + # Pass arguments to `get_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_instance(name: nil) + # Pass arguments to `get_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested instance. Values are of the form + # `projects/{project}/instances/{instance}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new + # + # # Call the get_instance method. + # result = client.get_instance request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + # p result + # + def get_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about instances in a project. + # + # @overload list_instances(request, options = nil) + # Pass arguments to `list_instances` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_instances(parent: nil, page_token: nil) + # Pass arguments to `list_instances` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the project for which a list of instances is + # requested. Values are of the form `projects/{project}`. + # @param page_token [::String] + # DEPRECATED: This field is unused and ignored. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new + # + # # Call the list_instances method. + # result = client.list_instances request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. + # p result + # + def list_instances request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_instances.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_instances.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_instances.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an instance within a project. This method updates only the display + # name and type for an Instance. To update other Instance properties, such as + # labels, use PartialUpdateInstance. + # + # @overload update_instance(request, options = nil) + # Pass arguments to `update_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::Instance} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_instance(name: nil, display_name: nil, type: nil, labels: nil, tags: nil) + # Pass arguments to `update_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The unique name of the instance. Values are of the form + # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + # @param display_name [::String] + # Required. The descriptive name for this instance as it appears in UIs. + # Can be changed at any time, but should be kept globally unique + # to avoid confusion. + # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] + # The type of the instance. Defaults to `PRODUCTION`. + # @param labels [::Hash{::String => ::String}] + # Labels are a flexible and lightweight mechanism for organizing cloud + # resources into groups that reflect a customer's organizational needs and + # deployment strategies. They can be used to filter resources and aggregate + # metrics. + # + # * Label keys must be between 1 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + # * Label values must be between 0 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + # * No more than 64 labels can be associated with a given resource. + # * Keys and values must both be under 128 bytes. + # @param tags [::Hash{::String => ::String}] + # Optional. Input only. Immutable. Tag keys/values directly bound to this + # resource. For example: + # - "123/environment": "production", + # - "123/costCenter": "marketing" + # + # Tags and Labels (above) are both used to bind metadata to resources, with + # different use-cases. See + # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + # in-depth overview on the difference between tags and labels. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::Instance.new + # + # # Call the update_instance method. + # result = client.update_instance request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + # p result + # + def update_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Instance + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Partially updates an instance within a project. This method can modify all + # fields of an Instance and is the preferred way to update an Instance. + # + # @overload partial_update_instance(request, options = nil) + # Pass arguments to `partial_update_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload partial_update_instance(instance: nil, update_mask: nil) + # Pass arguments to `partial_update_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # Required. The Instance which will (partially) replace the current value. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of Instance fields which should be replaced. + # Must be explicitly set. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new + # + # # Call the partial_update_instance method. + # result = client.partial_update_instance request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def partial_update_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.partial_update_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.instance&.name + header_params["instance.name"] = request.instance.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.partial_update_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete an instance from a project. + # + # @overload delete_instance(request, options = nil) + # Pass arguments to `delete_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_instance(name: nil) + # Pass arguments to `delete_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the instance to be deleted. + # Values are of the form `projects/{project}/instances/{instance}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new + # + # # Call the delete_instance method. + # result = client.delete_instance request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a cluster within an instance. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + # + # @overload create_cluster(request, options = nil) + # Pass arguments to `create_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil) + # Pass arguments to `create_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the new + # cluster. Values are of the form `projects/{project}/instances/{instance}`. + # @param cluster_id [::String] + # Required. The ID to be used when referring to the new cluster within its + # instance, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # Required. The cluster to be created. + # Fields marked `OutputOnly` must be left blank. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new + # + # # Call the create_cluster method. + # result = client.create_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a cluster. + # + # @overload get_cluster(request, options = nil) + # Pass arguments to `get_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_cluster(name: nil) + # Pass arguments to `get_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new + # + # # Call the get_cluster method. + # result = client.get_cluster request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. + # p result + # + def get_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about clusters in an instance. + # + # @overload list_clusters(request, options = nil) + # Pass arguments to `list_clusters` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_clusters(parent: nil, page_token: nil) + # Pass arguments to `list_clusters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which a list of clusters is + # requested. Values are of the form + # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + # Clusters for all Instances in a project, e.g., + # `projects/myproject/instances/-`. + # @param page_token [::String] + # DEPRECATED: This field is unused and ignored. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new + # + # # Call the list_clusters method. + # result = client.list_clusters request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. + # p result + # + def list_clusters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_clusters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_clusters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_clusters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a cluster within an instance. + # + # Note that UpdateCluster does not support updating + # cluster_config.cluster_autoscaling_config. In order to update it, you + # must use PartialUpdateCluster. + # + # @overload update_cluster(request, options = nil) + # Pass arguments to `update_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_cluster(name: nil, location: nil, serve_nodes: nil, node_scaling_factor: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil) + # Pass arguments to `update_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The unique name of the cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + # @param location [::String] + # Immutable. The location where this cluster's nodes and storage reside. For + # best performance, clients should be located as close as possible to this + # cluster. Currently only zones are supported, so values should be of the + # form `projects/{project}/locations/{zone}`. + # @param serve_nodes [::Integer] + # The number of nodes in the cluster. If no value is set, + # Cloud Bigtable automatically allocates nodes based on your data footprint + # and optimized for 50% storage utilization. + # @param node_scaling_factor [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] + # Immutable. The node scaling factor of this cluster. + # @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash] + # Configuration for this cluster. + # @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType] + # Immutable. The type of storage used by this cluster to serve its + # parent instance's tables, unless explicitly overridden. + # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash] + # Immutable. The encryption configuration for CMEK-protected clusters. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::Cluster.new + # + # # Call the update_cluster method. + # result = client.update_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Partially updates a cluster within a project. This method is the preferred + # way to update a Cluster. + # + # To enable and update autoscaling, set + # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + # are ignored. Note that an update cannot simultaneously set serve_nodes to + # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + # also specify both in the update_mask. + # + # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + # and explicitly set a serve_node count via the update_mask. + # + # @overload partial_update_cluster(request, options = nil) + # Pass arguments to `partial_update_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload partial_update_cluster(cluster: nil, update_mask: nil) + # Pass arguments to `partial_update_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # Required. The Cluster which contains the partial updates to be applied, + # subject to the update_mask. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of Cluster fields which should be replaced. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new + # + # # Call the partial_update_cluster method. + # result = client.partial_update_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def partial_update_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.partial_update_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.cluster&.name + header_params["cluster.name"] = request.cluster.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.partial_update_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a cluster from an instance. + # + # @overload delete_cluster(request, options = nil) + # Pass arguments to `delete_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_cluster(name: nil) + # Pass arguments to `delete_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the cluster to be deleted. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new + # + # # Call the delete_cluster method. + # result = client.delete_cluster request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an app profile within an instance. + # + # @overload create_app_profile(request, options = nil) + # Pass arguments to `create_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_app_profile(parent: nil, app_profile_id: nil, app_profile: nil, ignore_warnings: nil) + # Pass arguments to `create_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the new app + # profile. Values are of the form `projects/{project}/instances/{instance}`. + # @param app_profile_id [::String] + # Required. The ID to be used when referring to the new app profile within + # its instance, e.g., just `myprofile` rather than + # `projects/myproject/instances/myinstance/appProfiles/myprofile`. + # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] + # Required. The app profile to be created. + # Fields marked `OutputOnly` will be ignored. + # @param ignore_warnings [::Boolean] + # If true, ignore safety checks when creating the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new + # + # # Call the create_app_profile method. + # result = client.create_app_profile request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p result + # + def create_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an app profile. + # + # @overload get_app_profile(request, options = nil) + # Pass arguments to `get_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_app_profile(name: nil) + # Pass arguments to `get_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested app profile. Values are of the + # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new + # + # # Call the get_app_profile method. + # result = client.get_app_profile request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p result + # + def get_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about app profiles in an instance. + # + # @overload list_app_profiles(request, options = nil) + # Pass arguments to `list_app_profiles` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_app_profiles(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_app_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which a list of app profiles + # is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + # e.g., `projects/myproject/instances/-`. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new + # + # # Call the list_app_profiles method. + # result = client.list_app_profiles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p item + # end + # + def list_app_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_app_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_app_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_app_profiles, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an app profile within an instance. + # + # @overload update_app_profile(request, options = nil) + # Pass arguments to `update_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_app_profile(app_profile: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] + # Required. The app profile which will (partially) replace the current value. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of app profile fields which should be replaced. + # If unset, all fields will be replaced. + # @param ignore_warnings [::Boolean] + # If true, ignore safety checks when updating the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new + # + # # Call the update_app_profile method. + # result = client.update_app_profile request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.app_profile&.name + header_params["app_profile.name"] = request.app_profile.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an app profile from an instance. + # + # @overload delete_app_profile(request, options = nil) + # Pass arguments to `delete_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_app_profile(name: nil, ignore_warnings: nil) + # Pass arguments to `delete_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the app profile to be deleted. Values are of + # the form + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # @param ignore_warnings [::Boolean] + # Required. If true, ignore safety checks when deleting the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new + # + # # Call the delete_app_profile method. + # result = client.delete_app_profile request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for an instance resource. Returns an empty + # policy if an instance exists but does not have a policy set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on an instance resource. Replaces any + # existing policy. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns permissions that the caller has on the specified instance resource. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists hot tablets in a cluster, within the time range provided. Hot + # tablets are ordered based on CPU usage. + # + # @overload list_hot_tablets(request, options = nil) + # Pass arguments to `list_hot_tablets` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_hot_tablets(parent: nil, start_time: nil, end_time: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_hot_tablets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The cluster name to list hot tablets. + # Value is in the following form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # The start time to list hot tablets. The hot tablets in the response will + # have start times between the requested start time and end time. Start time + # defaults to Now if it is unset, and end time defaults to Now - 24 hours if + # it is unset. The start time should be less than the end time, and the + # maximum allowed time range between start time and end time is 48 hours. + # Start time and end time should have values between Now and Now - 14 days. + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # The end time to list hot tablets. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size that is empty or zero lets the server choose the number of + # items to return. A page_size which is strictly positive will return at most + # that many items. A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls do not need a + # page_size field. If a page_size is set in subsequent calls, it must match + # the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new + # + # # Call the list_hot_tablets method. + # result = client.list_hot_tablets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. + # p item + # end + # + def list_hot_tablets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_hot_tablets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_hot_tablets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_hot_tablets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_hot_tablets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_hot_tablets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a logical view within an instance. + # + # @overload create_logical_view(request, options = nil) + # Pass arguments to `create_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_logical_view(parent: nil, logical_view_id: nil, logical_view: nil) + # Pass arguments to `create_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent instance where this logical view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @param logical_view_id [::String] + # Required. The ID to use for the logical view, which will become the final + # component of the logical view's resource name. + # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] + # Required. The logical view to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new + # + # # Call the create_logical_view method. + # result = client.create_logical_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_logical_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a logical view. + # + # @overload get_logical_view(request, options = nil) + # Pass arguments to `get_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_logical_view(name: nil) + # Pass arguments to `get_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested logical view. Values are of the + # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new + # + # # Call the get_logical_view method. + # result = client.get_logical_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. + # p result + # + def get_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_logical_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about logical views in an instance. + # + # @overload list_logical_views(request, options = nil) + # Pass arguments to `list_logical_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_logical_views(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_logical_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which the list of logical + # views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @param page_size [::Integer] + # Optional. The maximum number of logical views to return. The service may + # return fewer than this value + # @param page_token [::String] + # Optional. A page token, received from a previous `ListLogicalViews` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListLogicalViews` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new + # + # # Call the list_logical_views method. + # result = client.list_logical_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. + # p item + # end + # + def list_logical_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_logical_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_logical_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_logical_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_logical_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_logical_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a logical view within an instance. + # + # @overload update_logical_view(request, options = nil) + # Pass arguments to `update_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_logical_view(logical_view: nil, update_mask: nil) + # Pass arguments to `update_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] + # Required. The logical view to update. + # + # The logical view's `name` field is used to identify the view to update. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new + # + # # Call the update_logical_view method. + # result = client.update_logical_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.logical_view&.name + header_params["logical_view.name"] = request.logical_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_logical_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a logical view from an instance. + # + # @overload delete_logical_view(request, options = nil) + # Pass arguments to `delete_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_logical_view(name: nil, etag: nil) + # Pass arguments to `delete_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the logical view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @param etag [::String] + # Optional. The current etag of the logical view. + # If an etag is provided and does not match the current etag of the + # logical view, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new + # + # # Call the delete_logical_view method. + # result = client.delete_logical_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_logical_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a materialized view within an instance. + # + # @overload create_materialized_view(request, options = nil) + # Pass arguments to `create_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_materialized_view(parent: nil, materialized_view_id: nil, materialized_view: nil) + # Pass arguments to `create_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent instance where this materialized view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @param materialized_view_id [::String] + # Required. The ID to use for the materialized view, which will become the + # final component of the materialized view's resource name. + # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] + # Required. The materialized view to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new + # + # # Call the create_materialized_view method. + # result = client.create_materialized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_materialized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a materialized view. + # + # @overload get_materialized_view(request, options = nil) + # Pass arguments to `get_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_materialized_view(name: nil) + # Pass arguments to `get_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested materialized view. Values are of + # the form + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new + # + # # Call the get_materialized_view method. + # result = client.get_materialized_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. + # p result + # + def get_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_materialized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about materialized views in an instance. + # + # @overload list_materialized_views(request, options = nil) + # Pass arguments to `list_materialized_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_materialized_views(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_materialized_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which the list of + # materialized views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @param page_size [::Integer] + # Optional. The maximum number of materialized views to return. The service + # may return fewer than this value + # @param page_token [::String] + # Optional. A page token, received from a previous `ListMaterializedViews` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListMaterializedViews` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new + # + # # Call the list_materialized_views method. + # result = client.list_materialized_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. + # p item + # end + # + def list_materialized_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_materialized_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_materialized_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_materialized_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_materialized_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_materialized_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a materialized view within an instance. + # + # @overload update_materialized_view(request, options = nil) + # Pass arguments to `update_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_materialized_view(materialized_view: nil, update_mask: nil) + # Pass arguments to `update_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] + # Required. The materialized view to update. + # + # The materialized view's `name` field is used to identify the view to + # update. Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new + # + # # Call the update_materialized_view method. + # result = client.update_materialized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.materialized_view&.name + header_params["materialized_view.name"] = request.materialized_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_materialized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a materialized view from an instance. + # + # @overload delete_materialized_view(request, options = nil) + # Pass arguments to `delete_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_materialized_view(name: nil, etag: nil) + # Pass arguments to `delete_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the materialized view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @param etag [::String] + # Optional. The current etag of the materialized view. + # If an etag is provided and does not match the current etag of the + # materialized view, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new + # + # # Call the delete_materialized_view method. + # result = client.delete_materialized_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_materialized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the BigtableInstanceAdmin API. + # + # This class represents the configuration for BigtableInstanceAdmin, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_instance to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_instance.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_instance.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BigtableInstanceAdmin API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :create_instance + ## + # RPC-specific configuration for `get_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :get_instance + ## + # RPC-specific configuration for `list_instances` + # @return [::Gapic::Config::Method] + # + attr_reader :list_instances + ## + # RPC-specific configuration for `update_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :update_instance + ## + # RPC-specific configuration for `partial_update_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :partial_update_instance + ## + # RPC-specific configuration for `delete_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_instance + ## + # RPC-specific configuration for `create_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :create_cluster + ## + # RPC-specific configuration for `get_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :get_cluster + ## + # RPC-specific configuration for `list_clusters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_clusters + ## + # RPC-specific configuration for `update_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :update_cluster + ## + # RPC-specific configuration for `partial_update_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :partial_update_cluster + ## + # RPC-specific configuration for `delete_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_cluster + ## + # RPC-specific configuration for `create_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :create_app_profile + ## + # RPC-specific configuration for `get_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :get_app_profile + ## + # RPC-specific configuration for `list_app_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_app_profiles + ## + # RPC-specific configuration for `update_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :update_app_profile + ## + # RPC-specific configuration for `delete_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_app_profile + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + ## + # RPC-specific configuration for `list_hot_tablets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_hot_tablets + ## + # RPC-specific configuration for `create_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_logical_view + ## + # RPC-specific configuration for `get_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_logical_view + ## + # RPC-specific configuration for `list_logical_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_logical_views + ## + # RPC-specific configuration for `update_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_logical_view + ## + # RPC-specific configuration for `delete_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_logical_view + ## + # RPC-specific configuration for `create_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_materialized_view + ## + # RPC-specific configuration for `get_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_materialized_view + ## + # RPC-specific configuration for `list_materialized_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_materialized_views + ## + # RPC-specific configuration for `update_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_materialized_view + ## + # RPC-specific configuration for `delete_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_materialized_view + + # @private + def initialize parent_rpcs = nil + create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance + @create_instance = ::Gapic::Config::Method.new create_instance_config + get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance + @get_instance = ::Gapic::Config::Method.new get_instance_config + list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances + @list_instances = ::Gapic::Config::Method.new list_instances_config + update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance + @update_instance = ::Gapic::Config::Method.new update_instance_config + partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance + @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config + delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance + @delete_instance = ::Gapic::Config::Method.new delete_instance_config + create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster + @create_cluster = ::Gapic::Config::Method.new create_cluster_config + get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster + @get_cluster = ::Gapic::Config::Method.new get_cluster_config + list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters + @list_clusters = ::Gapic::Config::Method.new list_clusters_config + update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster + @update_cluster = ::Gapic::Config::Method.new update_cluster_config + partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster + @partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config + delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster + @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config + create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile + @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config + get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile + @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config + list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles + @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config + update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile + @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config + delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile + @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + list_hot_tablets_config = parent_rpcs.list_hot_tablets if parent_rpcs.respond_to? :list_hot_tablets + @list_hot_tablets = ::Gapic::Config::Method.new list_hot_tablets_config + create_logical_view_config = parent_rpcs.create_logical_view if parent_rpcs.respond_to? :create_logical_view + @create_logical_view = ::Gapic::Config::Method.new create_logical_view_config + get_logical_view_config = parent_rpcs.get_logical_view if parent_rpcs.respond_to? :get_logical_view + @get_logical_view = ::Gapic::Config::Method.new get_logical_view_config + list_logical_views_config = parent_rpcs.list_logical_views if parent_rpcs.respond_to? :list_logical_views + @list_logical_views = ::Gapic::Config::Method.new list_logical_views_config + update_logical_view_config = parent_rpcs.update_logical_view if parent_rpcs.respond_to? :update_logical_view + @update_logical_view = ::Gapic::Config::Method.new update_logical_view_config + delete_logical_view_config = parent_rpcs.delete_logical_view if parent_rpcs.respond_to? :delete_logical_view + @delete_logical_view = ::Gapic::Config::Method.new delete_logical_view_config + create_materialized_view_config = parent_rpcs.create_materialized_view if parent_rpcs.respond_to? :create_materialized_view + @create_materialized_view = ::Gapic::Config::Method.new create_materialized_view_config + get_materialized_view_config = parent_rpcs.get_materialized_view if parent_rpcs.respond_to? :get_materialized_view + @get_materialized_view = ::Gapic::Config::Method.new get_materialized_view_config + list_materialized_views_config = parent_rpcs.list_materialized_views if parent_rpcs.respond_to? :list_materialized_views + @list_materialized_views = ::Gapic::Config::Method.new list_materialized_views_config + update_materialized_view_config = parent_rpcs.update_materialized_view if parent_rpcs.respond_to? :update_materialized_view + @update_materialized_view = ::Gapic::Config::Method.new update_materialized_view_config + delete_materialized_view_config = parent_rpcs.delete_materialized_view if parent_rpcs.respond_to? :delete_materialized_view + @delete_materialized_view = ::Gapic::Config::Method.new delete_materialized_view_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb new file mode 100644 index 000000000000..4b166e3ac286 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Credentials for the BigtableInstanceAdmin API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.cluster", + "https://www.googleapis.com/auth/bigtable.admin.instance", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + self.env_vars = [ + "BIGTABLE_CREDENTIALS", + "BIGTABLE_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "BIGTABLE_CREDENTIALS_JSON", + "BIGTABLE_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb new file mode 100644 index 000000000000..d49308f480c1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb @@ -0,0 +1,843 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BigtableInstanceAdmin Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableInstanceAdmin Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb new file mode 100644 index 000000000000..8ee57571df69 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb @@ -0,0 +1,180 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Path helper methods for the BigtableInstanceAdmin API. + module Paths + ## + # Create a fully-qualified AppProfile resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}` + # + # @param project [String] + # @param instance [String] + # @param app_profile [String] + # + # @return [::String] + def app_profile_path project:, instance:, app_profile: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/appProfiles/#{app_profile}" + end + + ## + # Create a fully-qualified Cluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # + # @return [::String] + def cluster_path project:, instance:, cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}" + end + + ## + # Create a fully-qualified CryptoKey resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # + # @return [::String] + def crypto_key_path project:, location:, key_ring:, crypto_key: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" + end + + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}` + # + # @param project [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/instances/#{instance}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified LogicalView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + # + # @param project [String] + # @param instance [String] + # @param logical_view [String] + # + # @return [::String] + def logical_view_path project:, instance:, logical_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/logicalViews/#{logical_view}" + end + + ## + # Create a fully-qualified MaterializedView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + # + # @param project [String] + # @param instance [String] + # @param materialized_view [String] + # + # @return [::String] + def materialized_view_path project:, instance:, materialized_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/materializedViews/#{materialized_view}" + end + + ## + # Create a fully-qualified Project resource string. + # + # The resource will be in the following format: + # + # `projects/{project}` + # + # @param project [String] + # + # @return [::String] + def project_path project: + "projects/#{project}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb new file mode 100644 index 000000000000..cc08c6872c99 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/bigtable/admin/v2/version" + +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/paths" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/operations" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/client" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + ## + # Service for creating, configuring, and deleting Cloud Bigtable tables. + # + # + # Provides access to the table schemas only, not the data stored within + # the tables. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + module BigtableTableAdmin + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "bigtable_table_admin", "helpers.rb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb new file mode 100644 index 000000000000..a6a0d9ba05cd --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb @@ -0,0 +1,4266 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/bigtable/admin/v2/bigtable_table_admin_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + ## + # Client for the BigtableTableAdmin service. + # + # Service for creating, configuring, and deleting Cloud Bigtable tables. + # + # + # Provides access to the table schemas only, not the data stored within + # the tables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bigtable_table_admin_stub + + ## + # Configure the BigtableTableAdmin Client class. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BigtableTableAdmin clients + # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.create_table.timeout = 300.0 + + default_config.rpcs.list_tables.timeout = 60.0 + default_config.rpcs.list_tables.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.get_table.timeout = 60.0 + default_config.rpcs.get_table.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_table.timeout = 300.0 + + default_config.rpcs.modify_column_families.timeout = 300.0 + + default_config.rpcs.drop_row_range.timeout = 3600.0 + + default_config.rpcs.generate_consistency_token.timeout = 60.0 + default_config.rpcs.generate_consistency_token.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.check_consistency.timeout = 3600.0 + default_config.rpcs.check_consistency.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.get_snapshot.timeout = 60.0 + default_config.rpcs.get_snapshot.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_snapshots.timeout = 60.0 + default_config.rpcs.list_snapshots.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_snapshot.timeout = 300.0 + + default_config.rpcs.create_backup.timeout = 60.0 + + default_config.rpcs.get_backup.timeout = 60.0 + default_config.rpcs.get_backup.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_backup.timeout = 60.0 + + default_config.rpcs.delete_backup.timeout = 300.0 + + default_config.rpcs.list_backups.timeout = 60.0 + default_config.rpcs.list_backups.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.restore_table.timeout = 60.0 + + default_config.rpcs.get_iam_policy.timeout = 60.0 + default_config.rpcs.get_iam_policy.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.set_iam_policy.timeout = 60.0 + + default_config.rpcs.test_iam_permissions.timeout = 60.0 + default_config.rpcs.test_iam_permissions.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableTableAdmin Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bigtable_table_admin_stub.universe_domain + end + + ## + # Create a new BigtableTableAdmin client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BigtableTableAdmin client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @bigtable_table_admin_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @bigtable_table_admin_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations] + # + attr_reader :operations_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @bigtable_table_admin_stub.logger + end + + # Service calls + + ## + # Creates a new table in the specified instance. + # The table can be created with a full set of initial column families, + # specified in the request. + # + # @overload create_table(request, options = nil) + # Pass arguments to `create_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_table(parent: nil, table_id: nil, table: nil, initial_splits: nil) + # Pass arguments to `create_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @param table_id [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # Maximum 50 characters. + # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] + # Required. The Table to create. + # @param initial_splits [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, ::Hash>] + # The optional list of row keys that will be used to initially split the + # table into several tablets (tablets are similar to HBase regions). + # Given two split keys, `s1` and `s2`, three tablets will be created, + # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + # + # Example: + # + # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + # `"other", "zz"]` + # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + # * Key assignment: + # - Tablet 1 `[, apple) => {"a"}.` + # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + # - Tablet 4 `[customer_2, other) => {"customer_2"}.` + # - Tablet 5 `[other, ) => {"other", "zz"}.` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new + # + # # Call the create_table method. + # result = client.create_table request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def create_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new table from the specified snapshot. The target table must + # not exist. The snapshot and the table must be in the same instance. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload create_table_from_snapshot(request, options = nil) + # Pass arguments to `create_table_from_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_table_from_snapshot(parent: nil, table_id: nil, source_snapshot: nil) + # Pass arguments to `create_table_from_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @param table_id [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # @param source_snapshot [::String] + # Required. The unique name of the snapshot from which to restore the table. + # The snapshot and the table must be in the same instance. Values are of the + # form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new + # + # # Call the create_table_from_snapshot method. + # result = client.create_table_from_snapshot request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_table_from_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_table_from_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all tables served from a specified instance. + # + # @overload list_tables(request, options = nil) + # Pass arguments to `list_tables` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_tables(parent: nil, view: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_tables` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which tables should be + # listed. Values are of the form `projects/{project}/instances/{instance}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned tables' fields. + # NAME_ONLY view (default) and REPLICATION_VIEW are supported. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new + # + # # Call the list_tables method. + # result = client.list_tables request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. + # p item + # end + # + def list_tables request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_tables.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_tables.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_tables.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_tables, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified table. + # + # @overload get_table(request, options = nil) + # Pass arguments to `get_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_table(name: nil, view: nil) + # Pass arguments to `get_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested table. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned table's fields. + # Defaults to `SCHEMA_VIEW` if unspecified. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new + # + # # Call the get_table method. + # result = client.get_table request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def get_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a specified table. + # + # @overload update_table(request, options = nil) + # Pass arguments to `update_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_table(table: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] + # Required. The table to update. + # The table's `name` field is used to identify the table to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to update. + # A mask specifying which fields (e.g. `change_stream_config`) in the `table` + # field should be updated. This mask is relative to the `table` field, not to + # the request message. The wildcard (*) path is currently not supported. + # Currently UpdateTable is only supported for the following fields: + # + # * `change_stream_config` + # * `change_stream_config.retention_period` + # * `deletion_protection` + # * `row_key_schema` + # + # If `column_families` is set in `update_mask`, it will return an + # UNIMPLEMENTED error. + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore safety checks when updating the table. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new + # + # # Call the update_table method. + # result = client.update_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.table&.name + header_params["table.name"] = request.table.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes a specified table and all of its data. + # + # @overload delete_table(request, options = nil) + # Pass arguments to `delete_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_table(name: nil) + # Pass arguments to `delete_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new + # + # # Call the delete_table method. + # result = client.delete_table request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Restores a specified table which was accidentally deleted. + # + # @overload undelete_table(request, options = nil) + # Pass arguments to `undelete_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload undelete_table(name: nil) + # Pass arguments to `undelete_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to be restored. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new + # + # # Call the undelete_table method. + # result = client.undelete_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def undelete_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.undelete_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.undelete_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.undelete_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new AuthorizedView in a table. + # + # @overload create_authorized_view(request, options = nil) + # Pass arguments to `create_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_authorized_view(parent: nil, authorized_view_id: nil, authorized_view: nil) + # Pass arguments to `create_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. This is the name of the table the AuthorizedView belongs to. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param authorized_view_id [::String] + # Required. The id of the AuthorizedView to create. This AuthorizedView must + # not already exist. The `authorized_view_id` appended to `parent` forms the + # full AuthorizedView name of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] + # Required. The AuthorizedView to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new + # + # # Call the create_authorized_view method. + # result = client.create_authorized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_authorized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all AuthorizedViews from a specific table. + # + # @overload list_authorized_views(request, options = nil) + # Pass arguments to `list_authorized_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_authorized_views(parent: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `list_authorized_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the table for which AuthorizedViews should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param page_size [::Integer] + # Optional. Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # Optional. The value of `next_page_token` returned by a previous call. + # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedViews' + # fields. Default to NAME_ONLY. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new + # + # # Call the list_authorized_views method. + # result = client.list_authorized_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + # p item + # end + # + def list_authorized_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_authorized_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_authorized_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_authorized_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_authorized_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_authorized_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information from a specified AuthorizedView. + # + # @overload get_authorized_view(request, options = nil) + # Pass arguments to `get_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_authorized_view(name: nil, view: nil) + # Pass arguments to `get_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedView's + # fields. Default to BASIC. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new + # + # # Call the get_authorized_view method. + # result = client.get_authorized_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + # p result + # + def get_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_authorized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an AuthorizedView in a table. + # + # @overload update_authorized_view(request, options = nil) + # Pass arguments to `update_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_authorized_view(authorized_view: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] + # Required. The AuthorizedView to update. The `name` in `authorized_view` is + # used to identify the AuthorizedView. AuthorizedView name must in this + # format: + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # A mask specifying which fields in the AuthorizedView resource should be + # updated. This mask is relative to the AuthorizedView resource, not to the + # request message. A field will be overwritten if it is in the mask. If + # empty, all fields set in the request will be overwritten. A special value + # `*` means to overwrite all fields (including fields not set in the + # request). + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore the safety checks when updating the + # AuthorizedView. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new + # + # # Call the update_authorized_view method. + # result = client.update_authorized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.authorized_view&.name + header_params["authorized_view.name"] = request.authorized_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_authorized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes a specified AuthorizedView. + # + # @overload delete_authorized_view(request, options = nil) + # Pass arguments to `delete_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_authorized_view(name: nil, etag: nil) + # Pass arguments to `delete_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the AuthorizedView to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param etag [::String] + # Optional. The current etag of the AuthorizedView. + # If an etag is provided and does not match the current etag of the + # AuthorizedView, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new + # + # # Call the delete_authorized_view method. + # result = client.delete_authorized_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_authorized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a series of column family modifications on the specified table. + # Either all or none of the modifications will occur before this method + # returns, but data requests received prior to that point may see a table + # where only some modifications have taken effect. + # + # @overload modify_column_families(request, options = nil) + # Pass arguments to `modify_column_families` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload modify_column_families(name: nil, modifications: nil, ignore_warnings: nil) + # Pass arguments to `modify_column_families` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table whose families should be modified. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param modifications [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, ::Hash>] + # Required. Modifications to be atomically applied to the specified table's + # families. Entries are applied in order, meaning that earlier modifications + # can be masked by later ones (in the case of repeated updates to the same + # family, for example). + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore safety checks when modifying the column families. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new + # + # # Call the modify_column_families method. + # result = client.modify_column_families request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def modify_column_families request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.modify_column_families.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout, + metadata: metadata, + retry_policy: @config.rpcs.modify_column_families.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently drop/delete a row range from a specified table. The request can + # specify whether to delete all rows in a table, or only those that match a + # particular prefix. + # + # @overload drop_row_range(request, options = nil) + # Pass arguments to `drop_row_range` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload drop_row_range(name: nil, row_key_prefix: nil, delete_all_data_from_table: nil) + # Pass arguments to `drop_row_range` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table on which to drop a range of rows. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param row_key_prefix [::String] + # Delete all rows that start with this row key prefix. Prefix cannot be + # zero length. + # + # Note: The following parameters are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param delete_all_data_from_table [::Boolean] + # Delete all rows in the table. Setting this to false is a no-op. + # + # Note: The following parameters are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new + # + # # Call the drop_row_range method. + # result = client.drop_row_range request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def drop_row_range request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.drop_row_range.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout, + metadata: metadata, + retry_policy: @config.rpcs.drop_row_range.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Generates a consistency token for a Table, which can be used in + # CheckConsistency to check whether mutations to the table that finished + # before this call started have been replicated. The tokens will be available + # for 90 days. + # + # @overload generate_consistency_token(request, options = nil) + # Pass arguments to `generate_consistency_token` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_consistency_token(name: nil) + # Pass arguments to `generate_consistency_token` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the Table for which to create a consistency + # token. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new + # + # # Call the generate_consistency_token method. + # result = client.generate_consistency_token request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. + # p result + # + def generate_consistency_token request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_consistency_token.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_consistency_token.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Checks replication consistency based on a consistency token, that is, if + # replication has caught up based on the conditions specified in the token + # and the check request. + # + # @overload check_consistency(request, options = nil) + # Pass arguments to `check_consistency` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload check_consistency(name: nil, consistency_token: nil, standard_read_remote_writes: nil, data_boost_read_local_writes: nil) + # Pass arguments to `check_consistency` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the Table for which to check replication + # consistency. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param consistency_token [::String] + # Required. The token created using GenerateConsistencyToken for the Table. + # @param standard_read_remote_writes [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites, ::Hash] + # Checks that reads using an app profile with `StandardIsolation` can + # see all writes committed before the token was created, even if the + # read and write target different clusters. + # + # Note: The following parameters are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param data_boost_read_local_writes [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites, ::Hash] + # Checks that reads using an app profile with `DataBoostIsolationReadOnly` + # can see all writes committed before the token was created, but only if + # the read and write target the same cluster. + # + # Note: The following parameters are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new + # + # # Call the check_consistency method. + # result = client.check_consistency request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. + # p result + # + def check_consistency request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.check_consistency.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.check_consistency.timeout, + metadata: metadata, + retry_policy: @config.rpcs.check_consistency.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new snapshot in the specified cluster from the specified + # source table. The cluster and the table must be in the same instance. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload snapshot_table(request, options = nil) + # Pass arguments to `snapshot_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload snapshot_table(name: nil, cluster: nil, snapshot_id: nil, ttl: nil, description: nil) + # Pass arguments to `snapshot_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to have the snapshot taken. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param cluster [::String] + # Required. The name of the cluster where the snapshot will be created in. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param snapshot_id [::String] + # Required. The ID by which the new snapshot should be referred to within the + # parent cluster, e.g., `mysnapshot` of the form: + # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + # @param ttl [::Google::Protobuf::Duration, ::Hash] + # The amount of time that the new snapshot can stay active after it is + # created. Once 'ttl' expires, the snapshot will get deleted. The maximum + # amount of time a snapshot can stay active is 7 days. If 'ttl' is not + # specified, the default value of 24 hours will be used. + # @param description [::String] + # Description of the snapshot. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new + # + # # Call the snapshot_table method. + # result = client.snapshot_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def snapshot_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.snapshot_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.snapshot_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified snapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload get_snapshot(request, options = nil) + # Pass arguments to `get_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_snapshot(name: nil) + # Pass arguments to `get_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Snapshot] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new + # + # # Call the get_snapshot method. + # result = client.get_snapshot request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. + # p result + # + def get_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all snapshots associated with the specified cluster. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload list_snapshots(request, options = nil) + # Pass arguments to `list_snapshots` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_snapshots(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_snapshots` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the cluster for which snapshots should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @param page_size [::Integer] + # The maximum number of snapshots to return per page. + # CURRENTLY UNIMPLEMENTED AND IGNORED. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new + # + # # Call the list_snapshots method. + # result = client.list_snapshots request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. + # p item + # end + # + def list_snapshots request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_snapshots.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_snapshots.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_snapshots, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes the specified snapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload delete_snapshot(request, options = nil) + # Pass arguments to `delete_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_snapshot(name: nil) + # Pass arguments to `delete_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the snapshot to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new + # + # # Call the delete_snapshot method. + # result = client.delete_snapshot request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts creating a new Cloud Bigtable Backup. The returned backup + # {::Google::Longrunning::Operation long-running operation} can be used to + # track creation of the backup. The + # {::Google::Longrunning::Operation#metadata metadata} field type is + # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupMetadata CreateBackupMetadata}. The + # {::Google::Longrunning::Operation#response response} field type is + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}, if successful. Cancelling the + # returned operation will stop the creation and delete the backup. + # + # @overload create_backup(request, options = nil) + # Pass arguments to `create_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_backup(parent: nil, backup_id: nil, backup: nil) + # Pass arguments to `create_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. This must be one of the clusters in the instance in which this + # table is located. The backup will be stored in this cluster. Values are + # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param backup_id [::String] + # Required. The id of the backup to be created. The `backup_id` along with + # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create + # the full backup name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] + # Required. The backup to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new + # + # # Call the create_backup method. + # result = client.create_backup request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata on a pending or completed Cloud Bigtable Backup. + # + # @overload get_backup(request, options = nil) + # Pass arguments to `get_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_backup(name: nil) + # Pass arguments to `get_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the backup. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new + # + # # Call the get_backup method. + # result = client.get_backup request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + # p result + # + def get_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a pending or completed Cloud Bigtable Backup. + # + # @overload update_backup(request, options = nil) + # Pass arguments to `update_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_backup(backup: nil, update_mask: nil) + # Pass arguments to `update_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] + # Required. The backup to update. `backup.name`, and the fields to be updated + # as specified by `update_mask` are required. Other fields are ignored. + # Update is only supported for the following fields: + # + # * `backup.expire_time`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. A mask specifying which fields (e.g. `expire_time`) in the + # Backup resource should be updated. This mask is relative to the Backup + # resource, not to the request message. The field mask must always be + # specified; this prevents any future fields from being erased accidentally + # by clients that do not know about them. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new + # + # # Call the update_backup method. + # result = client.update_backup request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + # p result + # + def update_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.backup&.name + header_params["backup.name"] = request.backup.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a pending or completed Cloud Bigtable backup. + # + # @overload delete_backup(request, options = nil) + # Pass arguments to `delete_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_backup(name: nil) + # Pass arguments to `delete_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the backup to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new + # + # # Call the delete_backup method. + # result = client.delete_backup request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Cloud Bigtable backups. Returns both completed and pending + # backups. + # + # @overload list_backups(request, options = nil) + # Pass arguments to `list_backups` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_backups(parent: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_backups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The cluster to list backups from. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list backups for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @param filter [::String] + # A filter expression that filters backups listed in the response. + # The expression must specify the field name, a comparison operator, + # and the value that you want to use for filtering. The value must be a + # string, a number, or a boolean. The comparison operator must be + # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + # roughly synonymous with equality. Filter rules are case insensitive. + # + # The fields eligible for filtering are: + # + # * `name` + # * `source_table` + # * `state` + # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `size_bytes` + # + # To filter on multiple expressions, provide each separate expression within + # parentheses. By default, each expression is an AND expression. However, + # you can include AND, OR, and NOT expressions explicitly. + # + # Some examples of using filters are: + # + # * `name:"exact"` --> The backup's name is the string "exact". + # * `name:howl` --> The backup's name contains the string "howl". + # * `source_table:prod` + # --> The source_table's name contains the string "prod". + # * `state:CREATING` --> The backup is pending creation. + # * `state:READY` --> The backup is fully created and ready for use. + # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + # --> The backup name contains the string "howl" and start_time + # of the backup is before 2018-03-28T14:50:00Z. + # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + # @param order_by [::String] + # An expression for specifying the sort order of the results of the request. + # The string value should specify one or more fields in + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at + # https://aip.dev/132#ordering. + # + # Fields supported are: + # + # * name + # * source_table + # * expire_time + # * start_time + # * end_time + # * size_bytes + # * state + # + # For example, "start_time". The default sorting order is ascending. + # To specify descending order for the field, a suffix " desc" should + # be appended to the field name. For example, "start_time desc". + # Redundant space characters in the syntax are insigificant. + # + # If order_by is empty, results will be sorted by `start_time` in descending + # order starting from the most recently created backup. + # @param page_size [::Integer] + # Number of backups to be returned in the response. If 0 or + # less, defaults to the server's maximum allowed page size. + # @param page_token [::String] + # If non-empty, `page_token` should contain a + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} + # from a previous + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the + # same `parent` and with the same `filter`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new + # + # # Call the list_backups method. + # result = client.list_backups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. + # p item + # end + # + def list_backups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_backups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_backups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_backups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_backups, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new table by restoring from a completed backup. The + # returned table {::Google::Longrunning::Operation long-running operation} can + # be used to track the progress of the operation, and to cancel it. The + # {::Google::Longrunning::Operation#metadata metadata} field type is + # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableMetadata RestoreTableMetadata}. The + # {::Google::Longrunning::Operation#response response} type is + # {::Google::Cloud::Bigtable::Admin::V2::Table Table}, if successful. + # + # @overload restore_table(request, options = nil) + # Pass arguments to `restore_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload restore_table(parent: nil, table_id: nil, backup: nil) + # Pass arguments to `restore_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the instance in which to create the restored + # table. Values are of the form `projects//instances/`. + # @param table_id [::String] + # Required. The id of the table to create and restore to. This + # table must not already exist. The `table_id` appended to + # `parent` forms the full table name of the form + # `projects//instances//tables/`. + # @param backup [::String] + # Name of the backup from which to restore. Values are of the form + # `projects//instances//clusters//backups/`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new + # + # # Call the restore_table method. + # result = client.restore_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def restore_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.restore_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.restore_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.restore_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Copy a Cloud Bigtable backup to a new backup in the destination cluster + # located in the destination instance and project. + # + # @overload copy_backup(request, options = nil) + # Pass arguments to `copy_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload copy_backup(parent: nil, backup_id: nil, source_backup: nil, expire_time: nil) + # Pass arguments to `copy_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the destination cluster that will contain the backup + # copy. The cluster must already exist. Values are of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param backup_id [::String] + # Required. The id of the new backup. The `backup_id` along with `parent` + # are combined as \\{parent}/backups/\\{backup_id} to create the full backup + # name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @param source_backup [::String] + # Required. The source backup to be copied from. + # The source backup needs to be in READY state for it to be copied. + # Copying a copied backup is not allowed. + # Once CopyBackup is in progress, the source backup cannot be deleted or + # cleaned up on expiration until CopyBackup is finished. + # Values are of the form: + # `projects//instances//clusters//backups/`. + # @param expire_time [::Google::Protobuf::Timestamp, ::Hash] + # Required. Required. The expiration time of the copied backup with + # microsecond granularity that must be at least 6 hours and at most 30 days + # from the time the request is received. Once the `expire_time` has + # passed, Cloud Bigtable will delete the backup and free the resources used + # by the backup. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new + # + # # Call the copy_backup method. + # result = client.copy_backup request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def copy_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.copy_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.copy_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.copy_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :copy_backup, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a Bigtable resource. + # Returns an empty policy if the resource exists but does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on a Bigtable resource. + # Replaces any existing policy. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns permissions that the caller has on the specified Bigtable + # resource. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new schema bundle in the specified table. + # + # @overload create_schema_bundle(request, options = nil) + # Pass arguments to `create_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_schema_bundle(parent: nil, schema_bundle_id: nil, schema_bundle: nil) + # Pass arguments to `create_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this schema bundle will be created. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param schema_bundle_id [::String] + # Required. The unique ID to use for the schema bundle, which will become the + # final component of the schema bundle's resource name. + # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] + # Required. The schema bundle to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new + # + # # Call the create_schema_bundle method. + # result = client.create_schema_bundle request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_schema_bundle, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a schema bundle in the specified table. + # + # @overload update_schema_bundle(request, options = nil) + # Pass arguments to `update_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_schema_bundle(schema_bundle: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] + # Required. The schema bundle to update. + # + # The schema bundle's `name` field is used to identify the schema bundle to + # update. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @param ignore_warnings [::Boolean] + # Optional. If set, ignore the safety checks when updating the Schema Bundle. + # The safety checks are: + # - The new Schema Bundle is backwards compatible with the existing Schema + # Bundle. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new + # + # # Call the update_schema_bundle method. + # result = client.update_schema_bundle request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.schema_bundle&.name + header_params["schema_bundle.name"] = request.schema_bundle.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_schema_bundle, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified schema bundle. + # + # @overload get_schema_bundle(request, options = nil) + # Pass arguments to `get_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_schema_bundle(name: nil) + # Pass arguments to `get_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the schema bundle to retrieve. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new + # + # # Call the get_schema_bundle method. + # result = client.get_schema_bundle request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + # p result + # + def get_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_schema_bundle, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all schema bundles associated with the specified table. + # + # @overload list_schema_bundles(request, options = nil) + # Pass arguments to `list_schema_bundles` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_schema_bundles(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_schema_bundles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of schema bundles. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param page_size [::Integer] + # The maximum number of schema bundles to return. If the value is positive, + # the server may return at most this value. If unspecified, the server will + # return the maximum allowed page size. + # @param page_token [::String] + # A page token, received from a previous `ListSchemaBundles` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListSchemaBundles` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new + # + # # Call the list_schema_bundles method. + # result = client.list_schema_bundles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + # p item + # end + # + def list_schema_bundles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_schema_bundles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_schema_bundles.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_schema_bundles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_schema_bundles, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_schema_bundles, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a schema bundle in the specified table. + # + # @overload delete_schema_bundle(request, options = nil) + # Pass arguments to `delete_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_schema_bundle(name: nil, etag: nil) + # Pass arguments to `delete_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the schema bundle to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @param etag [::String] + # Optional. The etag of the schema bundle. + # If this is provided, it must match the server's etag. The server + # returns an ABORTED error on a mismatched etag. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new + # + # # Call the delete_schema_bundle method. + # result = client.delete_schema_bundle request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_schema_bundle, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the BigtableTableAdmin API. + # + # This class represents the configuration for BigtableTableAdmin, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_table to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_table.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_table.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BigtableTableAdmin API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_table` + # @return [::Gapic::Config::Method] + # + attr_reader :create_table + ## + # RPC-specific configuration for `create_table_from_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :create_table_from_snapshot + ## + # RPC-specific configuration for `list_tables` + # @return [::Gapic::Config::Method] + # + attr_reader :list_tables + ## + # RPC-specific configuration for `get_table` + # @return [::Gapic::Config::Method] + # + attr_reader :get_table + ## + # RPC-specific configuration for `update_table` + # @return [::Gapic::Config::Method] + # + attr_reader :update_table + ## + # RPC-specific configuration for `delete_table` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_table + ## + # RPC-specific configuration for `undelete_table` + # @return [::Gapic::Config::Method] + # + attr_reader :undelete_table + ## + # RPC-specific configuration for `create_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_authorized_view + ## + # RPC-specific configuration for `list_authorized_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_authorized_views + ## + # RPC-specific configuration for `get_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_authorized_view + ## + # RPC-specific configuration for `update_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_authorized_view + ## + # RPC-specific configuration for `delete_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_authorized_view + ## + # RPC-specific configuration for `modify_column_families` + # @return [::Gapic::Config::Method] + # + attr_reader :modify_column_families + ## + # RPC-specific configuration for `drop_row_range` + # @return [::Gapic::Config::Method] + # + attr_reader :drop_row_range + ## + # RPC-specific configuration for `generate_consistency_token` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_consistency_token + ## + # RPC-specific configuration for `check_consistency` + # @return [::Gapic::Config::Method] + # + attr_reader :check_consistency + ## + # RPC-specific configuration for `snapshot_table` + # @return [::Gapic::Config::Method] + # + attr_reader :snapshot_table + ## + # RPC-specific configuration for `get_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :get_snapshot + ## + # RPC-specific configuration for `list_snapshots` + # @return [::Gapic::Config::Method] + # + attr_reader :list_snapshots + ## + # RPC-specific configuration for `delete_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_snapshot + ## + # RPC-specific configuration for `create_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :create_backup + ## + # RPC-specific configuration for `get_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :get_backup + ## + # RPC-specific configuration for `update_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :update_backup + ## + # RPC-specific configuration for `delete_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_backup + ## + # RPC-specific configuration for `list_backups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_backups + ## + # RPC-specific configuration for `restore_table` + # @return [::Gapic::Config::Method] + # + attr_reader :restore_table + ## + # RPC-specific configuration for `copy_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :copy_backup + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + ## + # RPC-specific configuration for `create_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :create_schema_bundle + ## + # RPC-specific configuration for `update_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :update_schema_bundle + ## + # RPC-specific configuration for `get_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :get_schema_bundle + ## + # RPC-specific configuration for `list_schema_bundles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_schema_bundles + ## + # RPC-specific configuration for `delete_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_schema_bundle + + # @private + def initialize parent_rpcs = nil + create_table_config = parent_rpcs.create_table if parent_rpcs.respond_to? :create_table + @create_table = ::Gapic::Config::Method.new create_table_config + create_table_from_snapshot_config = parent_rpcs.create_table_from_snapshot if parent_rpcs.respond_to? :create_table_from_snapshot + @create_table_from_snapshot = ::Gapic::Config::Method.new create_table_from_snapshot_config + list_tables_config = parent_rpcs.list_tables if parent_rpcs.respond_to? :list_tables + @list_tables = ::Gapic::Config::Method.new list_tables_config + get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table + @get_table = ::Gapic::Config::Method.new get_table_config + update_table_config = parent_rpcs.update_table if parent_rpcs.respond_to? :update_table + @update_table = ::Gapic::Config::Method.new update_table_config + delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table + @delete_table = ::Gapic::Config::Method.new delete_table_config + undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table + @undelete_table = ::Gapic::Config::Method.new undelete_table_config + create_authorized_view_config = parent_rpcs.create_authorized_view if parent_rpcs.respond_to? :create_authorized_view + @create_authorized_view = ::Gapic::Config::Method.new create_authorized_view_config + list_authorized_views_config = parent_rpcs.list_authorized_views if parent_rpcs.respond_to? :list_authorized_views + @list_authorized_views = ::Gapic::Config::Method.new list_authorized_views_config + get_authorized_view_config = parent_rpcs.get_authorized_view if parent_rpcs.respond_to? :get_authorized_view + @get_authorized_view = ::Gapic::Config::Method.new get_authorized_view_config + update_authorized_view_config = parent_rpcs.update_authorized_view if parent_rpcs.respond_to? :update_authorized_view + @update_authorized_view = ::Gapic::Config::Method.new update_authorized_view_config + delete_authorized_view_config = parent_rpcs.delete_authorized_view if parent_rpcs.respond_to? :delete_authorized_view + @delete_authorized_view = ::Gapic::Config::Method.new delete_authorized_view_config + modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families + @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config + drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range + @drop_row_range = ::Gapic::Config::Method.new drop_row_range_config + generate_consistency_token_config = parent_rpcs.generate_consistency_token if parent_rpcs.respond_to? :generate_consistency_token + @generate_consistency_token = ::Gapic::Config::Method.new generate_consistency_token_config + check_consistency_config = parent_rpcs.check_consistency if parent_rpcs.respond_to? :check_consistency + @check_consistency = ::Gapic::Config::Method.new check_consistency_config + snapshot_table_config = parent_rpcs.snapshot_table if parent_rpcs.respond_to? :snapshot_table + @snapshot_table = ::Gapic::Config::Method.new snapshot_table_config + get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot + @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config + list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots + @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config + delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot + @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config + create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup + @create_backup = ::Gapic::Config::Method.new create_backup_config + get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup + @get_backup = ::Gapic::Config::Method.new get_backup_config + update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup + @update_backup = ::Gapic::Config::Method.new update_backup_config + delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup + @delete_backup = ::Gapic::Config::Method.new delete_backup_config + list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups + @list_backups = ::Gapic::Config::Method.new list_backups_config + restore_table_config = parent_rpcs.restore_table if parent_rpcs.respond_to? :restore_table + @restore_table = ::Gapic::Config::Method.new restore_table_config + copy_backup_config = parent_rpcs.copy_backup if parent_rpcs.respond_to? :copy_backup + @copy_backup = ::Gapic::Config::Method.new copy_backup_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + create_schema_bundle_config = parent_rpcs.create_schema_bundle if parent_rpcs.respond_to? :create_schema_bundle + @create_schema_bundle = ::Gapic::Config::Method.new create_schema_bundle_config + update_schema_bundle_config = parent_rpcs.update_schema_bundle if parent_rpcs.respond_to? :update_schema_bundle + @update_schema_bundle = ::Gapic::Config::Method.new update_schema_bundle_config + get_schema_bundle_config = parent_rpcs.get_schema_bundle if parent_rpcs.respond_to? :get_schema_bundle + @get_schema_bundle = ::Gapic::Config::Method.new get_schema_bundle_config + list_schema_bundles_config = parent_rpcs.list_schema_bundles if parent_rpcs.respond_to? :list_schema_bundles + @list_schema_bundles = ::Gapic::Config::Method.new list_schema_bundles_config + delete_schema_bundle_config = parent_rpcs.delete_schema_bundle if parent_rpcs.respond_to? :delete_schema_bundle + @delete_schema_bundle = ::Gapic::Config::Method.new delete_schema_bundle_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb new file mode 100644 index 000000000000..b13ab97ad469 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Credentials for the BigtableTableAdmin API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + self.env_vars = [ + "BIGTABLE_CREDENTIALS", + "BIGTABLE_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "BIGTABLE_CREDENTIALS_JSON", + "BIGTABLE_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb new file mode 100644 index 000000000000..ad9957f0f690 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb @@ -0,0 +1,843 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BigtableTableAdmin Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableTableAdmin Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb new file mode 100644 index 000000000000..c10bcef1999e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb @@ -0,0 +1,214 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Path helper methods for the BigtableTableAdmin API. + module Paths + ## + # Create a fully-qualified AuthorizedView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # @param authorized_view [String] + # + # @return [::String] + def authorized_view_path project:, instance:, table:, authorized_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}/authorizedViews/#{authorized_view}" + end + + ## + # Create a fully-qualified Backup resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # @param backup [String] + # + # @return [::String] + def backup_path project:, instance:, cluster:, backup: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}" + end + + ## + # Create a fully-qualified Cluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # + # @return [::String] + def cluster_path project:, instance:, cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}" + end + + ## + # Create a fully-qualified CryptoKeyVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # @param crypto_key_version [String] + # + # @return [::String] + def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" + end + + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}` + # + # @param project [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/instances/#{instance}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified SchemaBundle resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # @param schema_bundle [String] + # + # @return [::String] + def schema_bundle_path project:, instance:, table:, schema_bundle: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}/schemaBundles/#{schema_bundle}" + end + + ## + # Create a fully-qualified Snapshot resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # @param snapshot [String] + # + # @return [::String] + def snapshot_path project:, instance:, cluster:, snapshot: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}" + end + + ## + # Create a fully-qualified Table resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # + # @return [::String] + def table_path project:, instance:, table: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb new file mode 100644 index 000000000000..b19e81c131f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + VERSION = "0.0.1" + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md new file mode 100644 index 000000000000..2968913b938d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md @@ -0,0 +1,4 @@ +# Cloud Bigtable Admin V2 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..d59ba51a5612 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb @@ -0,0 +1,473 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb new file mode 100644 index 000000000000..a39e72495e1c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb @@ -0,0 +1,767 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Request message for BigtableInstanceAdmin.CreateInstance. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the project in which to create the new + # instance. Values are of the form `projects/{project}`. + # @!attribute [rw] instance_id + # @return [::String] + # Required. The ID to be used when referring to the new instance within its + # project, e.g., just `myinstance` rather than + # `projects/myproject/instances/myinstance`. + # @!attribute [rw] instance + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # Required. The instance to create. + # Fields marked `OutputOnly` must be left blank. + # @!attribute [rw] clusters + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster}] + # Required. The clusters to be created within the instance, mapped by desired + # cluster ID, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # Fields marked `OutputOnly` must be left blank. + class CreateInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + class ClustersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for BigtableInstanceAdmin.GetInstance. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested instance. Values are of the form + # `projects/{project}/instances/{instance}`. + class GetInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListInstances. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the project for which a list of instances is + # requested. Values are of the form `projects/{project}`. + # @!attribute [rw] page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListInstancesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListInstances. + # @!attribute [rw] instances + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Instance>] + # The list of requested instances. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which Instance information could not be retrieved, + # due to an outage or some other transient condition. + # Instances whose Clusters are all in one of the failed locations + # may be missing from `instances`, and Instances with at least one + # Cluster in a failed location may only have partial information returned. + # Values are of the form `projects//locations/` + # @!attribute [rw] next_page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListInstancesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.PartialUpdateInstance. + # @!attribute [rw] instance + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # Required. The Instance which will (partially) replace the current value. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of Instance fields which should be replaced. + # Must be explicitly set. + class PartialUpdateInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteInstance. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the instance to be deleted. + # Values are of the form `projects/{project}/instances/{instance}`. + class DeleteInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateCluster. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the new + # cluster. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] cluster_id + # @return [::String] + # Required. The ID to be used when referring to the new cluster within its + # instance, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # @!attribute [rw] cluster + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # Required. The cluster to be created. + # Fields marked `OutputOnly` must be left blank. + class CreateClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetCluster. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + class GetClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListClusters. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which a list of clusters is + # requested. Values are of the form + # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + # Clusters for all Instances in a project, e.g., + # `projects/myproject/instances/-`. + # @!attribute [rw] page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListClustersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListClusters. + # @!attribute [rw] clusters + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Cluster>] + # The list of requested clusters. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which Cluster information could not be retrieved, + # due to an outage or some other transient condition. + # Clusters from these locations may be missing from `clusters`, + # or may only have partial information returned. + # Values are of the form `projects//locations/` + # @!attribute [rw] next_page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListClustersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteCluster. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the cluster to be deleted. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + class DeleteClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateInstance. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest] + # The request that prompted the initiation of this CreateInstance operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateInstanceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateInstance. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest] + # The request that prompted the initiation of this UpdateInstance operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateInstanceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateCluster. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest] + # The request that prompted the initiation of this CreateCluster operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + # @!attribute [rw] tables + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress}] + # Keys: the full `name` of each table that existed in the instance when + # CreateCluster was first called, i.e. + # `projects//instances//tables/`. Any table added + # to the instance by a later API call will be created in the new cluster by + # that API call, not this one. + # + # Values: information on how much of a table's data has been copied to the + # newly-created cluster so far. + class CreateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Progress info for copying a table's data to the new cluster. + # @!attribute [rw] estimated_size_bytes + # @return [::Integer] + # Estimate of the size of the table to be copied. + # @!attribute [rw] estimated_copied_bytes + # @return [::Integer] + # Estimate of the number of bytes copied so far for this table. + # This will eventually reach 'estimated_size_bytes' unless the table copy + # is CANCELLED. + # @!attribute [rw] state + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress::State] + class TableProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + module State + STATE_UNSPECIFIED = 0 + + # The table has not yet begun copying to the new cluster. + PENDING = 1 + + # The table is actively being copied to the new cluster. + COPYING = 2 + + # The table has been fully copied to the new cluster. + COMPLETED = 3 + + # The table was deleted before it finished copying to the new cluster. + # Note that tables deleted after completion will stay marked as + # COMPLETED, not CANCELLED. + CANCELLED = 4 + end + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress] + class TablesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The metadata for the Operation returned by UpdateCluster. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # The request that prompted the initiation of this UpdateCluster operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by PartialUpdateCluster. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest] + # The original request for PartialUpdateCluster. + class PartialUpdateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.PartialUpdateCluster. + # @!attribute [rw] cluster + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # Required. The Cluster which contains the partial updates to be applied, + # subject to the update_mask. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of Cluster fields which should be replaced. + class PartialUpdateClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateAppProfile. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the new app + # profile. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] app_profile_id + # @return [::String] + # Required. The ID to be used when referring to the new app profile within + # its instance, e.g., just `myprofile` rather than + # `projects/myproject/instances/myinstance/appProfiles/myprofile`. + # @!attribute [rw] app_profile + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # Required. The app profile to be created. + # Fields marked `OutputOnly` will be ignored. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # If true, ignore safety checks when creating the app profile. + class CreateAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetAppProfile. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested app profile. Values are of the + # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + class GetAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListAppProfiles. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which a list of app profiles + # is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + # e.g., `projects/myproject/instances/-`. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListAppProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListAppProfiles. + # @!attribute [rw] app_profiles + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # The list of requested app profiles. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all app profiles could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which AppProfile information could not be retrieved, + # due to an outage or some other transient condition. + # AppProfiles from these locations may be missing from `app_profiles`. + # Values are of the form `projects//locations/` + class ListAppProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateAppProfile. + # @!attribute [rw] app_profile + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # Required. The app profile which will (partially) replace the current value. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of app profile fields which should be replaced. + # If unset, all fields will be replaced. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # If true, ignore safety checks when updating the app profile. + class UpdateAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteAppProfile. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the app profile to be deleted. Values are of + # the form + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Required. If true, ignore safety checks when deleting the app profile. + class DeleteAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateAppProfile. + class UpdateAppProfileMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListHotTablets. + # @!attribute [rw] parent + # @return [::String] + # Required. The cluster name to list hot tablets. + # Value is in the following form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The start time to list hot tablets. The hot tablets in the response will + # have start times between the requested start time and end time. Start time + # defaults to Now if it is unset, and end time defaults to Now - 24 hours if + # it is unset. The start time should be less than the end time, and the + # maximum allowed time range between start time and end time is 48 hours. + # Start time and end time should have values between Now and Now - 14 days. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # The end time to list hot tablets. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size that is empty or zero lets the server choose the number of + # items to return. A page_size which is strictly positive will return at most + # that many items. A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls do not need a + # page_size field. If a page_size is set in subsequent calls, it must match + # the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListHotTabletsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListHotTablets. + # @!attribute [rw] hot_tablets + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # List of hot tablets in the tables of the requested cluster that fall + # within the requested time range. Hot tablets are ordered by node cpu usage + # percent. If there are multiple hot tablets that correspond to the same + # tablet within a 15-minute interval, only the hot tablet with the highest + # node cpu usage will be included in the response. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all hot tablets could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListHotTabletsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateLogicalView. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent instance where this logical view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @!attribute [rw] logical_view_id + # @return [::String] + # Required. The ID to use for the logical view, which will become the final + # component of the logical view's resource name. + # @!attribute [rw] logical_view + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # Required. The logical view to create. + class CreateLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateLogicalView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest] + # The request that prompted the initiation of this CreateLogicalView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateLogicalViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetLogicalView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested logical view. Values are of the + # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + class GetLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListLogicalViews. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which the list of logical + # views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of logical views to return. The service may + # return fewer than this value + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListLogicalViews` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListLogicalViews` must + # match the call that provided the page token. + class ListLogicalViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListLogicalViews. + # @!attribute [rw] logical_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # The list of requested logical views. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListLogicalViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateLogicalView. + # @!attribute [rw] logical_view + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # Required. The logical view to update. + # + # The logical view's `name` field is used to identify the view to update. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateLogicalView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest] + # The request that prompted the initiation of this UpdateLogicalView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation was started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateLogicalViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteLogicalView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the logical view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the logical view. + # If an etag is provided and does not match the current etag of the + # logical view, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateMaterializedView. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent instance where this materialized view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @!attribute [rw] materialized_view_id + # @return [::String] + # Required. The ID to use for the materialized view, which will become the + # final component of the materialized view's resource name. + # @!attribute [rw] materialized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # Required. The materialized view to create. + class CreateMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateMaterializedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest] + # The request that prompted the initiation of this CreateMaterializedView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateMaterializedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetMaterializedView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested materialized view. Values are of + # the form + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + class GetMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListMaterializedViews. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which the list of + # materialized views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of materialized views to return. The service + # may return fewer than this value + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListMaterializedViews` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListMaterializedViews` + # must match the call that provided the page token. + class ListMaterializedViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListMaterializedViews. + # @!attribute [rw] materialized_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # The list of requested materialized views. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListMaterializedViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateMaterializedView. + # @!attribute [rw] materialized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # Required. The materialized view to update. + # + # The materialized view's `name` field is used to identify the view to + # update. Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateMaterializedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest] + # The request that prompted the initiation of this UpdateMaterializedView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation was started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateMaterializedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteMaterializedView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the materialized view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the materialized view. + # If an etag is provided and does not match the current etag of the + # materialized view, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb new file mode 100644 index 000000000000..cde156ec6152 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb @@ -0,0 +1,1167 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the instance in which to create the restored + # table. Values are of the form `projects//instances/`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The id of the table to create and restore to. This + # table must not already exist. The `table_id` appended to + # `parent` forms the full table name of the form + # `projects//instances//tables/`. + # @!attribute [rw] backup + # @return [::String] + # Name of the backup from which to restore. Values are of the form + # `projects//instances//clusters//backups/`. + class RestoreTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the long-running operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. + # @!attribute [rw] name + # @return [::String] + # Name of the table being created and restored to. + # @!attribute [rw] source_type + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] + # The type of the restore source. + # @!attribute [rw] backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # @!attribute [rw] optimize_table_operation_name + # @return [::String] + # If exists, the name of the long-running operation that will be used to + # track the post-restore optimization process to optimize the performance of + # the restored table. The metadata type of the long-running operation is + # [OptimizeRestoreTableMetadata][]. The response type is + # {::Google::Protobuf::Empty Empty}. This long-running operation may be + # automatically created by the system if applicable after the + # RestoreTable long-running operation completes successfully. This operation + # may not be created if the table is already optimized or the restore was + # not successful. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable} + # operation. + class RestoreTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the long-running operation used to track the progress + # of optimizations performed on a newly restored table. This long-running + # operation is automatically created by the system after the successful + # completion of a table restore, and cannot be cancelled. + # @!attribute [rw] name + # @return [::String] + # Name of the restored table being optimized. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the post-restore optimizations. + class OptimizeRestoredTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table google.bigtable.admin.v2.BigtableTableAdmin.CreateTable} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # Maximum 50 characters. + # @!attribute [rw] table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Required. The Table to create. + # @!attribute [rw] initial_splits + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>] + # The optional list of row keys that will be used to initially split the + # table into several tablets (tablets are similar to HBase regions). + # Given two split keys, `s1` and `s2`, three tablets will be created, + # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + # + # Example: + # + # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + # `"other", "zz"]` + # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + # * Key assignment: + # - Tablet 1 `[, apple) => {"a"}.` + # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + # - Tablet 4 `[customer_2, other) => {"customer_2"}.` + # - Tablet 5 `[other, ) => {"other", "zz"}.` + class CreateTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # An initial split point for a newly created table. + # @!attribute [rw] key + # @return [::String] + # Row key to use as an initial tablet boundary. + class Split + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # @!attribute [rw] source_snapshot + # @return [::String] + # Required. The unique name of the snapshot from which to restore the table. + # The snapshot and the table must be in the same instance. Values are of the + # form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class CreateTableFromSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table on which to drop a range of rows. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] row_key_prefix + # @return [::String] + # Delete all rows that start with this row key prefix. Prefix cannot be + # zero length. + # + # Note: The following fields are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delete_all_data_from_table + # @return [::Boolean] + # Delete all rows in the table. Setting this to false is a no-op. + # + # Note: The following fields are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class DropRowRangeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which tables should be + # listed. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned tables' fields. + # NAME_ONLY view (default) and REPLICATION_VIEW are supported. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListTablesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} + # @!attribute [rw] tables + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Table>] + # The tables present in the requested instance. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all tables could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListTablesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table google.bigtable.admin.v2.BigtableTableAdmin.GetTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested table. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned table's fields. + # Defaults to `SCHEMA_VIEW` if unspecified. + class GetTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. + # @!attribute [rw] table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Required. The table to update. + # The table's `name` field is used to identify the table to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to update. + # A mask specifying which fields (e.g. `change_stream_config`) in the `table` + # field should be updated. This mask is relative to the `table` field, not to + # the request message. The wildcard (*) path is currently not supported. + # Currently UpdateTable is only supported for the following fields: + # + # * `change_stream_config` + # * `change_stream_config.retention_period` + # * `deletion_protection` + # * `row_key_schema` + # + # If `column_families` is set in `update_mask`, it will return an + # UNIMPLEMENTED error. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore safety checks when updating the table. + class UpdateTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. + # @!attribute [rw] name + # @return [::String] + # The name of the table being updated. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class DeleteTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to be restored. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class UndeleteTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}. + # @!attribute [rw] name + # @return [::String] + # The name of the table being restored. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was cancelled. + class UndeleteTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table whose families should be modified. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] modifications + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>] + # Required. Modifications to be atomically applied to the specified table's + # families. Entries are applied in order, meaning that earlier modifications + # can be masked by later ones (in the case of repeated updates to the same + # family, for example). + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore safety checks when modifying the column families. + class ModifyColumnFamiliesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A create, update, or delete of a particular column family. + # @!attribute [rw] id + # @return [::String] + # The ID of the column family to be modified. + # @!attribute [rw] create + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + # Create a new column family with the specified schema, or fail if + # one already exists with the given ID. + # + # Note: The following fields are mutually exclusive: `create`, `update`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] update + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + # Update an existing column family to the specified schema, or fail + # if no column family exists with the given ID. + # + # Note: The following fields are mutually exclusive: `update`, `create`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] drop + # @return [::Boolean] + # Drop (delete) the column family with the given ID, or fail if no such + # family exists. + # + # Note: The following fields are mutually exclusive: `drop`, `create`, `update`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` + # mod should be updated, ignored for other modification types. If unset or + # empty, we treat it as updating `gc_rule` to be backward compatible. + class Modification + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the Table for which to create a consistency + # token. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class GenerateConsistencyTokenRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} + # @!attribute [rw] consistency_token + # @return [::String] + # The generated consistency token. + class GenerateConsistencyTokenResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the Table for which to check replication + # consistency. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] consistency_token + # @return [::String] + # Required. The token created using GenerateConsistencyToken for the Table. + # @!attribute [rw] standard_read_remote_writes + # @return [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites] + # Checks that reads using an app profile with `StandardIsolation` can + # see all writes committed before the token was created, even if the + # read and write target different clusters. + # + # Note: The following fields are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_boost_read_local_writes + # @return [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites] + # Checks that reads using an app profile with `DataBoostIsolationReadOnly` + # can see all writes committed before the token was created, but only if + # the read and write target the same cluster. + # + # Note: The following fields are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class CheckConsistencyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Checks that all writes before the consistency token was generated are + # replicated in every cluster and readable. + class StandardReadRemoteWrites + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Checks that all writes before the consistency token was generated in the same + # cluster are readable by Databoost. + class DataBoostReadLocalWrites + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} + # @!attribute [rw] consistent + # @return [::Boolean] + # True only if the token is consistent. A token is consistent if replication + # has caught up with the restrictions specified in the request. + class CheckConsistencyResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to have the snapshot taken. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] cluster + # @return [::String] + # Required. The name of the cluster where the snapshot will be created in. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] snapshot_id + # @return [::String] + # Required. The ID by which the new snapshot should be referred to within the + # parent cluster, e.g., `mysnapshot` of the form: + # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + # @!attribute [rw] ttl + # @return [::Google::Protobuf::Duration] + # The amount of time that the new snapshot can stay active after it is + # created. Once 'ttl' expires, the snapshot will get deleted. The maximum + # amount of time a snapshot can stay active is 7 days. If 'ttl' is not + # specified, the default value of 24 hours will be used. + # @!attribute [rw] description + # @return [::String] + # Description of the snapshot. + class SnapshotTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class GetSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the cluster for which snapshots should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of snapshots to return per page. + # CURRENTLY UNIMPLEMENTED AND IGNORED. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListSnapshotsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] snapshots + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # The snapshots present in the requested cluster. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all snapshots could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListSnapshotsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the snapshot to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class DeleteSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by SnapshotTable. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest] + # The request that prompted the initiation of this SnapshotTable operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class SnapshotTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateTableFromSnapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest] + # The request that prompted the initiation of this CreateTableFromSnapshot + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateTableFromSnapshotMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. + # @!attribute [rw] parent + # @return [::String] + # Required. This must be one of the clusters in the instance in which this + # table is located. The backup will be stored in this cluster. Values are + # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] backup_id + # @return [::String] + # Required. The id of the backup to be created. The `backup_id` along with + # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create + # the full backup name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @!attribute [rw] backup + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # Required. The backup to create. + class CreateBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. + # @!attribute [rw] name + # @return [::String] + # The name of the backup being created. + # @!attribute [rw] source_table + # @return [::String] + # The name of the table the backup is created from. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was cancelled. + class CreateBackupMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup UpdateBackup}. + # @!attribute [rw] backup + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # Required. The backup to update. `backup.name`, and the fields to be updated + # as specified by `update_mask` are required. Other fields are ignored. + # Update is only supported for the following fields: + # + # * `backup.expire_time`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. A mask specifying which fields (e.g. `expire_time`) in the + # Backup resource should be updated. This mask is relative to the Backup + # resource, not to the request message. The field mask must always be + # specified; this prevents any future fields from being erased accidentally + # by clients that do not know about them. + class UpdateBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup GetBackup}. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the backup. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + class GetBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup DeleteBackup}. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the backup to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + class DeleteBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. + # @!attribute [rw] parent + # @return [::String] + # Required. The cluster to list backups from. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list backups for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @!attribute [rw] filter + # @return [::String] + # A filter expression that filters backups listed in the response. + # The expression must specify the field name, a comparison operator, + # and the value that you want to use for filtering. The value must be a + # string, a number, or a boolean. The comparison operator must be + # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + # roughly synonymous with equality. Filter rules are case insensitive. + # + # The fields eligible for filtering are: + # + # * `name` + # * `source_table` + # * `state` + # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `size_bytes` + # + # To filter on multiple expressions, provide each separate expression within + # parentheses. By default, each expression is an AND expression. However, + # you can include AND, OR, and NOT expressions explicitly. + # + # Some examples of using filters are: + # + # * `name:"exact"` --> The backup's name is the string "exact". + # * `name:howl` --> The backup's name contains the string "howl". + # * `source_table:prod` + # --> The source_table's name contains the string "prod". + # * `state:CREATING` --> The backup is pending creation. + # * `state:READY` --> The backup is fully created and ready for use. + # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + # --> The backup name contains the string "howl" and start_time + # of the backup is before 2018-03-28T14:50:00Z. + # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + # @!attribute [rw] order_by + # @return [::String] + # An expression for specifying the sort order of the results of the request. + # The string value should specify one or more fields in + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at + # https://aip.dev/132#ordering. + # + # Fields supported are: + # + # * name + # * source_table + # * expire_time + # * start_time + # * end_time + # * size_bytes + # * state + # + # For example, "start_time". The default sorting order is ascending. + # To specify descending order for the field, a suffix " desc" should + # be appended to the field name. For example, "start_time desc". + # Redundant space characters in the syntax are insigificant. + # + # If order_by is empty, results will be sorted by `start_time` in descending + # order starting from the most recently created backup. + # @!attribute [rw] page_size + # @return [::Integer] + # Number of backups to be returned in the response. If 0 or + # less, defaults to the server's maximum allowed page size. + # @!attribute [rw] page_token + # @return [::String] + # If non-empty, `page_token` should contain a + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} + # from a previous + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the + # same `parent` and with the same `filter`. + class ListBackupsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. + # @!attribute [rw] backups + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # The list of matching backups. + # @!attribute [rw] next_page_token + # @return [::String] + # `next_page_token` can be sent in a subsequent + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups} call + # to fetch more of the matching backups. + class ListBackupsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the destination cluster that will contain the backup + # copy. The cluster must already exist. Values are of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] backup_id + # @return [::String] + # Required. The id of the new backup. The `backup_id` along with `parent` + # are combined as \\{parent}/backups/\\{backup_id} to create the full backup + # name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @!attribute [rw] source_backup + # @return [::String] + # Required. The source backup to be copied from. + # The source backup needs to be in READY state for it to be copied. + # Copying a copied backup is not allowed. + # Once CopyBackup is in progress, the source backup cannot be deleted or + # cleaned up on expiration until CopyBackup is finished. + # Values are of the form: + # `projects//instances//clusters//backups/`. + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # Required. Required. The expiration time of the copied backup with + # microsecond granularity that must be at least 6 hours and at most 30 days + # from the time the request is received. Once the `expire_time` has + # passed, Cloud Bigtable will delete the backup and free the resources used + # by the backup. + class CopyBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the google.longrunning.Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. + # @!attribute [rw] name + # @return [::String] + # The name of the backup being created through the copy operation. + # Values are of the form + # `projects//instances//clusters//backups/`. + # @!attribute [rw] source_backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # Information about the source backup that is being copied from. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup} + # operation. + class CopyBackupMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view CreateAuthorizedView} + # @!attribute [rw] parent + # @return [::String] + # Required. This is the name of the table the AuthorizedView belongs to. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] authorized_view_id + # @return [::String] + # Required. The id of the AuthorizedView to create. This AuthorizedView must + # not already exist. The `authorized_view_id` appended to `parent` forms the + # full AuthorizedView name of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + # @!attribute [rw] authorized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # Required. The AuthorizedView to create. + class CreateAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateAuthorizedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest] + # The request that prompted the initiation of this CreateAuthorizedView + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateAuthorizedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the table for which AuthorizedViews should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # Optional. The value of `next_page_token` returned by a previous call. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedViews' + # fields. Default to NAME_ONLY. + class ListAuthorizedViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} + # @!attribute [rw] authorized_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # The AuthorizedViews present in the requested table. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all tables could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListAuthorizedViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedView's + # fields. Default to BASIC. + class GetAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. + # @!attribute [rw] authorized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # Required. The AuthorizedView to update. The `name` in `authorized_view` is + # used to identify the AuthorizedView. AuthorizedView name must in this + # format: + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + # A mask specifying which fields in the AuthorizedView resource should be + # updated. This mask is relative to the AuthorizedView resource, not to the + # request message. A field will be overwritten if it is in the mask. If + # empty, all fields set in the request will be overwritten. A special value + # `*` means to overwrite all fields (including fields not set in the + # request). + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore the safety checks when updating the + # AuthorizedView. + class UpdateAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for the google.longrunning.Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest] + # The request that prompted the initiation of this UpdateAuthorizedView + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateAuthorizedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the AuthorizedView to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the AuthorizedView. + # If an etag is provided and does not match the current etag of the + # AuthorizedView, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this schema bundle will be created. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # Required. The unique ID to use for the schema bundle, which will become the + # final component of the schema bundle's resource name. + # @!attribute [rw] schema_bundle + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # Required. The schema bundle to create. + class CreateSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateSchemaBundleMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. + # @!attribute [rw] schema_bundle + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # Required. The schema bundle to update. + # + # The schema bundle's `name` field is used to identify the schema bundle to + # update. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If set, ignore the safety checks when updating the Schema Bundle. + # The safety checks are: + # - The new Schema Bundle is backwards compatible with the existing Schema + # Bundle. + class UpdateSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateSchemaBundleMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle GetSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the schema bundle to retrieve. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + class GetSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of schema bundles. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of schema bundles to return. If the value is positive, + # the server may return at most this value. If unspecified, the server will + # return the maximum allowed page size. + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListSchemaBundles` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListSchemaBundles` must + # match the call that provided the page token. + class ListSchemaBundlesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. + # @!attribute [rw] schema_bundles + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # The schema bundles from the specified table. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListSchemaBundlesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle DeleteSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the schema bundle to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag of the schema bundle. + # If this is provided, it must match the server's etag. The server + # returns an ABORTED error on a mismatched etag. + class DeleteSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb new file mode 100644 index 000000000000..09fe845b5e8c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Encapsulates progress related information for a Cloud Bigtable long + # running operation. + # @!attribute [rw] progress_percent + # @return [::Integer] + # Percent completion of the operation. + # Values are between 0 and 100 inclusive. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Time the request was received. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation failed or was completed + # successfully. + class OperationProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Storage media types for persisting Bigtable data. + module StorageType + # The user did not specify a storage type. + STORAGE_TYPE_UNSPECIFIED = 0 + + # Flash (SSD) storage should be used. + SSD = 1 + + # Magnetic drive (HDD) storage should be used. + HDD = 2 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb new file mode 100644 index 000000000000..3915a0a92c55 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb @@ -0,0 +1,519 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # A collection of Bigtable {::Google::Cloud::Bigtable::Admin::V2::Table Tables} and + # the resources that serve them. + # All tables in an instance are served from all + # {::Google::Cloud::Bigtable::Admin::V2::Cluster Clusters} in the instance. + # @!attribute [rw] name + # @return [::String] + # The unique name of the instance. Values are of the form + # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + # @!attribute [rw] display_name + # @return [::String] + # Required. The descriptive name for this instance as it appears in UIs. + # Can be changed at any time, but should be kept globally unique + # to avoid confusion. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::State] + # Output only. The current state of the instance. + # @!attribute [rw] type + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] + # The type of the instance. Defaults to `PRODUCTION`. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Labels are a flexible and lightweight mechanism for organizing cloud + # resources into groups that reflect a customer's organizational needs and + # deployment strategies. They can be used to filter resources and aggregate + # metrics. + # + # * Label keys must be between 1 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + # * Label values must be between 0 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + # * No more than 64 labels can be associated with a given resource. + # * Keys and values must both be under 128 bytes. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. A commit timestamp representing when this Instance was + # created. For instances created before this field was added (August 2021), + # this value is `seconds: 0, nanos: 1`. + # @!attribute [r] satisfies_pzs + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [r] satisfies_pzi + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [rw] tags + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Input only. Immutable. Tag keys/values directly bound to this + # resource. For example: + # - "123/environment": "production", + # - "123/costCenter": "marketing" + # + # Tags and Labels (above) are both used to bind metadata to resources, with + # different use-cases. See + # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + # in-depth overview on the difference between tags and labels. + class Instance + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TagsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of an instance. + module State + # The state of the instance could not be determined. + STATE_NOT_KNOWN = 0 + + # The instance has been successfully created and can serve requests + # to its tables. + READY = 1 + + # The instance is currently being created, and may be destroyed + # if the creation process encounters an error. + CREATING = 2 + end + + # The type of the instance. + module Type + # The type of the instance is unspecified. If set when creating an + # instance, a `PRODUCTION` instance will be created. If set when updating + # an instance, the type will be left unchanged. + TYPE_UNSPECIFIED = 0 + + # An instance meant for production use. `serve_nodes` must be set + # on the cluster. + PRODUCTION = 1 + + # DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces + # a higher minimum node count than DEVELOPMENT. + DEVELOPMENT = 2 + end + end + + # The Autoscaling targets for a Cluster. These determine the recommended nodes. + # @!attribute [rw] cpu_utilization_percent + # @return [::Integer] + # The cpu utilization that the Autoscaler should be trying to achieve. + # This number is on a scale from 0 (no utilization) to + # 100 (total utilization), and is limited between 10 and 80, otherwise it + # will return INVALID_ARGUMENT error. + # @!attribute [rw] storage_utilization_gib_per_node + # @return [::Integer] + # The storage utilization that the Autoscaler should be trying to achieve. + # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, + # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + # it will be treated as if it were set to the default value: 2560 for SSD, + # 8192 for HDD. + class AutoscalingTargets + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Limits for the number of nodes a Cluster can autoscale up/down to. + # @!attribute [rw] min_serve_nodes + # @return [::Integer] + # Required. Minimum number of nodes to scale down to. + # @!attribute [rw] max_serve_nodes + # @return [::Integer] + # Required. Maximum number of nodes to scale up to. + class AutoscalingLimits + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resizable group of nodes in a particular cloud location, capable + # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent + # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}. + # @!attribute [rw] name + # @return [::String] + # The unique name of the cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + # @!attribute [rw] location + # @return [::String] + # Immutable. The location where this cluster's nodes and storage reside. For + # best performance, clients should be located as close as possible to this + # cluster. Currently only zones are supported, so values should be of the + # form `projects/{project}/locations/{zone}`. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::State] + # Output only. The current state of the cluster. + # @!attribute [rw] serve_nodes + # @return [::Integer] + # The number of nodes in the cluster. If no value is set, + # Cloud Bigtable automatically allocates nodes based on your data footprint + # and optimized for 50% storage utilization. + # @!attribute [rw] node_scaling_factor + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] + # Immutable. The node scaling factor of this cluster. + # @!attribute [rw] cluster_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig] + # Configuration for this cluster. + # @!attribute [rw] default_storage_type + # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType] + # Immutable. The type of storage used by this cluster to serve its + # parent instance's tables, unless explicitly overridden. + # @!attribute [rw] encryption_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig] + # Immutable. The encryption configuration for CMEK-protected clusters. + class Cluster + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Autoscaling config for a cluster. + # @!attribute [rw] autoscaling_limits + # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits] + # Required. Autoscaling limits for this cluster. + # @!attribute [rw] autoscaling_targets + # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets] + # Required. Autoscaling targets for this cluster. + class ClusterAutoscalingConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for a cluster. + # @!attribute [rw] cluster_autoscaling_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig] + # Autoscaling configuration for this cluster. + class ClusterConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected + # cluster. + # @!attribute [rw] kms_key_name + # @return [::String] + # Describes the Cloud KMS encryption key that will be used to protect the + # destination Bigtable cluster. The requirements for this key are: + # 1) The Cloud Bigtable service account associated with the project that + # contains this cluster must be granted the + # `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + # 2) Only regional keys can be used and the region of the CMEK key must + # match the region of the cluster. + # Values are of the form + # `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + class EncryptionConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of a cluster. + module State + # The state of the cluster could not be determined. + STATE_NOT_KNOWN = 0 + + # The cluster has been successfully created and is ready to serve requests. + READY = 1 + + # The cluster is currently being created, and may be destroyed + # if the creation process encounters an error. + # A cluster may not be able to serve requests while being created. + CREATING = 2 + + # The cluster is currently being resized, and may revert to its previous + # node count if the process encounters an error. + # A cluster is still capable of serving requests while being resized, + # but may exhibit performance as if its number of allocated nodes is + # between the starting and requested states. + RESIZING = 3 + + # The cluster has no backing nodes. The data (tables) still + # exist, but no operations can be performed on the cluster. + DISABLED = 4 + end + + # Possible node scaling factors of the clusters. Node scaling delivers better + # latency and more throughput by removing node boundaries. + module NodeScalingFactor + # No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. + NODE_SCALING_FACTOR_UNSPECIFIED = 0 + + # The cluster is running with a scaling factor of 1. + NODE_SCALING_FACTOR_1X = 1 + + # The cluster is running with a scaling factor of 2. + # All node count values must be in increments of 2 with this scaling factor + # enabled, otherwise an INVALID_ARGUMENT error will be returned. + NODE_SCALING_FACTOR_2X = 2 + end + end + + # A configuration object describing how Cloud Bigtable should treat traffic + # from a particular end user application. + # @!attribute [rw] name + # @return [::String] + # The unique name of the app profile. Values are of the form + # `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # @!attribute [rw] etag + # @return [::String] + # Strongly validated etag for optimistic concurrency control. Preserve the + # value returned from `GetAppProfile` when calling `UpdateAppProfile` to + # fail the request if there has been a modification in the mean time. The + # `update_mask` of the request need not include `etag` for this protection + # to apply. + # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + # [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + # details. + # @!attribute [rw] description + # @return [::String] + # Long form description of the use case for this AppProfile. + # @!attribute [rw] multi_cluster_routing_use_any + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny] + # Use a multi-cluster routing policy. + # + # Note: The following fields are mutually exclusive: `multi_cluster_routing_use_any`, `single_cluster_routing`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] single_cluster_routing + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting] + # Use a single-cluster routing policy. + # + # Note: The following fields are mutually exclusive: `single_cluster_routing`, `multi_cluster_routing_use_any`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] priority + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] + # This field has been deprecated in favor of `standard_isolation.priority`. + # If you set this field, `standard_isolation.priority` will be set instead. + # + # The priority of requests sent using this app profile. + # + # Note: The following fields are mutually exclusive: `priority`, `standard_isolation`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] standard_isolation + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::StandardIsolation] + # The standard options used for isolating this app profile's traffic from + # other use cases. + # + # Note: The following fields are mutually exclusive: `standard_isolation`, `priority`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_boost_isolation_read_only + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly] + # Specifies that this app profile is intended for read-only usage via the + # Data Boost feature. + # + # Note: The following fields are mutually exclusive: `data_boost_isolation_read_only`, `priority`, `standard_isolation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class AppProfile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Read/write requests are routed to the nearest cluster in the instance, and + # will fail over to the nearest cluster that is available in the event of + # transient errors or delays. Clusters in a region are considered + # equidistant. Choosing this option sacrifices read-your-writes consistency + # to improve availability. + # @!attribute [rw] cluster_ids + # @return [::Array<::String>] + # The set of clusters to route to. The order is ignored; clusters will be + # tried in order of distance. If left empty, all clusters are eligible. + # @!attribute [rw] row_affinity + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity] + # Row affinity sticky routing based on the row key of the request. + # Requests that span multiple rows are routed non-deterministically. + class MultiClusterRoutingUseAny + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # If enabled, Bigtable will route the request based on the row key of the + # request, rather than randomly. Instead, each row key will be assigned + # to a cluster, and will stick to that cluster. If clusters are added or + # removed, then this may affect which row keys stick to which clusters. + # To avoid this, users can use a cluster group to specify which clusters + # are to be used. In this case, new clusters that are not a part of the + # cluster group will not be routed to, and routing will be unaffected by + # the new cluster. Moreover, clusters specified in the cluster group cannot + # be deleted unless removed from the cluster group. + class RowAffinity + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Unconditionally routes all read/write requests to a specific cluster. + # This option preserves read-your-writes consistency but does not improve + # availability. + # @!attribute [rw] cluster_id + # @return [::String] + # The cluster to which read/write requests should be routed. + # @!attribute [rw] allow_transactional_writes + # @return [::Boolean] + # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + # allowed by this app profile. It is unsafe to send these requests to + # the same table/row/column in multiple clusters. + class SingleClusterRouting + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Standard options for isolating this app profile's traffic from other use + # cases. + # @!attribute [rw] priority + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] + # The priority of requests sent using this app profile. + class StandardIsolation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data Boost is a serverless compute capability that lets you run + # high-throughput read jobs and queries on your Bigtable data, without + # impacting the performance of the clusters that handle your application + # traffic. Data Boost supports read-only use cases with single-cluster + # routing. + # @!attribute [rw] compute_billing_owner + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner] + # The Compute Billing Owner for this Data Boost App Profile. + class DataBoostIsolationReadOnly + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Compute Billing Owner specifies how usage should be accounted when using + # Data Boost. Compute Billing Owner also configures which Cloud Project is + # charged for relevant quota. + module ComputeBillingOwner + # Unspecified value. + COMPUTE_BILLING_OWNER_UNSPECIFIED = 0 + + # The host Cloud Project containing the targeted Bigtable Instance / + # Table pays for compute. + HOST_PAYS = 1 + end + end + + # Possible priorities for an app profile. Note that higher priority writes + # can sometimes queue behind lower priority writes to the same tablet, as + # writes must be strictly sequenced in the durability log. + module Priority + # Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. + PRIORITY_UNSPECIFIED = 0 + + PRIORITY_LOW = 1 + + PRIORITY_MEDIUM = 2 + + PRIORITY_HIGH = 3 + end + end + + # A tablet is a defined by a start and end key and is explained in + # https://cloud.google.com/bigtable/docs/overview#architecture and + # https://cloud.google.com/bigtable/docs/performance#optimization. + # A Hot tablet is a tablet that exhibits high average cpu usage during the time + # interval from start time to end time. + # @!attribute [rw] name + # @return [::String] + # The unique name of the hot tablet. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. + # @!attribute [rw] table_name + # @return [::String] + # Name of the table that contains the tablet. Values are of the form + # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The start time of the hot tablet. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The end time of the hot tablet. + # @!attribute [rw] start_key + # @return [::String] + # Tablet Start Key (inclusive). + # @!attribute [rw] end_key + # @return [::String] + # Tablet End Key (inclusive). + # @!attribute [r] node_cpu_usage_percent + # @return [::Float] + # Output only. The average CPU usage spent by a node on this tablet over the + # start_time to end_time time range. The percentage is the amount of CPU used + # by the node to serve the tablet, from 0% (tablet was not interacted with) + # to 100% (the node spent all cycles serving the hot tablet). + class HotTablet + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A SQL logical view object that can be referenced in SQL queries. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name of the logical view. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + # @!attribute [rw] query + # @return [::String] + # Required. The logical view's select query. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this logical view. + # This may be sent on update requests to ensure that the client has an + # up-to-date value before proceeding. The server returns an ABORTED error on + # a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Optional. Set to true to make the LogicalView protected against deletion. + class LogicalView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A materialized view object that can be referenced in SQL queries. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name of the materialized view. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + # @!attribute [rw] query + # @return [::String] + # Required. Immutable. The materialized view's select query. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this materialized view. + # This may be sent on update requests to ensure that the client has an + # up-to-date value before proceeding. The server returns an ABORTED error on + # a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the MaterializedView protected against deletion. + class MaterializedView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb new file mode 100644 index 000000000000..a0aaeed8b974 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb @@ -0,0 +1,741 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Information about a table restore. + # @!attribute [rw] source_type + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] + # The type of the restore source. + # @!attribute [rw] backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # Information about the backup used to restore the table. The backup + # may no longer exist. + class RestoreInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Change stream configuration. + # @!attribute [rw] retention_period + # @return [::Google::Protobuf::Duration] + # How long the change stream should be retained. Change stream data older + # than the retention period will not be returned when reading the change + # stream from the table. + # Values must be at least 1 day and at most 7 days, and will be truncated to + # microsecond granularity. + class ChangeStreamConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A collection of user data indexed by row, column, and timestamp. + # Each table is served using the resources of its parent cluster. + # @!attribute [rw] name + # @return [::String] + # The unique name of the table. Values are of the form + # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + # @!attribute [r] cluster_states + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState}] + # Output only. Map from cluster ID to per-cluster table state. + # If it could not be determined whether or not the table has data in a + # particular cluster (for example, if its zone is unavailable), then + # there will be an entry for the cluster with UNKNOWN `replication_status`. + # Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` + # @!attribute [rw] column_families + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::ColumnFamily}] + # The column families configured for this table, mapped by column family ID. + # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + # @!attribute [rw] granularity + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::TimestampGranularity] + # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + # in this table. Timestamps not matching the granularity will be rejected. If + # unspecified at creation time, the value will be set to `MILLIS`. Views: + # `SCHEMA_VIEW`, `FULL`. + # @!attribute [r] restore_info + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreInfo] + # Output only. If this table was restored from another data source (e.g. a + # backup), this field will be populated with information about the restore. + # @!attribute [rw] change_stream_config + # @return [::Google::Cloud::Bigtable::Admin::V2::ChangeStreamConfig] + # If specified, enable the change stream on this table. + # Otherwise, the change stream is disabled and the change stream is not + # retained. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the table protected against data loss. i.e. deleting + # the following resources through Admin APIs are prohibited: + # + # * The table. + # * The column families in the table. + # * The instance containing the table. + # + # Note one can still delete the data stored in the table through Data APIs. + # @!attribute [rw] automated_backup_policy + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::AutomatedBackupPolicy] + # If specified, automated backups are enabled for this table. + # Otherwise, automated backups are disabled. + # @!attribute [rw] tiered_storage_config + # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageConfig] + # Rules to specify what data is stored in each storage tier. + # Different tiers store data differently, providing different trade-offs + # between cost and performance. Different parts of a table can be stored + # separately on different tiers. + # If a config is specified, tiered storage is enabled for this table. + # Otherwise, tiered storage is disabled. + # Only SSD instances can configure tiered storage. + # @!attribute [rw] row_key_schema + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] + # The row key schema for this table. The schema is used to decode the raw row + # key bytes into a structured format. The order of field declarations in this + # schema is important, as it reflects how the raw row key bytes are + # structured. Currently, this only affects how the key is read via a + # GoogleSQL query from the ExecuteQuery API. + # + # For a SQL query, the _key column is still read as raw bytes. But queries + # can reference the key fields by name, which will be decoded from _key using + # provided type and encoding. Queries that reference key fields will fail if + # they encounter an invalid row key. + # + # For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + # following schema: + # { + # fields { + # field_name: "id" + # type { string { encoding: utf8_bytes \\{} } } + # } + # fields { + # field_name: "date" + # type { string { encoding: utf8_bytes \\{} } } + # } + # fields { + # field_name: "product_code" + # type { int64 { encoding: big_endian_bytes \\{} } } + # } + # encoding { delimited_bytes { delimiter: "#" } } + # } + # + # The decoded key parts would be: + # id = "some_id", date = "2024-04-30", product_code = 1245427 + # The query "SELECT _key, product_code FROM table" will return two columns: + # /------------------------------------------------------\ + # | _key | product_code | + # | --------------------------------------|--------------| + # | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + # \------------------------------------------------------/ + # + # The schema has the following invariants: + # (1) The decoded field values are order-preserved. For read, the field + # values will be decoded in sorted mode from the raw bytes. + # (2) Every field in the schema must specify a non-empty name. + # (3) Every field must specify a type with an associated encoding. The type + # is limited to scalar types only: Array, Map, Aggregate, and Struct are not + # allowed. + # (4) The field names must not collide with existing column family + # names and reserved keywords "_key" and "_timestamp". + # + # The following update operations are allowed for row_key_schema: + # - Update from an empty schema to a new schema. + # - Remove the existing schema. This operation requires setting the + # `ignore_warnings` flag to `true`, since it might be a backward + # incompatible change. Without the flag, the update request will fail with + # an INVALID_ARGUMENT error. + # Any other row key schema update operation (e.g. update existing schema + # columns names or types) is currently unsupported. + class Table + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The state of a table's data in a particular cluster. + # @!attribute [r] replication_state + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState::ReplicationState] + # Output only. The state of replication for the table in this cluster. + # @!attribute [r] encryption_info + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo>] + # Output only. The encryption information for the table in this cluster. + # If the encryption key protecting this resource is customer managed, then + # its version can be rotated in Cloud Key Management Service (Cloud KMS). + # The primary version of the key and its status will be reflected here when + # changes propagate from Cloud KMS. + class ClusterState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Table replication states. + module ReplicationState + # The replication state of the table is unknown in this cluster. + STATE_NOT_KNOWN = 0 + + # The cluster was recently created, and the table must finish copying + # over pre-existing data from other clusters before it can begin + # receiving live replication updates and serving Data API requests. + INITIALIZING = 1 + + # The table is temporarily unable to serve Data API requests from this + # cluster due to planned internal maintenance. + PLANNED_MAINTENANCE = 2 + + # The table is temporarily unable to serve Data API requests from this + # cluster due to unplanned or emergency maintenance. + UNPLANNED_MAINTENANCE = 3 + + # The table can serve Data API requests from this cluster. Depending on + # replication delay, reads may not immediately reflect the state of the + # table in other clusters. + READY = 4 + + # The table is fully created and ready for use after a restore, and is + # being optimized for performance. When optimizations are complete, the + # table will transition to `READY` state. + READY_OPTIMIZING = 5 + end + end + + # Defines an automated backup policy for a table + # @!attribute [rw] retention_period + # @return [::Google::Protobuf::Duration] + # Required. How long the automated backups should be retained. Values must + # be at least 3 days and at most 90 days. + # @!attribute [rw] frequency + # @return [::Google::Protobuf::Duration] + # How frequently automated backups should occur. The only supported value + # at this time is 24 hours. An undefined frequency is treated as 24 hours. + # @!attribute [rw] locations + # @return [::Array<::String>] + # Optional. A list of Cloud Bigtable zones where automated backups are + # allowed to be created. If empty, automated backups will be created in all + # zones of the instance. Locations are in the format + # `projects/{project}/locations/{zone}`. + # This field can only set for tables in Enterprise Plus instances. + class AutomatedBackupPolicy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState] + class ClusterStatesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + class ColumnFamiliesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible timestamp granularities to use when keeping multiple versions + # of data in a table. + module TimestampGranularity + # The user did not specify a granularity. Should not be returned. + # When specified during table creation, MILLIS will be used. + TIMESTAMP_GRANULARITY_UNSPECIFIED = 0 + + # The table keeps data versioned at a granularity of 1ms. + MILLIS = 1 + end + + # Defines a view over a table's fields. + module View + # Uses the default view for each method as documented in its request. + VIEW_UNSPECIFIED = 0 + + # Only populates `name`. + NAME_ONLY = 1 + + # Only populates `name` and fields related to the table's schema. + SCHEMA_VIEW = 2 + + # Only populates `name` and fields related to the table's replication + # state. + REPLICATION_VIEW = 3 + + # Only populates `name` and fields related to the table's encryption state. + ENCRYPTION_VIEW = 5 + + # Populates all fields. + FULL = 4 + end + end + + # AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users + # can configure access to each Authorized View independently from the table and + # use the existing Data APIs to access the subset of data. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of this AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + # @!attribute [rw] subset_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::SubsetView] + # An AuthorizedView permitting access to an explicit subset of a Table. + # @!attribute [rw] etag + # @return [::String] + # The etag for this AuthorizedView. + # If this is provided on update, it must match the server's etag. The server + # returns ABORTED error on a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the AuthorizedView protected against deletion. + # The parent Table and containing Instance cannot be deleted if an + # AuthorizedView has this bit set. + class AuthorizedView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Subsets of a column family that are included in this AuthorizedView. + # @!attribute [rw] qualifiers + # @return [::Array<::String>] + # Individual exact column qualifiers to be included in the AuthorizedView. + # @!attribute [rw] qualifier_prefixes + # @return [::Array<::String>] + # Prefixes for qualifiers to be included in the AuthorizedView. Every + # qualifier starting with one of these prefixes is included in the + # AuthorizedView. To provide access to all qualifiers, include the empty + # string as a prefix + # (""). + class FamilySubsets + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a simple AuthorizedView that is a subset of the underlying Table. + # @!attribute [rw] row_prefixes + # @return [::Array<::String>] + # Row prefixes to be included in the AuthorizedView. + # To provide access to all rows, include the empty string as a prefix (""). + # @!attribute [rw] family_subsets + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets}] + # Map from column family name to the columns in this family to be included + # in the AuthorizedView. + class SubsetView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets] + class FamilySubsetsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Defines a subset of an AuthorizedView's fields. + module ResponseView + # Uses the default view for each method as documented in the request. + RESPONSE_VIEW_UNSPECIFIED = 0 + + # Only populates `name`. + NAME_ONLY = 1 + + # Only populates the AuthorizedView's basic metadata. This includes: + # name, deletion_protection, etag. + BASIC = 2 + + # Populates every fields. + FULL = 3 + end + end + + # A set of columns within a table which share a common configuration. + # @!attribute [rw] gc_rule + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule] + # Garbage collection rule specified as a protobuf. + # Must serialize to at most 500 bytes. + # + # NOTE: Garbage collection executes opportunistically in the background, and + # so it's possible for reads to return a cell even if it matches the active + # GC expression for its family. + # @!attribute [rw] value_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of data stored in each of this family's cell values, including its + # full encoding. If omitted, the family only serves raw untyped bytes. + # + # For now, only the `Aggregate` type is supported. + # + # `Aggregate` can only be set at family creation and is immutable afterwards. + # + # + # If `value_type` is `Aggregate`, written data must be compatible with: + # * `value_type.input_type` for `AddInput` mutations + class ColumnFamily + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rule for determining which cells to delete during garbage collection. + # @!attribute [rw] max_num_versions + # @return [::Integer] + # Delete all cells in a column except the most recent N. + # + # Note: The following fields are mutually exclusive: `max_num_versions`, `max_age`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] max_age + # @return [::Google::Protobuf::Duration] + # Delete cells in a column older than the given age. + # Values must be at least one millisecond, and will be truncated to + # microsecond granularity. + # + # Note: The following fields are mutually exclusive: `max_age`, `max_num_versions`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] intersection + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Intersection] + # Delete cells that would be deleted by every nested rule. + # + # Note: The following fields are mutually exclusive: `intersection`, `max_num_versions`, `max_age`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] union + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Union] + # Delete cells that would be deleted by any nested rule. + # + # Note: The following fields are mutually exclusive: `union`, `max_num_versions`, `max_age`, `intersection`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class GcRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A GcRule which deletes cells matching all of the given rules. + # @!attribute [rw] rules + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] + # Only delete cells which would be deleted by every element of `rules`. + class Intersection + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A GcRule which deletes cells matching any of the given rules. + # @!attribute [rw] rules + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] + # Delete cells which would be deleted by any element of `rules`. + class Union + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Encryption information for a given resource. + # If this resource is protected with customer managed encryption, the in-use + # Cloud Key Management Service (Cloud KMS) key version is specified along with + # its status. + # @!attribute [r] encryption_type + # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo::EncryptionType] + # Output only. The type of encryption used to protect this resource. + # @!attribute [r] encryption_status + # @return [::Google::Rpc::Status] + # Output only. The status of encrypt/decrypt calls on underlying data for + # this resource. Regardless of status, the existing data is always encrypted + # at rest. + # @!attribute [r] kms_key_version + # @return [::String] + # Output only. The version of the Cloud KMS key specified in the parent + # cluster that is in use for the data underlying this table. + class EncryptionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible encryption types for a resource. + module EncryptionType + # Encryption type was not specified, though data at rest remains encrypted. + ENCRYPTION_TYPE_UNSPECIFIED = 0 + + # The data backing this resource is encrypted at rest with a key that is + # fully managed by Google. No key version or status will be populated. + # This is the default state. + GOOGLE_DEFAULT_ENCRYPTION = 1 + + # The data backing this resource is encrypted at rest with a key that is + # managed by the customer. + # The in-use version of the key and its status are populated for + # CMEK-protected tables. + # CMEK-protected backups are pinned to the key version that was in use at + # the time the backup was taken. This key version is populated but its + # status is not tracked and is reported as `UNKNOWN`. + CUSTOMER_MANAGED_ENCRYPTION = 2 + end + end + + # A snapshot of a table at a particular time. A snapshot can be used as a + # checkpoint for data restoration or a data source for a new table. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # The unique name of the snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # @!attribute [r] source_table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Output only. The source table at the time the snapshot was taken. + # @!attribute [r] data_size_bytes + # @return [::Integer] + # Output only. The size of the data in the source table at the time the + # snapshot was taken. In some cases, this value may be computed + # asynchronously via a background process and a placeholder of 0 will be used + # in the meantime. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time when the snapshot is created. + # @!attribute [rw] delete_time + # @return [::Google::Protobuf::Timestamp] + # The time when the snapshot will be deleted. The maximum amount of time a + # snapshot can stay active is 365 days. If 'ttl' is not specified, + # the default maximum of 365 days will be used. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot::State] + # Output only. The current state of the snapshot. + # @!attribute [rw] description + # @return [::String] + # Description of the snapshot. + class Snapshot + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible states of a snapshot. + module State + # The state of the snapshot could not be determined. + STATE_NOT_KNOWN = 0 + + # The snapshot has been successfully created and can serve all requests. + READY = 1 + + # The snapshot is currently being created, and may be destroyed if the + # creation process encounters an error. A snapshot may not be restored to a + # table while it is being created. + CREATING = 2 + end + end + + # A backup of a Cloud Bigtable table. + # @!attribute [rw] name + # @return [::String] + # A globally unique identifier for the backup which cannot be + # changed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/ + # backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + # The final segment of the name must be between 1 and 50 characters + # in length. + # + # The backup is stored in the cluster identified by the prefix of the backup + # name of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] source_table + # @return [::String] + # Required. Immutable. Name of the table from which this backup was created. + # This needs to be in the same instance as the backup. Values are of the form + # `projects/{project}/instances/{instance}/tables/{source_table}`. + # @!attribute [r] source_backup + # @return [::String] + # Output only. Name of the backup from which this backup was copied. If a + # backup is not created by copying a backup, this field will be empty. Values + # are of the form: + # projects//instances//clusters//backups/ + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # Required. The expiration time of the backup. + # When creating a backup or updating its `expire_time`, the value must be + # greater than the backup creation time by: + # - At least 6 hours + # - At most 90 days + # + # Once the `expire_time` has passed, Cloud Bigtable will delete the backup. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. `start_time` is the time that the backup was started + # (i.e. approximately the time the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup} + # request is received). The row data in this backup will be no older than + # this timestamp. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. `end_time` is the time that the backup was finished. The row + # data in the backup will be no newer than this timestamp. + # @!attribute [r] size_bytes + # @return [::Integer] + # Output only. Size of the backup in bytes. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State] + # Output only. The current state of the backup. + # @!attribute [r] encryption_info + # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo] + # Output only. The encryption information for the backup. + # @!attribute [rw] backup_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType] + # Indicates the backup type of the backup. + # @!attribute [rw] hot_to_standard_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the hot backup will be converted to a standard backup. + # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the + # hot backup to a standard backup. This value must be greater than the backup + # creation time by: + # - At least 24 hours + # + # This field only applies for hot backups. When creating or updating a + # standard backup, attempting to set this field will fail the request. + class Backup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the current state of the backup. + module State + # Not specified. + STATE_UNSPECIFIED = 0 + + # The pending backup is still being created. Operations on the + # backup may fail with `FAILED_PRECONDITION` in this state. + CREATING = 1 + + # The backup is complete and ready for use. + READY = 2 + end + + # The type of the backup. + module BackupType + # Not specified. + BACKUP_TYPE_UNSPECIFIED = 0 + + # The default type for Cloud Bigtable managed backups. Supported for + # backups created in both HDD and SSD instances. Requires optimization when + # restored to a table in an SSD instance. + STANDARD = 1 + + # A backup type with faster restore to SSD performance. Only supported for + # backups created in SSD instances. A new SSD table restored from a hot + # backup reaches production performance more quickly than a standard + # backup. + HOT = 2 + end + end + + # Information about a backup. + # @!attribute [r] backup + # @return [::String] + # Output only. Name of the backup. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time that the backup was started. Row data in the backup + # will be no older than this timestamp. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. This time that the backup was finished. Row data in the + # backup will be no newer than this timestamp. + # @!attribute [r] source_table + # @return [::String] + # Output only. Name of the table the backup was created from. + # @!attribute [r] source_backup + # @return [::String] + # Output only. Name of the backup from which this backup was copied. If a + # backup is not created by copying a backup, this field will be empty. Values + # are of the form: + # projects//instances//clusters//backups/ + class BackupInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Config for tiered storage. + # A valid config must have a valid TieredStorageRule. Otherwise the whole + # TieredStorageConfig must be unset. + # By default all data is stored in the SSD tier (only SSD instances can + # configure tiered storage). + # @!attribute [rw] infrequent_access + # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageRule] + # Rule to specify what data is stored in the infrequent access(IA) tier. + # The IA tier allows storing more data per node with reduced performance. + class TieredStorageConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rule to specify what data is stored in a storage tier. + # @!attribute [rw] include_if_older_than + # @return [::Google::Protobuf::Duration] + # Include cells older than the given age. + # For the infrequent access tier, this value must be at least 30 days. + class TieredStorageRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a protobuf schema. + # @!attribute [rw] proto_descriptors + # @return [::String] + # Required. Contains a protobuf-serialized + # [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + # which could include multiple proto files. + # To generate it, [install](https://grpc.io/docs/protoc-installation/) and + # run `protoc` with + # `--include_imports` and `--descriptor_set_out`. For example, to generate + # for moon/shot/app.proto, run + # ``` + # $protoc --proto_path=/app_path --proto_path=/lib_path \ + # --include_imports \ + # --descriptor_set_out=descriptors.pb \ + # moon/shot/app.proto + # ``` + # For more details, see protobuffer [self + # description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + class ProtoSchema + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A named collection of related schemas. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] proto_schema + # @return [::Google::Cloud::Bigtable::Admin::V2::ProtoSchema] + # Schema for Protobufs. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this schema bundle. + # This may be sent on update and delete requests to ensure the + # client has an up-to-date value before proceeding. The server + # returns an ABORTED error on a mismatched etag. + class SchemaBundle + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the type of the restore source. + module RestoreSourceType + # No restore associated. + RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 + + # A backup was used as the source of the restore. + BACKUP = 1 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb new file mode 100644 index 000000000000..8a598f02b9ff --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb @@ -0,0 +1,575 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # `Type` represents the type of data that is written to, read from, or stored + # in Bigtable. It is heavily based on the GoogleSQL standard to help maintain + # familiarity and consistency across products and features. + # + # For compatibility with Bigtable's existing untyped APIs, each `Type` includes + # an `Encoding` which describes how to convert to or from the underlying data. + # + # Each encoding can operate in one of two modes: + # + # - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` + # if and only if `X <= Y`. This is useful anywhere sort order is important, + # for example when encoding keys. + # - Distinct: In this mode, Bigtable guarantees that if `X != Y` then + # `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For + # example, both "\\{'foo': '1', 'bar': '2'}" and "\\{'bar': '2', 'foo': '1'}" + # are valid encodings of the same JSON value. + # + # The API clearly documents which mode is used wherever an encoding can be + # configured. Each encoding also documents which values are supported in which + # modes. For example, when encoding INT64 as a numeric STRING, negative numbers + # cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but + # `STRING("-00001") > STRING("00001")`. + # @!attribute [rw] bytes_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] + # Bytes + # + # Note: The following fields are mutually exclusive: `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] string_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String] + # String + # + # Note: The following fields are mutually exclusive: `string_type`, `bytes_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] int64_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64] + # Int64 + # + # Note: The following fields are mutually exclusive: `int64_type`, `bytes_type`, `string_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float32_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float32] + # Float32 + # + # Note: The following fields are mutually exclusive: `float32_type`, `bytes_type`, `string_type`, `int64_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float64_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float64] + # Float64 + # + # Note: The following fields are mutually exclusive: `float64_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bool] + # Bool + # + # Note: The following fields are mutually exclusive: `bool_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] timestamp_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp] + # Timestamp + # + # Note: The following fields are mutually exclusive: `timestamp_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] date_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Date] + # Date + # + # Note: The following fields are mutually exclusive: `date_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] aggregate_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate] + # Aggregate + # + # Note: The following fields are mutually exclusive: `aggregate_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] struct_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] + # Struct + # + # Note: The following fields are mutually exclusive: `struct_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] array_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Array] + # Array + # + # Note: The following fields are mutually exclusive: `array_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] map_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Map] + # Map + # + # Note: The following fields are mutually exclusive: `map_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] proto_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Proto] + # Proto + # + # Note: The following fields are mutually exclusive: `proto_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] enum_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Enum] + # Enum + # + # Note: The following fields are mutually exclusive: `enum_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Type + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Bytes + # Values of type `Bytes` are stored in `Value.bytes_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding] + # The encoding to use when converting to or from lower level types. + class Bytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] raw + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding::Raw] + # Use `Raw` encoding. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Leaves the value as-is. + # + # Sorted mode: all values are supported. + # + # Distinct mode: all values are supported. + class Raw + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # String + # Values of type `String` are stored in `Value.string_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding] + # The encoding to use when converting to or from lower level types. + class String + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] utf8_raw + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Raw] + # Deprecated: if set, converts to an empty `utf8_bytes`. + # + # Note: The following fields are mutually exclusive: `utf8_raw`, `utf8_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] utf8_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Bytes] + # Use `Utf8Bytes` encoding. + # + # Note: The following fields are mutually exclusive: `utf8_bytes`, `utf8_raw`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Deprecated: prefer the equivalent `Utf8Bytes`. + # @deprecated This message is deprecated and may be removed in the next major version update. + class Utf8Raw + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UTF-8 encoding. + # + # Sorted mode: + # - All values are supported. + # - Code point order is preserved. + # + # Distinct mode: all values are supported. + # + # Compatible with: + # + # - BigQuery `TEXT` encoding + # - HBase `Bytes.toBytes` + # - Java `String#getBytes(StandardCharsets.UTF_8)` + class Utf8Bytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # Int64 + # Values of type `Int64` are stored in `Value.int_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] + # The encoding to use when converting to or from lower level types. + class Int64 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] big_endian_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::BigEndianBytes] + # Use `BigEndianBytes` encoding. + # + # Note: The following fields are mutually exclusive: `big_endian_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ordered_code_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::OrderedCodeBytes] + # Use `OrderedCodeBytes` encoding. + # + # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `big_endian_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Encodes the value as an 8-byte big-endian two's complement value. + # + # Sorted mode: non-negative values are supported. + # + # Distinct mode: all values are supported. + # + # Compatible with: + # + # - BigQuery `BINARY` encoding + # - HBase `Bytes.toBytes` + # - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` + # @!attribute [rw] bytes_type + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] + # Deprecated: ignored if set. + class BigEndianBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Encodes the value in a variable length binary format of up to 10 bytes. + # Values that are closer to zero use fewer bytes. + # + # Sorted mode: all values are supported. + # + # Distinct mode: all values are supported. + class OrderedCodeBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # bool + # Values of type `Bool` are stored in `Value.bool_value`. + class Bool + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Float32 + # Values of type `Float32` are stored in `Value.float_value`. + class Float32 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Float64 + # Values of type `Float64` are stored in `Value.float_value`. + class Float64 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Timestamp + # Values of type `Timestamp` are stored in `Value.timestamp_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp::Encoding] + # The encoding to use when converting to or from lower level types. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] unix_micros_int64 + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] + # Encodes the number of microseconds since the Unix epoch using the + # given `Int64` encoding. Values must be microsecond-aligned. + # + # Compatible with: + # + # - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Date + # Values of type `Date` are stored in `Value.date_value`. + class Date + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A structured data value, consisting of fields which map to dynamically + # typed values. + # Values of type `Struct` are stored in `Value.array_value` where entries are + # in the same order and number as `field_types`. + # @!attribute [rw] fields + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Field>] + # The names and types of the fields in this struct. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding] + # The encoding to use when converting to or from lower level types. + class Struct + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A struct field and its type. + # @!attribute [rw] field_name + # @return [::String] + # The field name (optional). Fields without a `field_name` are considered + # anonymous and cannot be referenced by name. + # @!attribute [rw] type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of values in this field. + class Field + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rules used to convert to or from lower level types. + # @!attribute [rw] singleton + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::Singleton] + # Use `Singleton` encoding. + # + # Note: The following fields are mutually exclusive: `singleton`, `delimited_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delimited_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::DelimitedBytes] + # Use `DelimitedBytes` encoding. + # + # Note: The following fields are mutually exclusive: `delimited_bytes`, `singleton`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ordered_code_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::OrderedCodeBytes] + # User `OrderedCodeBytes` encoding. + # + # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `singleton`, `delimited_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Uses the encoding of `fields[0].type` as-is. + # Only valid if `fields.size == 1`. + class Singleton + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Fields are encoded independently and concatenated with a configurable + # `delimiter` in between. + # + # A struct with no fields defined is encoded as a single `delimiter`. + # + # Sorted mode: + # + # - Fields are encoded in sorted mode. + # - Encoded field values must not contain any bytes <= `delimiter[0]` + # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + # + # Distinct mode: + # + # - Fields are encoded in distinct mode. + # - Encoded field values must not contain `delimiter[0]`. + # @!attribute [rw] delimiter + # @return [::String] + # Byte sequence used to delimit concatenated fields. The delimiter must + # contain at least 1 character and at most 50 characters. + class DelimitedBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Fields are encoded independently and concatenated with the fixed byte + # pair \\{0x00, 0x01} in between. + # + # Any null (0x00) byte in an encoded field is replaced by the fixed byte + # pair \\{0x00, 0xFF}. + # + # Fields that encode to the empty string "" have special handling: + # + # - If *every* field encodes to "", or if the STRUCT has no fields + # defined, then the STRUCT is encoded as the fixed byte pair + # \\{0x00, 0x00}. + # - Otherwise, the STRUCT only encodes until the last non-empty field, + # omitting any trailing empty fields. Any empty fields that aren't + # omitted are replaced with the fixed byte pair \\{0x00, 0x00}. + # + # Examples: + # + # - STRUCT() -> "\00\00" + # - STRUCT("") -> "\00\00" + # - STRUCT("", "") -> "\00\00" + # - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" + # - STRUCT("A", "") -> "A" + # - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" + # - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" + # + # + # Since null bytes are always escaped, this encoding can cause size + # blowup for encodings like `Int64.BigEndianBytes` that are likely to + # produce many such bytes. + # + # Sorted mode: + # + # - Fields are encoded in sorted mode. + # - All values supported by the field encodings are allowed + # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + # + # Distinct mode: + # + # - Fields are encoded in distinct mode. + # - All values supported by the field encodings are allowed. + class OrderedCodeBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # A protobuf message type. + # Values of type `Proto` are stored in `Value.bytes_value`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # The ID of the schema bundle that this proto is defined in. + # @!attribute [rw] message_name + # @return [::String] + # The fully qualified name of the protobuf message, including package. In + # the format of "foo.bar.Message". + class Proto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A protobuf enum type. + # Values of type `Enum` are stored in `Value.int_value`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # The ID of the schema bundle that this enum is defined in. + # @!attribute [rw] enum_name + # @return [::String] + # The fully qualified name of the protobuf enum message, including package. + # In the format of "foo.bar.EnumMessage". + class Enum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # An ordered list of elements of a given type. + # Values of type `Array` are stored in `Value.array_value`. + # @!attribute [rw] element_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of the elements in the array. This must not be `Array`. + class Array + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A mapping of keys to values of a given type. + # Values of type `Map` are stored in a `Value.array_value` where each entry + # is another `Value.array_value` with two elements (the key and the value, + # in that order). + # Normally encoded Map values won't have repeated keys, however, clients are + # expected to handle the case in which they do. If the same key appears + # multiple times, the _last_ value takes precedence. + # @!attribute [rw] key_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of a map key. + # Only `Bytes`, `String`, and `Int64` are allowed as key types. + # @!attribute [rw] value_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of the values in a map. + class Map + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A value that combines incremental updates into a summarized value. + # + # Data is never directly written or read using type `Aggregate`. Writes will + # provide either the `input_type` or `state_type`, and reads will always + # return the `state_type` . + # @!attribute [rw] input_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # Type of the inputs that are accumulated by this `Aggregate`, which must + # specify a full encoding. + # Use `AddInput` mutations to accumulate new inputs. + # @!attribute [r] state_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # Output only. Type that holds the internal accumulator state for the + # `Aggregate`. This is a function of the `input_type` and `aggregator` + # chosen, and will always specify a full encoding. + # @!attribute [rw] sum + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Sum] + # Sum aggregator. + # + # Note: The following fields are mutually exclusive: `sum`, `hllpp_unique_count`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] hllpp_unique_count + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount] + # HyperLogLogPlusPlusUniqueCount aggregator. + # + # Note: The following fields are mutually exclusive: `hllpp_unique_count`, `sum`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] max + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Max] + # Max aggregator. + # + # Note: The following fields are mutually exclusive: `max`, `sum`, `hllpp_unique_count`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] min + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Min] + # Min aggregator. + # + # Note: The following fields are mutually exclusive: `min`, `sum`, `hllpp_unique_count`, `max`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Aggregate + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Computes the sum of the input values. + # Allowed input: `Int64` + # State: same as input + class Sum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes the max of the input values. + # Allowed input: `Int64` + # State: same as input + class Max + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes the min of the input values. + # Allowed input: `Int64` + # State: same as input + class Min + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes an approximate unique count over the input values. When using + # raw data as input, be careful to use a consistent encoding. Otherwise + # the same value encoded differently could count more than once, or two + # distinct values could count as identical. + # Input: Any, or omit for Raw + # State: TBD + # Special state conversions: `Int64` (the unique count estimate) + class HyperLogLogPlusPlusUniqueCount + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb new file mode 100644 index 000000000000..5445c77f8258 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb @@ -0,0 +1,87 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # Request message for `SetIamPolicy` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] policy + # @return [::Google::Iam::V1::Policy] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + class SetIamPolicyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `GetIamPolicy` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] options + # @return [::Google::Iam::V1::GetPolicyOptions] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + class GetIamPolicyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `TestIamPermissions` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] permissions + # @return [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + class TestIamPermissionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `TestIamPermissions` method. + # @!attribute [rw] permissions + # @return [::Array<::String>] + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + class TestIamPermissionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb new file mode 100644 index 000000000000..60713d995b86 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # Encapsulates settings provided to GetIamPolicy. + # @!attribute [rw] requested_policy_version + # @return [::Integer] + # Optional. The maximum policy version that will be used to format the + # policy. + # + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # + # Requests for policies with any conditional role bindings must specify + # version 3. Policies with no conditional role bindings may specify any valid + # value or leave the field unset. + # + # The policy in the response might use the policy version that you specified, + # or it might use a lower policy version. For example, if you specify version + # 3, but the policy has no conditional role bindings, the response uses + # version 1. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + class GetPolicyOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb new file mode 100644 index 000000000000..999575b797df --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb @@ -0,0 +1,426 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # + # + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members`, or principals, to a single `role`. Principals can be user + # accounts, service accounts, Google groups, and domains (such as G Suite). A + # `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. + # + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # + # **JSON example:** + # + # ``` + # { + # "bindings": [ + # { + # "role": "roles/resourcemanager.organizationAdmin", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" + # ] + # }, + # { + # "role": "roles/resourcemanager.organizationViewer", + # "members": [ + # "user:eve@example.com" + # ], + # "condition": { + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # } + # } + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 + # } + # ``` + # + # **YAML example:** + # + # ``` + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin + # - members: + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # etag: BwWWja0YfJA= + # version: 3 + # ``` + # + # For a description of IAM and its features, see the + # [IAM documentation](https://cloud.google.com/iam/docs/). + # @!attribute [rw] version + # @return [::Integer] + # Specifies the format of the policy. + # + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # @!attribute [rw] bindings + # @return [::Array<::Google::Iam::V1::Binding>] + # Associates a list of `members`, or principals, with a `role`. Optionally, + # may specify a `condition` that determines how and when the `bindings` are + # applied. Each of the `bindings` must contain at least one principal. + # + # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + # of these principals can be Google groups. Each occurrence of a principal + # counts towards these limits. For example, if the `bindings` grant 50 + # different roles to `user:alice@example.com`, and not to any other + # principal, then you can add another 1,450 principals to the `bindings` in + # the `Policy`. + # @!attribute [rw] audit_configs + # @return [::Array<::Google::Iam::V1::AuditConfig>] + # Specifies cloud audit logging configuration for this policy. + # @!attribute [rw] etag + # @return [::String] + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + class Policy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Associates `members`, or principals, with a `role`. + # @!attribute [rw] role + # @return [::String] + # Role that is assigned to the list of `members`, or principals. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # @!attribute [rw] members + # @return [::Array<::String>] + # Specifies the principals requesting access for a Google Cloud resource. + # `members` can have the following values: + # + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # + # * `user:{emailid}`: An email address that represents a specific Google + # account. For example, `alice@example.com` . + # + # + # * `serviceAccount:{emailid}`: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # + # * `group:{emailid}`: An email address that represents a Google group. + # For example, `admins@example.com`. + # + # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:{emailid}` and the recovered user + # retains the role in the binding. + # + # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:{emailid}` and the undeleted service account retains the + # role in the binding. + # + # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:{emailid}` and the + # recovered group retains the role in the binding. + # + # + # * `domain:{domain}`: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # @!attribute [rw] condition + # @return [::Google::Type::Expr] + # The condition that is associated with this binding. + # + # If the condition evaluates to `true`, then this binding applies to the + # current request. + # + # If the condition evaluates to `false`, then this binding does not apply to + # the current request. However, a different role binding might grant the same + # role to one or more of the principals in this binding. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + class Binding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # + # Example Policy with multiple AuditConfigs: + # + # { + # "audit_configs": [ + # { + # "service": "allServices", + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # }, + # { + # "log_type": "DATA_WRITE" + # }, + # { + # "log_type": "ADMIN_READ" + # } + # ] + # }, + # { + # "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ" + # }, + # { + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:aliya@example.com" + # ] + # } + # ] + # } + # ] + # } + # + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts `jose@example.com` from DATA_READ logging, and + # `aliya@example.com` from DATA_WRITE logging. + # @!attribute [rw] service + # @return [::String] + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # @!attribute [rw] audit_log_configs + # @return [::Array<::Google::Iam::V1::AuditLogConfig>] + # The configuration for logging of each type of permission. + class AuditConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Provides the configuration for logging a type of permissions. + # Example: + # + # { + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # }, + # { + # "log_type": "DATA_WRITE" + # } + # ] + # } + # + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # jose@example.com from DATA_READ logging. + # @!attribute [rw] log_type + # @return [::Google::Iam::V1::AuditLogConfig::LogType] + # The log type that this config enables. + # @!attribute [rw] exempted_members + # @return [::Array<::String>] + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of + # [Binding.members][google.iam.v1.Binding.members]. + class AuditLogConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The list of valid permission types for which logging can be configured. + # Admin writes are always logged, and are not configurable. + module LogType + # Default case. Should never be this. + LOG_TYPE_UNSPECIFIED = 0 + + # Admin reads. Example: CloudIAM getIamPolicy + ADMIN_READ = 1 + + # Data writes. Example: CloudSQL Users create + DATA_WRITE = 2 + + # Data reads. Example: CloudSQL Users list + DATA_READ = 3 + end + end + + # The difference delta between two policies. + # @!attribute [rw] binding_deltas + # @return [::Array<::Google::Iam::V1::BindingDelta>] + # The delta for Bindings between two policies. + # @!attribute [rw] audit_config_deltas + # @return [::Array<::Google::Iam::V1::AuditConfigDelta>] + # The delta for AuditConfigs between two policies. + class PolicyDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # One delta entry for Binding. Each individual change (only one member in each + # entry) to a binding will be a separate entry. + # @!attribute [rw] action + # @return [::Google::Iam::V1::BindingDelta::Action] + # The action that was performed on a Binding. + # Required + # @!attribute [rw] role + # @return [::String] + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Required + # @!attribute [rw] member + # @return [::String] + # A single identity requesting access for a Google Cloud resource. + # Follows the same format of Binding.members. + # Required + # @!attribute [rw] condition + # @return [::Google::Type::Expr] + # The condition that is associated with this binding. + class BindingDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of action performed on a Binding in a policy. + module Action + # Unspecified. + ACTION_UNSPECIFIED = 0 + + # Addition of a Binding. + ADD = 1 + + # Removal of a Binding. + REMOVE = 2 + end + end + + # One delta entry for AuditConfig. Each individual change (only one + # exempted_member in each entry) to a AuditConfig will be a separate entry. + # @!attribute [rw] action + # @return [::Google::Iam::V1::AuditConfigDelta::Action] + # The action that was performed on an audit configuration in a policy. + # Required + # @!attribute [rw] service + # @return [::String] + # Specifies a service that was configured for Cloud Audit Logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Required + # @!attribute [rw] exempted_member + # @return [::String] + # A single identity that is exempted from "data access" audit + # logging for the `service` specified above. + # Follows the same format of Binding.members. + # @!attribute [rw] log_type + # @return [::String] + # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + # enabled, and cannot be configured. + # Required + class AuditConfigDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of action performed on an audit configuration in a policy. + module Action + # Unspecified. + ACTION_UNSPECIFIED = 0 + + # Addition of an audit configuration. + ADD = 1 + + # Removal of an audit configuration. + REMOVE = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb new file mode 100644 index 000000000000..7a757f512165 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb @@ -0,0 +1,191 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Longrunning + # This resource represents a long-running operation that is the result of a + # network API call. + # @!attribute [rw] name + # @return [::String] + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/{unique_id}`. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Any] + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # @!attribute [rw] done + # @return [::Boolean] + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # @!attribute [rw] error + # @return [::Google::Rpc::Status] + # The error result of the operation in case of failure or cancellation. + # + # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] response + # @return [::Google::Protobuf::Any] + # The normal, successful response of the operation. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # + # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Operation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.GetOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource. + class GetOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.ListOperations. + # @!attribute [rw] name + # @return [::String] + # The name of the operation's parent resource. + # @!attribute [rw] filter + # @return [::String] + # The standard list filter. + # @!attribute [rw] page_size + # @return [::Integer] + # The standard list page size. + # @!attribute [rw] page_token + # @return [::String] + # The standard list page token. + # @!attribute [rw] return_partial_success + # @return [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + class ListOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for + # Operations.ListOperations. + # @!attribute [rw] operations + # @return [::Array<::Google::Longrunning::Operation>] + # A list of operations that matches the specified filter in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # The standard List next-page token. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Unreachable resources. Populated when the request sets + # `ListOperationsRequest.return_partial_success` and reads across + # collections e.g. when attempting to list all resources across all supported + # locations. + class ListOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.CancelOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be cancelled. + class CancelOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.DeleteOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be deleted. + class DeleteOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.WaitOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to wait on. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + class WaitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A message representing the message types used by a long-running operation. + # + # Example: + # + # rpc Export(ExportRequest) returns (google.longrunning.Operation) { + # option (google.longrunning.operation_info) = { + # response_type: "ExportResponse" + # metadata_type: "ExportMetadata" + # }; + # } + # @!attribute [rw] response_type + # @return [::String] + # Required. The message name of the primary return type for this + # long-running operation. + # This type will be used to deserialize the LRO's response. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + # @!attribute [rw] metadata_type + # @return [::String] + # Required. The message name of the metadata type for this long-running + # operation. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + class OperationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb new file mode 100644 index 000000000000..53e7733b6592 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # + # Example (Comparison): + # + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # + # Example (Equality): + # + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # + # Example (Logic): + # + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # + # Example (Data Manipulation): + # + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # @!attribute [rw] expression + # @return [::String] + # Textual representation of an expression in Common Expression Language + # syntax. + # @!attribute [rw] title + # @return [::String] + # Optional. Title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # @!attribute [rw] description + # @return [::String] + # Optional. Description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # @!attribute [rw] location + # @return [::String] + # Optional. String indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + class Expr + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile new file mode 100644 index 000000000000..f88d2bf31b17 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-bigtable-admin-v2", path: "../" +else + gem "google-cloud-bigtable-admin-v2" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb new file mode 100644 index 000000000000..60b0e44dae42 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile. +# +def create_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new + + # Call the create_app_profile method. + result = client.create_app_profile request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb new file mode 100644 index 000000000000..1923dfa3b593 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster. +# +def create_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new + + # Call the create_cluster method. + result = client.create_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb new file mode 100644 index 000000000000..9bfb53227c80 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance. +# +def create_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new + + # Call the create_instance method. + result = client.create_instance request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb new file mode 100644 index 000000000000..7523e3a3df7f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view. +# +def create_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new + + # Call the create_logical_view method. + result = client.create_logical_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb new file mode 100644 index 000000000000..99be7f04ca20 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view. +# +def create_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new + + # Call the create_materialized_view method. + result = client.create_materialized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb new file mode 100644 index 000000000000..be07699500ed --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile. +# +def delete_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new + + # Call the delete_app_profile method. + result = client.delete_app_profile request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb new file mode 100644 index 000000000000..ad008ded7e08 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster. +# +def delete_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new + + # Call the delete_cluster method. + result = client.delete_cluster request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb new file mode 100644 index 000000000000..f161dc0445dd --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance. +# +def delete_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new + + # Call the delete_instance method. + result = client.delete_instance request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb new file mode 100644 index 000000000000..f486e799a373 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view. +# +def delete_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new + + # Call the delete_logical_view method. + result = client.delete_logical_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb new file mode 100644 index 000000000000..1e869b43c09d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view. +# +def delete_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new + + # Call the delete_materialized_view method. + result = client.delete_materialized_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb new file mode 100644 index 000000000000..a6b51fecf7b8 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile. +# +def get_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new + + # Call the get_app_profile method. + result = client.get_app_profile request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb new file mode 100644 index 000000000000..e3a302d2fe21 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster. +# +def get_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new + + # Call the get_cluster method. + result = client.get_cluster request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb new file mode 100644 index 000000000000..69ab829b07a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_iam_policy call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb new file mode 100644 index 000000000000..ccd0595fe780 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance. +# +def get_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new + + # Call the get_instance method. + result = client.get_instance request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb new file mode 100644 index 000000000000..adfe7a736595 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view. +# +def get_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new + + # Call the get_logical_view method. + result = client.get_logical_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb new file mode 100644 index 000000000000..6233ab496c0f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view. +# +def get_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new + + # Call the get_materialized_view method. + result = client.get_materialized_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb new file mode 100644 index 000000000000..57b0097b3518 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_app_profiles call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles. +# +def list_app_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new + + # Call the list_app_profiles method. + result = client.list_app_profiles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb new file mode 100644 index 000000000000..8545983eb3a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_clusters call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters. +# +def list_clusters + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new + + # Call the list_clusters method. + result = client.list_clusters request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb new file mode 100644 index 000000000000..5090d8624697 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets. +# +def list_hot_tablets + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new + + # Call the list_hot_tablets method. + result = client.list_hot_tablets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb new file mode 100644 index 000000000000..a4038642c51f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_instances call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances. +# +def list_instances + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new + + # Call the list_instances method. + result = client.list_instances request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb new file mode 100644 index 000000000000..09e85d564f89 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_logical_views call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views. +# +def list_logical_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new + + # Call the list_logical_views method. + result = client.list_logical_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb new file mode 100644 index 000000000000..37d40ffb913e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_materialized_views call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views. +# +def list_materialized_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new + + # Call the list_materialized_views method. + result = client.list_materialized_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb new file mode 100644 index 000000000000..3923f7ae400d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster. +# +def partial_update_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new + + # Call the partial_update_cluster method. + result = client.partial_update_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb new file mode 100644 index 000000000000..1630801fd676 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the partial_update_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance. +# +def partial_update_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new + + # Call the partial_update_instance method. + result = client.partial_update_instance request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb new file mode 100644 index 000000000000..834fab5b6899 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the set_iam_policy call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb new file mode 100644 index 000000000000..1e00c002ab00 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb new file mode 100644 index 000000000000..30f88f2bf050 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile. +# +def update_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new + + # Call the update_app_profile method. + result = client.update_app_profile request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb new file mode 100644 index 000000000000..da1c506529be --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster. +# +def update_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::Cluster.new + + # Call the update_cluster method. + result = client.update_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb new file mode 100644 index 000000000000..2aeb910c78ba --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance. +# +def update_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::Instance.new + + # Call the update_instance method. + result = client.update_instance request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb new file mode 100644 index 000000000000..1cb0d166a85e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view. +# +def update_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new + + # Call the update_logical_view method. + result = client.update_logical_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb new file mode 100644 index 000000000000..da78d73ca450 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view. +# +def update_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new + + # Call the update_materialized_view method. + result = client.update_materialized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb new file mode 100644 index 000000000000..56bd26ccebc2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the check_consistency call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency. +# +def check_consistency + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new + + # Call the check_consistency method. + result = client.check_consistency request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb new file mode 100644 index 000000000000..32e9e991b2e0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the copy_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup. +# +def copy_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new + + # Call the copy_backup method. + result = client.copy_backup request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb new file mode 100644 index 000000000000..93ca1b05050a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view. +# +def create_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new + + # Call the create_authorized_view method. + result = client.create_authorized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb new file mode 100644 index 000000000000..bbd26b8f605e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup. +# +def create_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new + + # Call the create_backup method. + result = client.create_backup request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb new file mode 100644 index 000000000000..3cf630415459 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle. +# +def create_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new + + # Call the create_schema_bundle method. + result = client.create_schema_bundle request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb new file mode 100644 index 000000000000..8d98a8471082 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table. +# +def create_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new + + # Call the create_table method. + result = client.create_table request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb new file mode 100644 index 000000000000..3cf2e7283166 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot. +# +def create_table_from_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new + + # Call the create_table_from_snapshot method. + result = client.create_table_from_snapshot request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb new file mode 100644 index 000000000000..c5937706f326 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view. +# +def delete_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new + + # Call the delete_authorized_view method. + result = client.delete_authorized_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb new file mode 100644 index 000000000000..d710addca48c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup. +# +def delete_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new + + # Call the delete_backup method. + result = client.delete_backup request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb new file mode 100644 index 000000000000..3b07c8b887f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle. +# +def delete_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new + + # Call the delete_schema_bundle method. + result = client.delete_schema_bundle request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb new file mode 100644 index 000000000000..c7ab27d40147 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot. +# +def delete_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new + + # Call the delete_snapshot method. + result = client.delete_snapshot request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb new file mode 100644 index 000000000000..315ff9367627 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table. +# +def delete_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new + + # Call the delete_table method. + result = client.delete_table request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb new file mode 100644 index 000000000000..2b6cd7d2303a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the drop_row_range call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range. +# +def drop_row_range + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new + + # Call the drop_row_range method. + result = client.drop_row_range request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb new file mode 100644 index 000000000000..88734d55318b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the generate_consistency_token call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token. +# +def generate_consistency_token + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new + + # Call the generate_consistency_token method. + result = client.generate_consistency_token request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb new file mode 100644 index 000000000000..79ae8f10cc46 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view. +# +def get_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new + + # Call the get_authorized_view method. + result = client.get_authorized_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb new file mode 100644 index 000000000000..6c0f68dd6078 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup. +# +def get_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new + + # Call the get_backup method. + result = client.get_backup request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb new file mode 100644 index 000000000000..33969bfecb74 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_iam_policy call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb new file mode 100644 index 000000000000..108356d532d0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle. +# +def get_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new + + # Call the get_schema_bundle method. + result = client.get_schema_bundle request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb new file mode 100644 index 000000000000..da9903b816ee --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot. +# +def get_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new + + # Call the get_snapshot method. + result = client.get_snapshot request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb new file mode 100644 index 000000000000..de73a71a944b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table. +# +def get_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new + + # Call the get_table method. + result = client.get_table request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb new file mode 100644 index 000000000000..975edad00358 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_authorized_views call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views. +# +def list_authorized_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new + + # Call the list_authorized_views method. + result = client.list_authorized_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb new file mode 100644 index 000000000000..113b0761aba0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_backups call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups. +# +def list_backups + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new + + # Call the list_backups method. + result = client.list_backups request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb new file mode 100644 index 000000000000..03b8c6193c5a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_schema_bundles call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles. +# +def list_schema_bundles + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new + + # Call the list_schema_bundles method. + result = client.list_schema_bundles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb new file mode 100644 index 000000000000..1c34195822a7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_snapshots call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots. +# +def list_snapshots + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new + + # Call the list_snapshots method. + result = client.list_snapshots request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb new file mode 100644 index 000000000000..3c482ff03261 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_tables call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables. +# +def list_tables + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new + + # Call the list_tables method. + result = client.list_tables request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb new file mode 100644 index 000000000000..e711d7477c88 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the modify_column_families call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families. +# +def modify_column_families + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new + + # Call the modify_column_families method. + result = client.modify_column_families request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb new file mode 100644 index 000000000000..3c28d6009330 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the restore_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table. +# +def restore_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new + + # Call the restore_table method. + result = client.restore_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb new file mode 100644 index 000000000000..ff5fff58358d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the set_iam_policy call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb new file mode 100644 index 000000000000..4d171700843e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the snapshot_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table. +# +def snapshot_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new + + # Call the snapshot_table method. + result = client.snapshot_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb new file mode 100644 index 000000000000..abe2e3451d02 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the test_iam_permissions call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb new file mode 100644 index 000000000000..00c9558cd83c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the undelete_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table. +# +def undelete_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new + + # Call the undelete_table method. + result = client.undelete_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb new file mode 100644 index 000000000000..383be6ce0938 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view. +# +def update_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new + + # Call the update_authorized_view method. + result = client.update_authorized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb new file mode 100644 index 000000000000..32aa9d456b3a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup. +# +def update_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new + + # Call the update_backup method. + result = client.update_backup request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb new file mode 100644 index 000000000000..c33e873f5e7d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle. +# +def update_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new + + # Call the update_schema_bundle method. + result = client.update_schema_bundle request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb new file mode 100644 index 000000000000..d49e5c04deca --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table. +# +def update_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new + + # Call the update_table method. + result = client.update_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json new file mode 100644 index 000000000000..307c646525b1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json @@ -0,0 +1,2655 @@ +{ + "client_library": { + "name": "google-cloud-bigtable-admin-v2", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.bigtable.admin.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", + "title": "Snippet for the create_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance.", + "file": "bigtable_instance_admin/create_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", + "title": "Snippet for the get_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance.", + "file": "bigtable_instance_admin/get_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", + "title": "Snippet for the list_instances call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances.", + "file": "bigtable_instance_admin/list_instances.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_instances", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListInstances", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", + "title": "Snippet for the update_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance.", + "file": "bigtable_instance_admin/update_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", + "title": "Snippet for the partial_update_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance.", + "file": "bigtable_instance_admin/partial_update_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "partial_update_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "PartialUpdateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", + "title": "Snippet for the delete_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance.", + "file": "bigtable_instance_admin/delete_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", + "title": "Snippet for the create_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster.", + "file": "bigtable_instance_admin/create_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", + "title": "Snippet for the get_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster.", + "file": "bigtable_instance_admin/get_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", + "title": "Snippet for the list_clusters call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters.", + "file": "bigtable_instance_admin/list_clusters.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_clusters", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListClusters", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", + "title": "Snippet for the update_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster.", + "file": "bigtable_instance_admin/update_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", + "title": "Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster.", + "file": "bigtable_instance_admin/partial_update_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "partial_update_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "PartialUpdateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", + "title": "Snippet for the delete_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster.", + "file": "bigtable_instance_admin/delete_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", + "title": "Snippet for the create_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile.", + "file": "bigtable_instance_admin/create_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", + "title": "Snippet for the get_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile.", + "file": "bigtable_instance_admin/get_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", + "title": "Snippet for the list_app_profiles call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles.", + "file": "bigtable_instance_admin/list_app_profiles.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_app_profiles", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListAppProfiles", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", + "title": "Snippet for the update_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile.", + "file": "bigtable_instance_admin/update_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", + "title": "Snippet for the delete_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile.", + "file": "bigtable_instance_admin/delete_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy.", + "file": "bigtable_instance_admin/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy.", + "file": "bigtable_instance_admin/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions.", + "file": "bigtable_instance_admin/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", + "title": "Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets.", + "file": "bigtable_instance_admin/list_hot_tablets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_hot_tablets", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListHotTablets", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync", + "title": "Snippet for the create_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view.", + "file": "bigtable_instance_admin/create_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync", + "title": "Snippet for the get_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view.", + "file": "bigtable_instance_admin/get_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::LogicalView", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync", + "title": "Snippet for the list_logical_views call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views.", + "file": "bigtable_instance_admin/list_logical_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_logical_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListLogicalViews", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync", + "title": "Snippet for the update_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view.", + "file": "bigtable_instance_admin/update_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync", + "title": "Snippet for the delete_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view.", + "file": "bigtable_instance_admin/delete_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync", + "title": "Snippet for the create_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view.", + "file": "bigtable_instance_admin/create_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync", + "title": "Snippet for the get_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view.", + "file": "bigtable_instance_admin/get_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::MaterializedView", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync", + "title": "Snippet for the list_materialized_views call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views.", + "file": "bigtable_instance_admin/list_materialized_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_materialized_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListMaterializedViews", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync", + "title": "Snippet for the update_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view.", + "file": "bigtable_instance_admin/update_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync", + "title": "Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view.", + "file": "bigtable_instance_admin/delete_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", + "title": "Snippet for the create_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table.", + "file": "bigtable_table_admin/create_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", + "title": "Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot.", + "file": "bigtable_table_admin/create_table_from_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_table_from_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateTableFromSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", + "title": "Snippet for the list_tables call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables.", + "file": "bigtable_table_admin/list_tables.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_tables", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListTables", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", + "title": "Snippet for the get_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table.", + "file": "bigtable_table_admin/get_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", + "title": "Snippet for the update_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table.", + "file": "bigtable_table_admin/update_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", + "title": "Snippet for the delete_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table.", + "file": "bigtable_table_admin/delete_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", + "title": "Snippet for the undelete_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table.", + "file": "bigtable_table_admin/undelete_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "undelete_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UndeleteTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", + "title": "Snippet for the create_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view.", + "file": "bigtable_table_admin/create_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", + "title": "Snippet for the list_authorized_views call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views.", + "file": "bigtable_table_admin/list_authorized_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_authorized_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListAuthorizedViews", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", + "title": "Snippet for the get_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view.", + "file": "bigtable_table_admin/get_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AuthorizedView", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", + "title": "Snippet for the update_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view.", + "file": "bigtable_table_admin/update_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", + "title": "Snippet for the delete_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view.", + "file": "bigtable_table_admin/delete_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", + "title": "Snippet for the modify_column_families call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families.", + "file": "bigtable_table_admin/modify_column_families.rb", + "language": "RUBY", + "client_method": { + "short_name": "modify_column_families", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ModifyColumnFamilies", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", + "title": "Snippet for the drop_row_range call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range.", + "file": "bigtable_table_admin/drop_row_range.rb", + "language": "RUBY", + "client_method": { + "short_name": "drop_row_range", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DropRowRange", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", + "title": "Snippet for the generate_consistency_token call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token.", + "file": "bigtable_table_admin/generate_consistency_token.rb", + "language": "RUBY", + "client_method": { + "short_name": "generate_consistency_token", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GenerateConsistencyToken", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", + "title": "Snippet for the check_consistency call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency.", + "file": "bigtable_table_admin/check_consistency.rb", + "language": "RUBY", + "client_method": { + "short_name": "check_consistency", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CheckConsistency", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", + "title": "Snippet for the snapshot_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table.", + "file": "bigtable_table_admin/snapshot_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "snapshot_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "SnapshotTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", + "title": "Snippet for the get_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot.", + "file": "bigtable_table_admin/get_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Snapshot", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", + "title": "Snippet for the list_snapshots call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots.", + "file": "bigtable_table_admin/list_snapshots.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_snapshots", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListSnapshots", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", + "title": "Snippet for the delete_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot.", + "file": "bigtable_table_admin/delete_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", + "title": "Snippet for the create_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup.", + "file": "bigtable_table_admin/create_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", + "title": "Snippet for the get_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup.", + "file": "bigtable_table_admin/get_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", + "title": "Snippet for the update_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup.", + "file": "bigtable_table_admin/update_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", + "title": "Snippet for the delete_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup.", + "file": "bigtable_table_admin/delete_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", + "title": "Snippet for the list_backups call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups.", + "file": "bigtable_table_admin/list_backups.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_backups", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListBackups", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", + "title": "Snippet for the restore_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table.", + "file": "bigtable_table_admin/restore_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "restore_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "RestoreTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", + "title": "Snippet for the copy_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup.", + "file": "bigtable_table_admin/copy_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "copy_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CopyBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy.", + "file": "bigtable_table_admin/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy.", + "file": "bigtable_table_admin/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions.", + "file": "bigtable_table_admin/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync", + "title": "Snippet for the create_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle.", + "file": "bigtable_table_admin/create_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync", + "title": "Snippet for the update_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle.", + "file": "bigtable_table_admin/update_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync", + "title": "Snippet for the get_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle.", + "file": "bigtable_table_admin/get_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::SchemaBundle", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync", + "title": "Snippet for the list_schema_bundles call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles.", + "file": "bigtable_table_admin/list_schema_bundles.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_schema_bundles", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListSchemaBundles", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync", + "title": "Snippet for the delete_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle.", + "file": "bigtable_table_admin/delete_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb new file mode 100644 index 000000000000..d7820c4ab5a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" +require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb new file mode 100644 index 000000000000..2454f9a7005c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb @@ -0,0 +1,139 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_app_profile_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.app_profile_path project: "value0", instance: "value1", app_profile: "value2" + assert_equal "projects/value0/instances/value1/appProfiles/value2", path + end + end + + def test_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" + assert_equal "projects/value0/instances/value1/clusters/value2", path + end + end + + def test_crypto_key_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path + end + end + + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", instance: "value1" + assert_equal "projects/value0/instances/value1", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_logical_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.logical_view_path project: "value0", instance: "value1", logical_view: "value2" + assert_equal "projects/value0/instances/value1/logicalViews/value2", path + end + end + + def test_materialized_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.materialized_view_path project: "value0", instance: "value1", materialized_view: "value2" + assert_equal "projects/value0/instances/value1/materializedViews/value2", path + end + end + + def test_project_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.project_path project: "value0" + assert_equal "projects/value0", path + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb new file mode 100644 index 000000000000..9ff63d5bec0c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb @@ -0,0 +1,2093 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_instance + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + instance_id = "hello world" + instance = {} + clusters = {} + + create_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["instance_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] + assert_equal({}, request["clusters"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_instance parent: parent, instance_id: instance_id, instance: instance, clusters: clusters do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_instance ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_instance(::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_instance_client_stub.call_rpc_count + end + end + + def test_get_instance + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_instance({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_instance name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_instance ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_instance({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_instance(::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_instance_client_stub.call_rpc_count + end + end + + def test_list_instances + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_token = "hello world" + + list_instances_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_instances, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_instances_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_instances({ parent: parent, page_token: page_token }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_instances parent: parent, page_token: page_token do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_instances ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_instances({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_instances(::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_instances_client_stub.call_rpc_count + end + end + + def test_update_instance + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + display_name = "hello world" + state = :STATE_NOT_KNOWN + type = :TYPE_UNSPECIFIED + labels = {} + create_time = {} + satisfies_pzs = true + satisfies_pzi = true + tags = {} + + update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Instance, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["display_name"] + assert_equal :STATE_NOT_KNOWN, request["state"] + assert_equal :TYPE_UNSPECIFIED, request["type"] + assert_equal({}, request["labels"].to_h) + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] + assert_equal true, request["satisfies_pzs"] + assert request.has_satisfies_pzs? + assert_equal true, request["satisfies_pzi"] + assert request.has_satisfies_pzi? + assert_equal({}, request["tags"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_instance name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_instance_client_stub.call_rpc_count + end + end + + def test_partial_update_instance + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + instance = {} + update_mask = {} + + partial_update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :partial_update_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, partial_update_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.partial_update_instance({ instance: instance, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.partial_update_instance instance: instance, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.partial_update_instance ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.partial_update_instance({ instance: instance, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.partial_update_instance(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, partial_update_instance_client_stub.call_rpc_count + end + end + + def test_delete_instance + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_instance({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_instance name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_instance ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_instance({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_instance(::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_instance_client_stub.call_rpc_count + end + end + + def test_create_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + cluster_id = "hello world" + cluster = {} + + create_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["cluster_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_cluster parent: parent, cluster_id: cluster_id, cluster: cluster do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_cluster ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_cluster(::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_cluster_client_stub.call_rpc_count + end + end + + def test_get_cluster + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Cluster.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_cluster ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_cluster(::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_cluster_client_stub.call_rpc_count + end + end + + def test_list_clusters + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_token = "hello world" + + list_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_clusters, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_clusters_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_clusters({ parent: parent, page_token: page_token }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_clusters parent: parent, page_token: page_token do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_clusters ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_clusters({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_clusters(::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_clusters_client_stub.call_rpc_count + end + end + + def test_update_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + location = "hello world" + state = :STATE_NOT_KNOWN + serve_nodes = 42 + node_scaling_factor = :NODE_SCALING_FACTOR_UNSPECIFIED + cluster_config = {} + default_storage_type = :STORAGE_TYPE_UNSPECIFIED + encryption_config = {} + + update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Cluster, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["location"] + assert_equal :STATE_NOT_KNOWN, request["state"] + assert_equal 42, request["serve_nodes"] + assert_equal :NODE_SCALING_FACTOR_UNSPECIFIED, request["node_scaling_factor"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig), request["cluster_config"] + assert_equal :cluster_config, request.config + assert_equal :STORAGE_TYPE_UNSPECIFIED, request["default_storage_type"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig), request["encryption_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_cluster name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_cluster ::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_cluster(::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_cluster_client_stub.call_rpc_count + end + end + + def test_partial_update_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + cluster = {} + update_mask = {} + + partial_update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :partial_update_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, partial_update_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.partial_update_cluster cluster: cluster, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.partial_update_cluster ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.partial_update_cluster(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, partial_update_cluster_client_stub.call_rpc_count + end + end + + def test_delete_cluster + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_cluster ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_cluster(::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_cluster_client_stub.call_rpc_count + end + end + + def test_create_app_profile + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + app_profile_id = "hello world" + app_profile = {} + ignore_warnings = true + + create_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["app_profile_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_app_profile parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_app_profile ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_app_profile(::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_app_profile_client_stub.call_rpc_count + end + end + + def test_get_app_profile + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_app_profile({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_app_profile name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_app_profile ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_app_profile({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_app_profile(::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_app_profile_client_stub.call_rpc_count + end + end + + def test_list_app_profiles + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_app_profiles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_app_profiles, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_app_profiles_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_app_profiles parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_app_profiles ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_app_profiles(::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_app_profiles_client_stub.call_rpc_count + end + end + + def test_update_app_profile + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + app_profile = {} + update_mask = {} + ignore_warnings = true + + update_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_app_profile app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_app_profile ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_app_profile(::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_app_profile_client_stub.call_rpc_count + end + end + + def test_delete_app_profile + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + ignore_warnings = true + + delete_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_app_profile name: name, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_app_profile ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_app_profile(::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_app_profile_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_list_hot_tablets + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + start_time = {} + end_time = {} + page_size = 42 + page_token = "hello world" + + list_hot_tablets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_hot_tablets, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_hot_tablets_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_hot_tablets parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_hot_tablets ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_hot_tablets(::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_hot_tablets_client_stub.call_rpc_count + end + end + + def test_create_logical_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + logical_view_id = "hello world" + logical_view = {} + + create_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["logical_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_logical_view parent: parent, logical_view_id: logical_view_id, logical_view: logical_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_logical_view ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_logical_view(::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_logical_view_client_stub.call_rpc_count + end + end + + def test_get_logical_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::LogicalView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_logical_view({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_logical_view name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_logical_view ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_logical_view({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_logical_view(::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_logical_view_client_stub.call_rpc_count + end + end + + def test_list_logical_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_logical_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_logical_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_logical_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_logical_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_logical_views ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_logical_views(::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_logical_views_client_stub.call_rpc_count + end + end + + def test_update_logical_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + logical_view = {} + update_mask = {} + + update_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_logical_view logical_view: logical_view, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_logical_view ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_logical_view(::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_logical_view_client_stub.call_rpc_count + end + end + + def test_delete_logical_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_logical_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_logical_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_logical_view ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_logical_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_logical_view(::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_logical_view_client_stub.call_rpc_count + end + end + + def test_create_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + materialized_view_id = "hello world" + materialized_view = {} + + create_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["materialized_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_materialized_view parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_materialized_view ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_materialized_view(::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_materialized_view_client_stub.call_rpc_count + end + end + + def test_get_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::MaterializedView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_materialized_view({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_materialized_view name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_materialized_view ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_materialized_view({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_materialized_view(::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_materialized_view_client_stub.call_rpc_count + end + end + + def test_list_materialized_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_materialized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_materialized_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_materialized_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_materialized_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_materialized_views ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_materialized_views(::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_materialized_views_client_stub.call_rpc_count + end + end + + def test_update_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + materialized_view = {} + update_mask = {} + + update_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_materialized_view materialized_view: materialized_view, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_materialized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_materialized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_materialized_view_client_stub.call_rpc_count + end + end + + def test_delete_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_materialized_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_materialized_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_materialized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_materialized_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_materialized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_materialized_view_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb new file mode 100644 index 000000000000..b4858530f9ca --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_table_admin_pb" +require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb new file mode 100644 index 000000000000..f660e3430c6e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb @@ -0,0 +1,151 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_authorized_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.authorized_view_path project: "value0", instance: "value1", table: "value2", authorized_view: "value3" + assert_equal "projects/value0/instances/value1/tables/value2/authorizedViews/value3", path + end + end + + def test_backup_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.backup_path project: "value0", instance: "value1", cluster: "value2", backup: "value3" + assert_equal "projects/value0/instances/value1/clusters/value2/backups/value3", path + end + end + + def test_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" + assert_equal "projects/value0/instances/value1/clusters/value2", path + end + end + + def test_crypto_key_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path + end + end + + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", instance: "value1" + assert_equal "projects/value0/instances/value1", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_schema_bundle_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.schema_bundle_path project: "value0", instance: "value1", table: "value2", schema_bundle: "value3" + assert_equal "projects/value0/instances/value1/tables/value2/schemaBundles/value3", path + end + end + + def test_snapshot_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.snapshot_path project: "value0", instance: "value1", cluster: "value2", snapshot: "value3" + assert_equal "projects/value0/instances/value1/clusters/value2/snapshots/value3", path + end + end + + def test_table_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.table_path project: "value0", instance: "value1", table: "value2" + assert_equal "projects/value0/instances/value1/tables/value2", path + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb new file mode 100644 index 000000000000..44ea7cd17fc5 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb @@ -0,0 +1,2339 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_table_admin_pb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_table + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + table = {} + initial_splits = [{}] + + create_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, request["initial_splits"].first + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_table parent: parent, table_id: table_id, table: table, initial_splits: initial_splits do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_table ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_table(::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_table_client_stub.call_rpc_count + end + end + + def test_create_table_from_snapshot + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + source_snapshot = "hello world" + + create_table_from_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_table_from_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal "hello world", request["source_snapshot"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_table_from_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_table_from_snapshot parent: parent, table_id: table_id, source_snapshot: source_snapshot do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_table_from_snapshot ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_table_from_snapshot(::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_table_from_snapshot_client_stub.call_rpc_count + end + end + + def test_list_tables + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + view = :VIEW_UNSPECIFIED + page_size = 42 + page_token = "hello world" + + list_tables_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_tables, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, request + assert_equal "hello world", request["parent"] + assert_equal :VIEW_UNSPECIFIED, request["view"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_tables_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_tables parent: parent, view: view, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_tables ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_tables(::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_tables_client_stub.call_rpc_count + end + end + + def test_get_table + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + view = :VIEW_UNSPECIFIED + + get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, request + assert_equal "hello world", request["name"] + assert_equal :VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_table({ name: name, view: view }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_table name: name, view: view do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_table ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_table({ name: name, view: view }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_table(::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_table_client_stub.call_rpc_count + end + end + + def test_update_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + table = {} + update_mask = {} + ignore_warnings = true + + update_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_table table: table, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_table ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_table(::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_table_client_stub.call_rpc_count + end + end + + def test_delete_table + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_table({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_table name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_table ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_table({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_table(::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_table_client_stub.call_rpc_count + end + end + + def test_undelete_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + undelete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :undelete_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, undelete_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.undelete_table({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.undelete_table name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.undelete_table ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.undelete_table({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.undelete_table(::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, undelete_table_client_stub.call_rpc_count + end + end + + def test_create_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + authorized_view_id = "hello world" + authorized_view = {} + + create_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["authorized_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_authorized_view parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_authorized_view ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_authorized_view(::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_authorized_view_client_stub.call_rpc_count + end + end + + def test_list_authorized_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + view = :RESPONSE_VIEW_UNSPECIFIED + + list_authorized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_authorized_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_authorized_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_authorized_views parent: parent, page_size: page_size, page_token: page_token, view: view do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_authorized_views ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_authorized_views(::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_authorized_views_client_stub.call_rpc_count + end + end + + def test_get_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + view = :RESPONSE_VIEW_UNSPECIFIED + + get_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_authorized_view({ name: name, view: view }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_authorized_view name: name, view: view do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_authorized_view ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_authorized_view({ name: name, view: view }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_authorized_view(::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_authorized_view_client_stub.call_rpc_count + end + end + + def test_update_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + authorized_view = {} + update_mask = {} + ignore_warnings = true + + update_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_authorized_view authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_authorized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_authorized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_authorized_view_client_stub.call_rpc_count + end + end + + def test_delete_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_authorized_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_authorized_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_authorized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_authorized_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_authorized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_authorized_view_client_stub.call_rpc_count + end + end + + def test_modify_column_families + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + modifications = [{}] + ignore_warnings = true + + modify_column_families_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :modify_column_families, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, request + assert_equal "hello world", request["name"] + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, request["modifications"].first + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, modify_column_families_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.modify_column_families name: name, modifications: modifications, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.modify_column_families ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.modify_column_families(::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, modify_column_families_client_stub.call_rpc_count + end + end + + def test_drop_row_range + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + row_key_prefix = "hello world" + + drop_row_range_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :drop_row_range, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["row_key_prefix"] + assert_equal :row_key_prefix, request.target + refute_nil options + end + + Gapic::ServiceStub.stub :new, drop_row_range_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.drop_row_range name: name, row_key_prefix: row_key_prefix do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.drop_row_range ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.drop_row_range(::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, drop_row_range_client_stub.call_rpc_count + end + end + + def test_generate_consistency_token + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + generate_consistency_token_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :generate_consistency_token, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, generate_consistency_token_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.generate_consistency_token({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.generate_consistency_token name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.generate_consistency_token ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.generate_consistency_token({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.generate_consistency_token(::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, generate_consistency_token_client_stub.call_rpc_count + end + end + + def test_check_consistency + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + consistency_token = "hello world" + standard_read_remote_writes = {} + + check_consistency_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :check_consistency, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["consistency_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites), request["standard_read_remote_writes"] + assert_equal :standard_read_remote_writes, request.mode + refute_nil options + end + + Gapic::ServiceStub.stub :new, check_consistency_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.check_consistency name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.check_consistency ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.check_consistency(::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, check_consistency_client_stub.call_rpc_count + end + end + + def test_snapshot_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + cluster = "hello world" + snapshot_id = "hello world" + ttl = {} + description = "hello world" + + snapshot_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :snapshot_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["cluster"] + assert_equal "hello world", request["snapshot_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] + assert_equal "hello world", request["description"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, snapshot_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.snapshot_table name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.snapshot_table ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.snapshot_table(::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, snapshot_table_client_stub.call_rpc_count + end + end + + def test_get_snapshot + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Snapshot.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_snapshot({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_snapshot name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_snapshot ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_snapshot({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_snapshot(::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_snapshot_client_stub.call_rpc_count + end + end + + def test_list_snapshots + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_snapshots, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_snapshots_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_snapshots parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_snapshots ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_snapshots(::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_snapshots_client_stub.call_rpc_count + end + end + + def test_delete_snapshot + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_snapshot({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_snapshot name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_snapshot ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_snapshot({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_snapshot(::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_snapshot_client_stub.call_rpc_count + end + end + + def test_create_backup + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + backup_id = "hello world" + backup = {} + + create_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["backup_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_backup parent: parent, backup_id: backup_id, backup: backup do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_backup ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_backup(::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_backup_client_stub.call_rpc_count + end + end + + def test_get_backup + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_backup({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_backup name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_backup ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_backup({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_backup(::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_backup_client_stub.call_rpc_count + end + end + + def test_update_backup + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + backup = {} + update_mask = {} + + update_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_backup({ backup: backup, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_backup backup: backup, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_backup ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_backup({ backup: backup, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_backup(::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_backup_client_stub.call_rpc_count + end + end + + def test_delete_backup + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_backup({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_backup name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_backup ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_backup({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_backup(::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_backup_client_stub.call_rpc_count + end + end + + def test_list_backups + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + list_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_backups, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_backups_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_backups parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_backups ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_backups(::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_backups_client_stub.call_rpc_count + end + end + + def test_restore_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + backup = "hello world" + + restore_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :restore_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal "hello world", request["backup"] + assert_equal :backup, request.source + refute_nil options + end + + Gapic::ServiceStub.stub :new, restore_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.restore_table({ parent: parent, table_id: table_id, backup: backup }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.restore_table parent: parent, table_id: table_id, backup: backup do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.restore_table ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.restore_table({ parent: parent, table_id: table_id, backup: backup }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.restore_table(::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, restore_table_client_stub.call_rpc_count + end + end + + def test_copy_backup + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + backup_id = "hello world" + source_backup = "hello world" + expire_time = {} + + copy_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :copy_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["backup_id"] + assert_equal "hello world", request["source_backup"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["expire_time"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, copy_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.copy_backup parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.copy_backup ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.copy_backup(::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, copy_backup_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_create_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + schema_bundle_id = "hello world" + schema_bundle = {} + + create_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["schema_bundle_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_schema_bundle parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_schema_bundle_client_stub.call_rpc_count + end + end + + def test_update_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + schema_bundle = {} + update_mask = {} + ignore_warnings = true + + update_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_schema_bundle schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_schema_bundle_client_stub.call_rpc_count + end + end + + def test_get_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_schema_bundle({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_schema_bundle name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_schema_bundle({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_schema_bundle_client_stub.call_rpc_count + end + end + + def test_list_schema_bundles + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_schema_bundles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_schema_bundles, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_schema_bundles_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_schema_bundles parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_schema_bundles ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_schema_bundles(::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_schema_bundles_client_stub.call_rpc_count + end + end + + def test_delete_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_schema_bundle({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_schema_bundle name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_schema_bundle({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_schema_bundle_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From e832d415f0169971f3aa0f0347a49e9c8344c58b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 23 Mar 2026 22:08:56 +0000 Subject: [PATCH 2/8] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../lib/google/bigtable/admin/v2/table_pb.rb | 2 +- .../admin/v2/bigtable_table_admin/paths.rb | 17 + .../google/bigtable/admin/v2/table.rb | 15 +- .../v2/bigtable_table_admin_paths_test.rb | 12 + .../google-cloud-bigtable-admin-v2/.gitignore | 22 - .../.repo-metadata.json | 18 - .../.rubocop.yml | 33 - .../google-cloud-bigtable-admin-v2/.toys.rb | 28 - .../google-cloud-bigtable-admin-v2/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../CHANGELOG.md | 2 - .../google-cloud-bigtable-admin-v2/Gemfile | 14 - .../google-cloud-bigtable-admin-v2/LICENSE.md | 201 - .../google-cloud-bigtable-admin-v2/README.md | 154 - .../google-cloud-bigtable-admin-v2/Rakefile | 169 - .../gapic_metadata.json | 357 -- .../google-cloud-bigtable-admin-v2.gemspec | 29 - .../lib/google-cloud-bigtable-admin-v2.rb | 21 - .../admin/v2/bigtable_instance_admin_pb.rb | 78 - .../v2/bigtable_instance_admin_services_pb.rb | 142 - .../admin/v2/bigtable_table_admin_pb.rb | 91 - .../v2/bigtable_table_admin_services_pb.rb | 182 - .../lib/google/bigtable/admin/v2/common_pb.rb | 26 - .../google/bigtable/admin/v2/instance_pb.rb | 49 - .../lib/google/bigtable/admin/v2/table_pb.rb | 58 - .../lib/google/bigtable/admin/v2/types_pb.rb | 57 - .../lib/google/cloud/bigtable/admin/v2.rb | 43 - .../admin/v2/bigtable_instance_admin.rb | 54 - .../v2/bigtable_instance_admin/client.rb | 3710 -------------- .../v2/bigtable_instance_admin/credentials.rb | 59 - .../v2/bigtable_instance_admin/operations.rb | 843 ---- .../admin/v2/bigtable_instance_admin/paths.rb | 180 - .../bigtable/admin/v2/bigtable_table_admin.rb | 56 - .../admin/v2/bigtable_table_admin/client.rb | 4266 ----------------- .../v2/bigtable_table_admin/credentials.rb | 58 - .../v2/bigtable_table_admin/operations.rb | 843 ---- .../admin/v2/bigtable_table_admin/paths.rb | 214 - .../google/cloud/bigtable/admin/v2/version.rb | 30 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 473 -- .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../admin/v2/bigtable_instance_admin.rb | 767 --- .../bigtable/admin/v2/bigtable_table_admin.rb | 1167 ----- .../google/bigtable/admin/v2/common.rb | 58 - .../google/bigtable/admin/v2/instance.rb | 519 -- .../google/bigtable/admin/v2/table.rb | 741 --- .../google/bigtable/admin/v2/types.rb | 575 --- .../proto_docs/google/iam/v1/iam_policy.rb | 87 - .../proto_docs/google/iam/v1/options.rb | 50 - .../proto_docs/google/iam/v1/policy.rb | 426 -- .../google/longrunning/operations.rb | 191 - .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/rpc/status.rb | 48 - .../proto_docs/google/type/expr.rb | 75 - .../snippets/Gemfile | 32 - .../create_app_profile.rb | 47 - .../bigtable_instance_admin/create_cluster.rb | 54 - .../create_instance.rb | 54 - .../create_logical_view.rb | 54 - .../create_materialized_view.rb | 54 - .../delete_app_profile.rb | 47 - .../bigtable_instance_admin/delete_cluster.rb | 47 - .../delete_instance.rb | 47 - .../delete_logical_view.rb | 47 - .../delete_materialized_view.rb | 47 - .../get_app_profile.rb | 47 - .../bigtable_instance_admin/get_cluster.rb | 47 - .../bigtable_instance_admin/get_iam_policy.rb | 47 - .../bigtable_instance_admin/get_instance.rb | 47 - .../get_logical_view.rb | 47 - .../get_materialized_view.rb | 47 - .../list_app_profiles.rb | 51 - .../bigtable_instance_admin/list_clusters.rb | 47 - .../list_hot_tablets.rb | 51 - .../bigtable_instance_admin/list_instances.rb | 47 - .../list_logical_views.rb | 51 - .../list_materialized_views.rb | 51 - .../partial_update_cluster.rb | 54 - .../partial_update_instance.rb | 54 - .../bigtable_instance_admin/set_iam_policy.rb | 47 - .../test_iam_permissions.rb | 47 - .../update_app_profile.rb | 54 - .../bigtable_instance_admin/update_cluster.rb | 54 - .../update_instance.rb | 47 - .../update_logical_view.rb | 54 - .../update_materialized_view.rb | 54 - .../bigtable_table_admin/check_consistency.rb | 47 - .../bigtable_table_admin/copy_backup.rb | 54 - .../create_authorized_view.rb | 54 - .../bigtable_table_admin/create_backup.rb | 54 - .../create_schema_bundle.rb | 54 - .../bigtable_table_admin/create_table.rb | 47 - .../create_table_from_snapshot.rb | 54 - .../delete_authorized_view.rb | 47 - .../bigtable_table_admin/delete_backup.rb | 47 - .../delete_schema_bundle.rb | 47 - .../bigtable_table_admin/delete_snapshot.rb | 47 - .../bigtable_table_admin/delete_table.rb | 47 - .../bigtable_table_admin/drop_row_range.rb | 47 - .../generate_consistency_token.rb | 47 - .../get_authorized_view.rb | 47 - .../bigtable_table_admin/get_backup.rb | 47 - .../bigtable_table_admin/get_iam_policy.rb | 47 - .../bigtable_table_admin/get_schema_bundle.rb | 47 - .../bigtable_table_admin/get_snapshot.rb | 47 - .../bigtable_table_admin/get_table.rb | 47 - .../list_authorized_views.rb | 51 - .../bigtable_table_admin/list_backups.rb | 51 - .../list_schema_bundles.rb | 51 - .../bigtable_table_admin/list_snapshots.rb | 51 - .../bigtable_table_admin/list_tables.rb | 51 - .../modify_column_families.rb | 47 - .../bigtable_table_admin/restore_table.rb | 54 - .../bigtable_table_admin/set_iam_policy.rb | 47 - .../bigtable_table_admin/snapshot_table.rb | 54 - .../test_iam_permissions.rb | 47 - .../bigtable_table_admin/undelete_table.rb | 54 - .../update_authorized_view.rb | 54 - .../bigtable_table_admin/update_backup.rb | 47 - .../update_schema_bundle.rb | 54 - .../bigtable_table_admin/update_table.rb | 54 - ...pet_metadata_google.bigtable.admin.v2.json | 2655 ---------- ...bigtable_instance_admin_operations_test.rb | 400 -- .../v2/bigtable_instance_admin_paths_test.rb | 139 - .../admin/v2/bigtable_instance_admin_test.rb | 2093 -------- .../bigtable_table_admin_operations_test.rb | 400 -- .../v2/bigtable_table_admin_paths_test.rb | 151 - .../admin/v2/bigtable_table_admin_test.rb | 2339 --------- .../test/helper.rb | 26 - 135 files changed, 41 insertions(+), 29943 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/README.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/common_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb diff --git a/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb index bc675a17a143..4b069137666b 100644 --- a/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb +++ b/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb @@ -12,7 +12,7 @@ require 'google/rpc/status_pb' -descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xe3\x0c\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\x84\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12\x31\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" +descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb index c0b16ac08efd..0326a99f8ba1 100644 --- a/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb +++ b/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb @@ -126,6 +126,23 @@ def instance_path project:, instance: "projects/#{project}/instances/#{instance}" end + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + ## # Create a fully-qualified SchemaBundle resource string. # diff --git a/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb index b226bb9fc949..b1b656a9dfa6 100644 --- a/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb +++ b/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb @@ -214,12 +214,19 @@ module ReplicationState # Defines an automated backup policy for a table # @!attribute [rw] retention_period # @return [::Google::Protobuf::Duration] - # Required. How long the automated backups should be retained. The only - # supported value at this time is 3 days. + # Required. How long the automated backups should be retained. Values must + # be at least 3 days and at most 90 days. # @!attribute [rw] frequency # @return [::Google::Protobuf::Duration] - # Required. How frequently automated backups should occur. The only - # supported value at this time is 24 hours. + # How frequently automated backups should occur. The only supported value + # at this time is 24 hours. An undefined frequency is treated as 24 hours. + # @!attribute [rw] locations + # @return [::Array<::String>] + # Optional. A list of Cloud Bigtable zones where automated backups are + # allowed to be created. If empty, automated backups will be created in all + # zones of the instance. Locations are in the format + # `projects/{project}/locations/{zone}`. + # This field can only set for tables in Enterprise Plus instances. class AutomatedBackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb index 879ec510fde8..b13bfa6d13a8 100644 --- a/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb +++ b/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb @@ -101,6 +101,18 @@ def test_instance_path end end + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + def test_schema_bundle_path grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure ::Gapic::ServiceStub.stub :new, DummyStub.new do diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json deleted file mode 100644 index b1afcd60adc1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "api_id": "bigtableadmin.googleapis.com", - "api_shortname": "bigtableadmin", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest", - "distribution_name": "google-cloud-bigtable-admin-v2", - "is_cloud": true, - "language": "ruby", - "name": "bigtableadmin", - "name_pretty": "Cloud Bigtable Admin V2 API", - "product_documentation": "https://cloud.google.com/bigtable", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details.", - "ruby-cloud-env-prefix": "BIGTABLE", - "ruby-cloud-product-url": "https://cloud.google.com/bigtable", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml deleted file mode 100644 index 8b307e35af07..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-bigtable-admin-v2.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-bigtable-admin-v2.rb" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts deleted file mode 100644 index 73aed5753bd5..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Cloud Bigtable Admin V2 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md deleted file mode 100644 index 1bb27d1cc834..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-bigtable-admin-v2 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-bigtable-admin-v2 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/bigtable/admin/v2" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/bigtable/admin/v2" - -::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-bigtable-admin-v2 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/bigtable/admin/v2" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md deleted file mode 100644 index 7fe6da059f1e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Cloud Bigtable Admin V2 API - -Administer your Cloud Bigtable tables and instances. - -Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Cloud Bigtable Admin V2 API. Most users should consider using -the main client gem, -[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-bigtable-admin-v2 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/bigtable/admin/v2" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -request = ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new # (request fields as keyword arguments...) -response = client.create_instance request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/bigtable) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/bigtable/admin/v2" -require "logger" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-bigtable`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-bigtable-admin-v2`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-bigtable`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-bigtable-admin-v2`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile deleted file mode 100644 index 485278a34b9d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-bigtable-admin-v2 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["BIGTABLE_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["BIGTABLE_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["BIGTABLE_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or BIGTABLE_TEST_PROJECT=test123 BIGTABLE_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" - ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["BIGTABLE_PROJECT"] = project - ENV["BIGTABLE_TEST_PROJECT"] = project - ENV["BIGTABLE_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-bigtable-admin-v2 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-bigtable-admin-v2 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-bigtable-admin-v2" - header "google-cloud-bigtable-admin-v2 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-bigtable-admin-v2 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-bigtable-admin-v2 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-bigtable-admin-v2 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-bigtable-admin-v2 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json deleted file mode 100644 index 2370ce3ced54..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.bigtable.admin.v2", - "libraryPackage": "::Google::Cloud::Bigtable::Admin::V2", - "services": { - "BigtableInstanceAdmin": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client", - "rpcs": { - "CreateInstance": { - "methods": [ - "create_instance" - ] - }, - "GetInstance": { - "methods": [ - "get_instance" - ] - }, - "ListInstances": { - "methods": [ - "list_instances" - ] - }, - "UpdateInstance": { - "methods": [ - "update_instance" - ] - }, - "PartialUpdateInstance": { - "methods": [ - "partial_update_instance" - ] - }, - "DeleteInstance": { - "methods": [ - "delete_instance" - ] - }, - "CreateCluster": { - "methods": [ - "create_cluster" - ] - }, - "GetCluster": { - "methods": [ - "get_cluster" - ] - }, - "ListClusters": { - "methods": [ - "list_clusters" - ] - }, - "UpdateCluster": { - "methods": [ - "update_cluster" - ] - }, - "PartialUpdateCluster": { - "methods": [ - "partial_update_cluster" - ] - }, - "DeleteCluster": { - "methods": [ - "delete_cluster" - ] - }, - "CreateAppProfile": { - "methods": [ - "create_app_profile" - ] - }, - "GetAppProfile": { - "methods": [ - "get_app_profile" - ] - }, - "ListAppProfiles": { - "methods": [ - "list_app_profiles" - ] - }, - "UpdateAppProfile": { - "methods": [ - "update_app_profile" - ] - }, - "DeleteAppProfile": { - "methods": [ - "delete_app_profile" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - }, - "ListHotTablets": { - "methods": [ - "list_hot_tablets" - ] - }, - "CreateLogicalView": { - "methods": [ - "create_logical_view" - ] - }, - "GetLogicalView": { - "methods": [ - "get_logical_view" - ] - }, - "ListLogicalViews": { - "methods": [ - "list_logical_views" - ] - }, - "UpdateLogicalView": { - "methods": [ - "update_logical_view" - ] - }, - "DeleteLogicalView": { - "methods": [ - "delete_logical_view" - ] - }, - "CreateMaterializedView": { - "methods": [ - "create_materialized_view" - ] - }, - "GetMaterializedView": { - "methods": [ - "get_materialized_view" - ] - }, - "ListMaterializedViews": { - "methods": [ - "list_materialized_views" - ] - }, - "UpdateMaterializedView": { - "methods": [ - "update_materialized_view" - ] - }, - "DeleteMaterializedView": { - "methods": [ - "delete_materialized_view" - ] - } - } - } - } - }, - "BigtableTableAdmin": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client", - "rpcs": { - "CreateTable": { - "methods": [ - "create_table" - ] - }, - "CreateTableFromSnapshot": { - "methods": [ - "create_table_from_snapshot" - ] - }, - "ListTables": { - "methods": [ - "list_tables" - ] - }, - "GetTable": { - "methods": [ - "get_table" - ] - }, - "UpdateTable": { - "methods": [ - "update_table" - ] - }, - "DeleteTable": { - "methods": [ - "delete_table" - ] - }, - "UndeleteTable": { - "methods": [ - "undelete_table" - ] - }, - "CreateAuthorizedView": { - "methods": [ - "create_authorized_view" - ] - }, - "ListAuthorizedViews": { - "methods": [ - "list_authorized_views" - ] - }, - "GetAuthorizedView": { - "methods": [ - "get_authorized_view" - ] - }, - "UpdateAuthorizedView": { - "methods": [ - "update_authorized_view" - ] - }, - "DeleteAuthorizedView": { - "methods": [ - "delete_authorized_view" - ] - }, - "ModifyColumnFamilies": { - "methods": [ - "modify_column_families" - ] - }, - "DropRowRange": { - "methods": [ - "drop_row_range" - ] - }, - "GenerateConsistencyToken": { - "methods": [ - "generate_consistency_token" - ] - }, - "CheckConsistency": { - "methods": [ - "check_consistency" - ] - }, - "SnapshotTable": { - "methods": [ - "snapshot_table" - ] - }, - "GetSnapshot": { - "methods": [ - "get_snapshot" - ] - }, - "ListSnapshots": { - "methods": [ - "list_snapshots" - ] - }, - "DeleteSnapshot": { - "methods": [ - "delete_snapshot" - ] - }, - "CreateBackup": { - "methods": [ - "create_backup" - ] - }, - "GetBackup": { - "methods": [ - "get_backup" - ] - }, - "UpdateBackup": { - "methods": [ - "update_backup" - ] - }, - "DeleteBackup": { - "methods": [ - "delete_backup" - ] - }, - "ListBackups": { - "methods": [ - "list_backups" - ] - }, - "RestoreTable": { - "methods": [ - "restore_table" - ] - }, - "CopyBackup": { - "methods": [ - "copy_backup" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - }, - "CreateSchemaBundle": { - "methods": [ - "create_schema_bundle" - ] - }, - "UpdateSchemaBundle": { - "methods": [ - "update_schema_bundle" - ] - }, - "GetSchemaBundle": { - "methods": [ - "get_schema_bundle" - ] - }, - "ListSchemaBundles": { - "methods": [ - "list_schema_bundles" - ] - }, - "DeleteSchemaBundle": { - "methods": [ - "delete_schema_bundle" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec deleted file mode 100644 index d15e999177a9..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec +++ /dev/null @@ -1,29 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/bigtable/admin/v2/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-bigtable-admin-v2" - gem.version = Google::Cloud::Bigtable::Admin::V2::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details." - gem.summary = "Administer your Cloud Bigtable tables and instances." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "grpc-google-iam-v1", "~> 1.11" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb deleted file mode 100644 index 0c7aa4cc6208..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/bigtable/admin/v2" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb deleted file mode 100644 index ada921bfd341..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +++ /dev/null @@ -1,78 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/bigtable_instance_admin.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/instance_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"Q\n\x12GetInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"T\n\x15\x44\x65leteInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"\xa7\x01\n\x14\x43reateClusterRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\"O\n\x11GetClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"h\n\x13ListClustersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"R\n\x14\x44\x65leteClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfb\x04\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x06tables\x18\x04 \x03(\x0b\x32;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1a\xf9\x01\n\rTableProgress\x12\x1c\n\x14\x65stimated_size_bytes\x18\x02 \x01(\x03\x12\x1e\n\x16\x65stimated_copied_bytes\x18\x03 \x01(\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32\x43.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07\x43OPYING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1al\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x02\x38\x01\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd2\x01\n\x1cPartialUpdateClusterMetadata\x12\x30\n\x0crequest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x10original_request\x18\x03 \x01(\x0b\x32\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8c\x01\n\x1bPartialUpdateClusterRequest\x12\x37\n\x07\x63luster\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xce\x01\n\x17\x43reateAppProfileRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"U\n\x14GetAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\"~\n\x16ListAppProfilesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"v\n\x17\x44\x65leteAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\x12\x1c\n\x0fignore_warnings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\xda\x01\n\x15ListHotTabletsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"k\n\x16ListHotTabletsResponse\x12\x38\n\x0bhot_tablets\x18\x01 \x03(\x0b\x32#.google.bigtable.admin.v2.HotTablet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\x18\x43reateLogicalViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1c\n\x0flogical_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0clogical_view\x18\x03 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\"\xc7\x01\n\x19\x43reateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x15GetLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\"\x8c\x01\n\x17ListLogicalViewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"q\n\x18ListLogicalViewsResponse\x12<\n\rlogical_views\x18\x01 \x03(\x0b\x32%.google.bigtable.admin.v2.LogicalView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x92\x01\n\x18UpdateLogicalViewRequest\x12@\n\x0clogical_view\x18\x01 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xc7\x01\n\x19UpdateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"m\n\x18\x44\x65leteLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1d\x43reateMaterializedViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12!\n\x14materialized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11materialized_view\x18\x03 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\"\xd1\x01\n\x1e\x43reateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1aGetMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\n\x1cListMaterializedViewsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1dListMaterializedViewsResponse\x12\x46\n\x12materialized_views\x18\x01 \x03(\x0b\x32*.google.bigtable.admin.v2.MaterializedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa1\x01\n\x1dUpdateMaterializedViewRequest\x12J\n\x11materialized_view\x18\x01 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xd1\x01\n\x1eUpdateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1d\x44\x65leteMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xe6\x36\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16\x43reateInstanceMetadata\xda\x41$parent,instance_id,instance,clusters\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16UpdateInstanceMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\xda\x41\x19parent,cluster_id,cluster\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\x12\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\'\n\x07\x43luster\x12\x1cPartialUpdateClusterMetadata\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07\x63luster\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"h\xda\x41!parent,app_profile_id,app_profile\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\xda\x41\x17\x61pp_profile,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\xb4\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\xda\x41\x14name,ignore_warnings\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaa\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xde\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xb1\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xe5\x01\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xe8\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xfc\x01\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\xde\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xbf\x01\n\x0eListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a\x30.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\n\x11\x43reateLogicalView\x12\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41(\n\x0bLogicalView\x12\x19\x43reateLogicalViewMetadata\xda\x41#parent,logical_view,logical_view_id\x82\xd3\xe4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0clogical_view\x12\xa9\x01\n\x0eGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1a%.google.bigtable.admin.v2.LogicalView\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xbc\x01\n\x10ListLogicalViews\x12\x31.google.bigtable.admin.v2.ListLogicalViewsRequest\x1a\x32.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\n\x11UpdateLogicalView\x12\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41(\n\x0bLogicalView\x12\x19UpdateLogicalViewMetadata\xda\x41\x18logical_view,update_mask\x82\xd3\xe4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0clogical_view\x12\xa0\x01\n\x11\x44\x65leteLogicalView\x12\x32.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xa8\x02\n\x16\x43reateMaterializedView\x12\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41\x32\n\x10MaterializedView\x12\x1e\x43reateMaterializedViewMetadata\xda\x41-parent,materialized_view,materialized_view_id\x82\xd3\xe4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xbd\x01\n\x13GetMaterializedView\x12\x34.google.bigtable.admin.v2.GetMaterializedViewRequest\x1a*.google.bigtable.admin.v2.MaterializedView\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xd0\x01\n\x15ListMaterializedViews\x12\x36.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1a\x37.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/instances/*}/materializedViews\x12\xaa\x02\n\x16UpdateMaterializedView\x12\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x32\n\x10MaterializedView\x12\x1eUpdateMaterializedViewMetadata\xda\x41\x1dmaterialized_view,update_mask\x82\xd3\xe4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xaf\x01\n\x16\x44\x65leteMaterializedView\x12\x37.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xdd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass - GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass - ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass - ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass - PartialUpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass - DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass - CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass - GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass - ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass - ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass - DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass - CreateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass - UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass - CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass - CreateClusterMetadata::TableProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress").msgclass - CreateClusterMetadata::TableProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State").enummodule - UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass - PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass - PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass - CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass - GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass - ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass - ListAppProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass - UpdateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass - DeleteAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass - UpdateAppProfileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass - ListHotTabletsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsRequest").msgclass - ListHotTabletsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsResponse").msgclass - CreateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewRequest").msgclass - CreateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewMetadata").msgclass - GetLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetLogicalViewRequest").msgclass - ListLogicalViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsRequest").msgclass - ListLogicalViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsResponse").msgclass - UpdateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewRequest").msgclass - UpdateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewMetadata").msgclass - DeleteLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteLogicalViewRequest").msgclass - CreateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewRequest").msgclass - CreateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewMetadata").msgclass - GetMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetMaterializedViewRequest").msgclass - ListMaterializedViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsRequest").msgclass - ListMaterializedViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsResponse").msgclass - UpdateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewRequest").msgclass - UpdateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewMetadata").msgclass - DeleteMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteMaterializedViewRequest").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb deleted file mode 100644 index 5719dfcb7960..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +++ /dev/null @@ -1,142 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2' -# Original file comments: -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/bigtable/admin/v2/bigtable_instance_admin_pb' - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin' - - # Create an instance within a project. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation - # Gets information about an instance. - rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance - # Lists information about instances in a project. - rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse - # Updates an instance within a project. This method updates only the display - # name and type for an Instance. To update other Instance properties, such as - # labels, use PartialUpdateInstance. - rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance - # Partially updates an instance within a project. This method can modify all - # fields of an Instance and is the preferred way to update an Instance. - rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation - # Delete an instance from a project. - rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty - # Creates a cluster within an instance. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation - # Gets information about a cluster. - rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster - # Lists information about clusters in an instance. - rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse - # Updates a cluster within an instance. - # - # Note that UpdateCluster does not support updating - # cluster_config.cluster_autoscaling_config. In order to update it, you - # must use PartialUpdateCluster. - rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation - # Partially updates a cluster within a project. This method is the preferred - # way to update a Cluster. - # - # To enable and update autoscaling, set - # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - # are ignored. Note that an update cannot simultaneously set serve_nodes to - # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - # also specify both in the update_mask. - # - # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - # and explicitly set a serve_node count via the update_mask. - rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation - # Deletes a cluster from an instance. - rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty - # Creates an app profile within an instance. - rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile - # Gets information about an app profile. - rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile - # Lists information about app profiles in an instance. - rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse - # Updates an app profile within an instance. - rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation - # Deletes an app profile from an instance. - rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty - # Gets the access control policy for an instance resource. Returns an empty - # policy if an instance exists but does not have a policy set. - rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy - # Sets the access control policy on an instance resource. Replaces any - # existing policy. - rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy - # Returns permissions that the caller has on the specified instance resource. - rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse - # Lists hot tablets in a cluster, within the time range provided. Hot - # tablets are ordered based on CPU usage. - rpc :ListHotTablets, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse - # Creates a logical view within an instance. - rpc :CreateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Google::Longrunning::Operation - # Gets information about a logical view. - rpc :GetLogicalView, ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Google::Cloud::Bigtable::Admin::V2::LogicalView - # Lists information about logical views in an instance. - rpc :ListLogicalViews, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse - # Updates a logical view within an instance. - rpc :UpdateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Google::Longrunning::Operation - # Deletes a logical view from an instance. - rpc :DeleteLogicalView, ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Google::Protobuf::Empty - # Creates a materialized view within an instance. - rpc :CreateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Google::Longrunning::Operation - # Gets information about a materialized view. - rpc :GetMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Google::Cloud::Bigtable::Admin::V2::MaterializedView - # Lists information about materialized views in an instance. - rpc :ListMaterializedViews, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse - # Updates a materialized view within an instance. - rpc :UpdateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Google::Longrunning::Operation - # Deletes a materialized view from an instance. - rpc :DeleteMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Google::Protobuf::Empty - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb deleted file mode 100644 index 52a9ea2d2e01..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +++ /dev/null @@ -1,91 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/bigtable_table_admin.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/common_pb' -require 'google/bigtable/admin/v2/table_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x13RestoreTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info\"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\n\x12\x43reateTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"\xbe\x01\n\x1e\x43reateTableFromSnapshotRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0fsource_snapshot\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\n\x13\x44ropRowRangeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"\xad\x01\n\x11ListTablesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\x9d\x01\n\x12UpdateTableRequest\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13UpdateTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n\x12\x44\x65leteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"P\n\x14UndeleteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"\x83\x01\n\x15UndeleteTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x03\n\x1bModifyColumnFamiliesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xdb\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x12\x34\n\x0bupdate_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x05\n\x03mod\"[\n\x1fGenerateConsistencyTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"\xb2\x02\n\x17\x43heckConsistencyRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1bstandard_read_remote_writes\x18\x03 \x01(\x0b\x32\x32.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\n\x1c\x64\x61ta_boost_read_local_writes\x18\x04 \x01(\x0b\x32\x32.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00\x42\x06\n\x04mode\"\x1a\n\x18StandardReadRemoteWrites\"\x1a\n\x18\x44\x61taBoostReadLocalWrites\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\xe6\x01\n\x14SnapshotTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12=\n\x07\x63luster\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"Q\n\x12GetSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"{\n\x14ListSnapshotsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15\x44\x65leteSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa2\x01\n\x13\x43reateBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"M\n\x10GetBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"P\n\x13\x44\x65leteBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"\x9b\x01\n\x12ListBackupsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe3\x01\n\x11\x43opyBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rsource_backup\x18\x03 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xcd\x01\n\x12\x43opyBackupMetadata\x12\x36\n\x04name\x18\x01 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12@\n\x12source_backup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfo\x12=\n\x08progress\x18\x03 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\xcb\x01\n\x1b\x43reateAuthorizedViewRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1f\n\x12\x61uthorized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0f\x61uthorized_view\x18\x03 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\"\xd2\x01\n\x1c\x43reateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x1aListAuthorizedViewsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x04view\x18\x04 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"z\n\x1bListAuthorizedViewsResponse\x12\x42\n\x10\x61uthorized_views\x18\x01 \x03(\x0b\x32(.google.bigtable.admin.v2.AuthorizedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x18GetAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"\xb9\x01\n\x1bUpdateAuthorizedViewRequest\x12\x46\n\x0f\x61uthorized_view\x18\x01 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x1cUpdateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x1b\x44\x65leteAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x19\x43reateSchemaBundleRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1d\n\x10schema_bundle_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rschema_bundle\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\"\x88\x01\n\x1a\x43reateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x01\n\x19UpdateSchemaBundleRequest\x12\x42\n\rschema_bundle\x18\x01 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x1aUpdateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x16GetSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\n\x18ListSchemaBundlesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x19ListSchemaBundlesResponse\x12>\n\x0eschema_bundles\x18\x01 \x03(\x0b\x32&.google.bigtable.admin.v2.SchemaBundle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x19\x44\x65leteSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\x92@\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\xda\x41\x15parent,table_id,table\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\xda\x41\x1fparent,table_id,source_snapshot\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xce\x01\n\x0bUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1c\n\x05Table\x12\x13UpdateTableMetadata\xda\x41\x11table,update_mask\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xca\x41\x1e\n\x05Table\x12\x15UndeleteTableMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xa1\x02\n\x14\x43reateAuthorizedView\x12\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41.\n\x0e\x41uthorizedView\x12\x1c\x43reateAuthorizedViewMetadata\xda\x41)parent,authorized_view,authorized_view_id\x82\xd3\xe4\x93\x02O\"\x12\x12*\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass - Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule - Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule - AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass - AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass - Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass - Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass - Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass - Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass - Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule - Cluster::NodeScalingFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.NodeScalingFactor").enummodule - AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass - AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass - AppProfile::MultiClusterRoutingUseAny::RowAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity").msgclass - AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass - AppProfile::StandardIsolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.StandardIsolation").msgclass - AppProfile::DataBoostIsolationReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly").msgclass - AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner").enummodule - AppProfile::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.Priority").enummodule - HotTablet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.HotTablet").msgclass - LogicalView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.LogicalView").msgclass - MaterializedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.MaterializedView").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb deleted file mode 100644 index 4b069137666b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/table.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/types_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/timestamp_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass - ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass - Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass - Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass - Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule - Table::AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.AutomatedBackupPolicy").msgclass - Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule - Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule - AuthorizedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView").msgclass - AuthorizedView::FamilySubsets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.FamilySubsets").msgclass - AuthorizedView::SubsetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.SubsetView").msgclass - AuthorizedView::ResponseView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.ResponseView").enummodule - ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass - GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass - GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass - GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass - EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass - EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule - Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass - Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule - Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass - Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule - Backup::BackupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.BackupType").enummodule - BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass - TieredStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageConfig").msgclass - TieredStorageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageRule").msgclass - ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ProtoSchema").msgclass - SchemaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SchemaBundle").msgclass - RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb deleted file mode 100644 index 7a9e1c6a0620..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/types.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc7\x19\n\x04Type\x12:\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\n\x0bstring_type\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StringH\x00\x12:\n\nint64_type\x18\x05 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float64H\x00\x12\x38\n\tbool_type\x18\x08 \x01(\x0b\x32#.google.bigtable.admin.v2.Type.BoolH\x00\x12\x42\n\x0etimestamp_type\x18\n \x01(\x0b\x32(.google.bigtable.admin.v2.Type.TimestampH\x00\x12\x38\n\tdate_type\x18\x0b \x01(\x0b\x32#.google.bigtable.admin.v2.Type.DateH\x00\x12\x42\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\n\x0bstruct_type\x18\x07 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StructH\x00\x12:\n\narray_type\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ArrayH\x00\x12\x36\n\x08map_type\x18\x04 \x01(\x0b\x32\".google.bigtable.admin.v2.Type.MapH\x00\x12:\n\nproto_type\x18\r \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ProtoH\x00\x12\x38\n\tenum_type\x18\x0e \x01(\x0b\x32#.google.bigtable.admin.v2.Type.EnumH\x00\x1a\xa9\x01\n\x05\x42ytes\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1a_\n\x08\x45ncoding\x12@\n\x03raw\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\x9f\x02\n\x06String\x12@\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.Type.String.Encoding\x1a\xd2\x01\n\x08\x45ncoding\x12N\n\x08utf8_raw\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\r\n\x07Utf8Raw:\x02\x18\x01\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xfd\x02\n\x05Int64\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.Encoding\x1a\xb2\x02\n\x08\x45ncoding\x12X\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\n\x12ordered_code_bytes\x18\x02 \x01(\x0b\x32>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1aN\n\x0e\x42igEndianBytes\x12<\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\xb4\x01\n\tTimestamp\x12\x43\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1a\x62\n\x08\x45ncoding\x12J\n\x11unix_micros_int64\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00\x42\n\n\x08\x65ncoding\x1a\x06\n\x04\x44\x61te\x1a\xb9\x04\n\x06Struct\x12;\n\x06\x66ields\x18\x01 \x03(\x0b\x32+.google.bigtable.admin.v2.Type.Struct.Field\x12@\n\x08\x65ncoding\x18\x02 \x01(\x0b\x32..google.bigtable.admin.v2.Type.Struct.Encoding\x1aI\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xe4\x02\n\x08\x45ncoding\x12M\n\tsingleton\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\n\x0f\x64\x65limited_bytes\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\n\x12ordered_code_bytes\x18\x03 \x01(\x0b\x32?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1a\x0b\n\tSingleton\x1a#\n\x0e\x44\x65limitedBytes\x12\x11\n\tdelimiter\x18\x01 \x01(\x0c\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x37\n\x05Proto\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x14\n\x0cmessage_name\x18\x02 \x01(\t\x1a\x33\n\x04\x45num\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x11\n\tenum_name\x18\x02 \x01(\t\x1a=\n\x05\x41rray\x12\x34\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1ak\n\x03Map\x12\x30\n\x08key_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x32\n\nvalue_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xdb\x03\n\tAggregate\x12\x32\n\ninput_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x37\n\nstate_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.TypeB\x03\xe0\x41\x03\x12;\n\x03sum\x18\x04 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12\x65\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\n\x03max\x18\x06 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\n\x03min\x18\x07 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xcd\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type").msgclass - Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes").msgclass - Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding").msgclass - Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding.Raw").msgclass - Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String").msgclass - Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding").msgclass - Type::String::Encoding::Utf8Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw").msgclass - Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes").msgclass - Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64").msgclass - Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding").msgclass - Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes").msgclass - Type::Int64::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes").msgclass - Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bool").msgclass - Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float32").msgclass - Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float64").msgclass - Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp").msgclass - Type::Timestamp::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp.Encoding").msgclass - Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Date").msgclass - Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct").msgclass - Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Field").msgclass - Type::Struct::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding").msgclass - Type::Struct::Encoding::Singleton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.Singleton").msgclass - Type::Struct::Encoding::DelimitedBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes").msgclass - Type::Struct::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes").msgclass - Type::Proto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Proto").msgclass - Type::Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Enum").msgclass - Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Array").msgclass - Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Map").msgclass - Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate").msgclass - Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Sum").msgclass - Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Max").msgclass - Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Min").msgclass - Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb deleted file mode 100644 index 19a6f94a9e3e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" -require "google/cloud/bigtable/admin/v2/version" - -module Google - module Cloud - module Bigtable - module Admin - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - module V2 - end - end - end - end -end - -helper_path = ::File.join __dir__, "v2", "_helpers.rb" -require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb deleted file mode 100644 index aeb89a361209..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/bigtable/admin/v2/version" - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - ## - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - module BigtableInstanceAdmin - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb deleted file mode 100644 index 4dbd45245ace..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +++ /dev/null @@ -1,3710 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - ## - # Client for the BigtableInstanceAdmin service. - # - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :bigtable_instance_admin_stub - - ## - # Configure the BigtableInstanceAdmin Client class. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BigtableInstanceAdmin clients - # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.create_instance.timeout = 300.0 - - default_config.rpcs.get_instance.timeout = 60.0 - default_config.rpcs.get_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_instances.timeout = 60.0 - default_config.rpcs.list_instances.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_instance.timeout = 60.0 - default_config.rpcs.update_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.partial_update_instance.timeout = 60.0 - default_config.rpcs.partial_update_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_instance.timeout = 60.0 - - default_config.rpcs.create_cluster.timeout = 60.0 - - default_config.rpcs.get_cluster.timeout = 60.0 - default_config.rpcs.get_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_clusters.timeout = 60.0 - default_config.rpcs.list_clusters.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_cluster.timeout = 60.0 - default_config.rpcs.update_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_cluster.timeout = 60.0 - - default_config.rpcs.create_app_profile.timeout = 60.0 - - default_config.rpcs.get_app_profile.timeout = 60.0 - default_config.rpcs.get_app_profile.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_app_profiles.timeout = 60.0 - default_config.rpcs.list_app_profiles.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_app_profile.timeout = 60.0 - default_config.rpcs.update_app_profile.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_app_profile.timeout = 60.0 - - default_config.rpcs.get_iam_policy.timeout = 60.0 - default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.set_iam_policy.timeout = 60.0 - - default_config.rpcs.test_iam_permissions.timeout = 60.0 - default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_hot_tablets.timeout = 60.0 - default_config.rpcs.list_hot_tablets.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableInstanceAdmin Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @bigtable_instance_admin_stub.universe_domain - end - - ## - # Create a new BigtableInstanceAdmin client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BigtableInstanceAdmin client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @bigtable_instance_admin_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @bigtable_instance_admin_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations] - # - attr_reader :operations_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @bigtable_instance_admin_stub.logger - end - - # Service calls - - ## - # Create an instance within a project. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - # - # @overload create_instance(request, options = nil) - # Pass arguments to `create_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_instance(parent: nil, instance_id: nil, instance: nil, clusters: nil) - # Pass arguments to `create_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the project in which to create the new - # instance. Values are of the form `projects/{project}`. - # @param instance_id [::String] - # Required. The ID to be used when referring to the new instance within its - # project, e.g., just `myinstance` rather than - # `projects/myproject/instances/myinstance`. - # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # Required. The instance to create. - # Fields marked `OutputOnly` must be left blank. - # @param clusters [::Hash{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash}] - # Required. The clusters to be created within the instance, mapped by desired - # cluster ID, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # Fields marked `OutputOnly` must be left blank. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new - # - # # Call the create_instance method. - # result = client.create_instance request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an instance. - # - # @overload get_instance(request, options = nil) - # Pass arguments to `get_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_instance(name: nil) - # Pass arguments to `get_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested instance. Values are of the form - # `projects/{project}/instances/{instance}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new - # - # # Call the get_instance method. - # result = client.get_instance request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - # p result - # - def get_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about instances in a project. - # - # @overload list_instances(request, options = nil) - # Pass arguments to `list_instances` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_instances(parent: nil, page_token: nil) - # Pass arguments to `list_instances` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the project for which a list of instances is - # requested. Values are of the form `projects/{project}`. - # @param page_token [::String] - # DEPRECATED: This field is unused and ignored. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new - # - # # Call the list_instances method. - # result = client.list_instances request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. - # p result - # - def list_instances request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_instances.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_instances.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_instances.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an instance within a project. This method updates only the display - # name and type for an Instance. To update other Instance properties, such as - # labels, use PartialUpdateInstance. - # - # @overload update_instance(request, options = nil) - # Pass arguments to `update_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::Instance} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_instance(name: nil, display_name: nil, type: nil, labels: nil, tags: nil) - # Pass arguments to `update_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The unique name of the instance. Values are of the form - # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - # @param display_name [::String] - # Required. The descriptive name for this instance as it appears in UIs. - # Can be changed at any time, but should be kept globally unique - # to avoid confusion. - # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] - # The type of the instance. Defaults to `PRODUCTION`. - # @param labels [::Hash{::String => ::String}] - # Labels are a flexible and lightweight mechanism for organizing cloud - # resources into groups that reflect a customer's organizational needs and - # deployment strategies. They can be used to filter resources and aggregate - # metrics. - # - # * Label keys must be between 1 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - # * Label values must be between 0 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - # * No more than 64 labels can be associated with a given resource. - # * Keys and values must both be under 128 bytes. - # @param tags [::Hash{::String => ::String}] - # Optional. Input only. Immutable. Tag keys/values directly bound to this - # resource. For example: - # - "123/environment": "production", - # - "123/costCenter": "marketing" - # - # Tags and Labels (above) are both used to bind metadata to resources, with - # different use-cases. See - # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - # in-depth overview on the difference between tags and labels. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::Instance.new - # - # # Call the update_instance method. - # result = client.update_instance request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - # p result - # - def update_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Instance - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Partially updates an instance within a project. This method can modify all - # fields of an Instance and is the preferred way to update an Instance. - # - # @overload partial_update_instance(request, options = nil) - # Pass arguments to `partial_update_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload partial_update_instance(instance: nil, update_mask: nil) - # Pass arguments to `partial_update_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # Required. The Instance which will (partially) replace the current value. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of Instance fields which should be replaced. - # Must be explicitly set. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new - # - # # Call the partial_update_instance method. - # result = client.partial_update_instance request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def partial_update_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.partial_update_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.instance&.name - header_params["instance.name"] = request.instance.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.partial_update_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete an instance from a project. - # - # @overload delete_instance(request, options = nil) - # Pass arguments to `delete_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_instance(name: nil) - # Pass arguments to `delete_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the instance to be deleted. - # Values are of the form `projects/{project}/instances/{instance}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new - # - # # Call the delete_instance method. - # result = client.delete_instance request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a cluster within an instance. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - # - # @overload create_cluster(request, options = nil) - # Pass arguments to `create_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil) - # Pass arguments to `create_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the new - # cluster. Values are of the form `projects/{project}/instances/{instance}`. - # @param cluster_id [::String] - # Required. The ID to be used when referring to the new cluster within its - # instance, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # Required. The cluster to be created. - # Fields marked `OutputOnly` must be left blank. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new - # - # # Call the create_cluster method. - # result = client.create_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a cluster. - # - # @overload get_cluster(request, options = nil) - # Pass arguments to `get_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_cluster(name: nil) - # Pass arguments to `get_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new - # - # # Call the get_cluster method. - # result = client.get_cluster request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. - # p result - # - def get_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about clusters in an instance. - # - # @overload list_clusters(request, options = nil) - # Pass arguments to `list_clusters` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_clusters(parent: nil, page_token: nil) - # Pass arguments to `list_clusters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which a list of clusters is - # requested. Values are of the form - # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - # Clusters for all Instances in a project, e.g., - # `projects/myproject/instances/-`. - # @param page_token [::String] - # DEPRECATED: This field is unused and ignored. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new - # - # # Call the list_clusters method. - # result = client.list_clusters request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. - # p result - # - def list_clusters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_clusters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_clusters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_clusters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a cluster within an instance. - # - # Note that UpdateCluster does not support updating - # cluster_config.cluster_autoscaling_config. In order to update it, you - # must use PartialUpdateCluster. - # - # @overload update_cluster(request, options = nil) - # Pass arguments to `update_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_cluster(name: nil, location: nil, serve_nodes: nil, node_scaling_factor: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil) - # Pass arguments to `update_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The unique name of the cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - # @param location [::String] - # Immutable. The location where this cluster's nodes and storage reside. For - # best performance, clients should be located as close as possible to this - # cluster. Currently only zones are supported, so values should be of the - # form `projects/{project}/locations/{zone}`. - # @param serve_nodes [::Integer] - # The number of nodes in the cluster. If no value is set, - # Cloud Bigtable automatically allocates nodes based on your data footprint - # and optimized for 50% storage utilization. - # @param node_scaling_factor [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] - # Immutable. The node scaling factor of this cluster. - # @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash] - # Configuration for this cluster. - # @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType] - # Immutable. The type of storage used by this cluster to serve its - # parent instance's tables, unless explicitly overridden. - # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash] - # Immutable. The encryption configuration for CMEK-protected clusters. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::Cluster.new - # - # # Call the update_cluster method. - # result = client.update_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Partially updates a cluster within a project. This method is the preferred - # way to update a Cluster. - # - # To enable and update autoscaling, set - # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - # are ignored. Note that an update cannot simultaneously set serve_nodes to - # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - # also specify both in the update_mask. - # - # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - # and explicitly set a serve_node count via the update_mask. - # - # @overload partial_update_cluster(request, options = nil) - # Pass arguments to `partial_update_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload partial_update_cluster(cluster: nil, update_mask: nil) - # Pass arguments to `partial_update_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # Required. The Cluster which contains the partial updates to be applied, - # subject to the update_mask. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of Cluster fields which should be replaced. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new - # - # # Call the partial_update_cluster method. - # result = client.partial_update_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def partial_update_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.partial_update_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.cluster&.name - header_params["cluster.name"] = request.cluster.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.partial_update_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a cluster from an instance. - # - # @overload delete_cluster(request, options = nil) - # Pass arguments to `delete_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_cluster(name: nil) - # Pass arguments to `delete_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the cluster to be deleted. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new - # - # # Call the delete_cluster method. - # result = client.delete_cluster request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an app profile within an instance. - # - # @overload create_app_profile(request, options = nil) - # Pass arguments to `create_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_app_profile(parent: nil, app_profile_id: nil, app_profile: nil, ignore_warnings: nil) - # Pass arguments to `create_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the new app - # profile. Values are of the form `projects/{project}/instances/{instance}`. - # @param app_profile_id [::String] - # Required. The ID to be used when referring to the new app profile within - # its instance, e.g., just `myprofile` rather than - # `projects/myproject/instances/myinstance/appProfiles/myprofile`. - # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] - # Required. The app profile to be created. - # Fields marked `OutputOnly` will be ignored. - # @param ignore_warnings [::Boolean] - # If true, ignore safety checks when creating the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new - # - # # Call the create_app_profile method. - # result = client.create_app_profile request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p result - # - def create_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an app profile. - # - # @overload get_app_profile(request, options = nil) - # Pass arguments to `get_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_app_profile(name: nil) - # Pass arguments to `get_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested app profile. Values are of the - # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new - # - # # Call the get_app_profile method. - # result = client.get_app_profile request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p result - # - def get_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about app profiles in an instance. - # - # @overload list_app_profiles(request, options = nil) - # Pass arguments to `list_app_profiles` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_app_profiles(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_app_profiles` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which a list of app profiles - # is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - # e.g., `projects/myproject/instances/-`. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new - # - # # Call the list_app_profiles method. - # result = client.list_app_profiles request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p item - # end - # - def list_app_profiles request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_app_profiles.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_app_profiles.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_app_profiles, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an app profile within an instance. - # - # @overload update_app_profile(request, options = nil) - # Pass arguments to `update_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_app_profile(app_profile: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] - # Required. The app profile which will (partially) replace the current value. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of app profile fields which should be replaced. - # If unset, all fields will be replaced. - # @param ignore_warnings [::Boolean] - # If true, ignore safety checks when updating the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new - # - # # Call the update_app_profile method. - # result = client.update_app_profile request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.app_profile&.name - header_params["app_profile.name"] = request.app_profile.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an app profile from an instance. - # - # @overload delete_app_profile(request, options = nil) - # Pass arguments to `delete_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_app_profile(name: nil, ignore_warnings: nil) - # Pass arguments to `delete_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the app profile to be deleted. Values are of - # the form - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # @param ignore_warnings [::Boolean] - # Required. If true, ignore safety checks when deleting the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new - # - # # Call the delete_app_profile method. - # result = client.delete_app_profile request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for an instance resource. Returns an empty - # policy if an instance exists but does not have a policy set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on an instance resource. Replaces any - # existing policy. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns permissions that the caller has on the specified instance resource. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists hot tablets in a cluster, within the time range provided. Hot - # tablets are ordered based on CPU usage. - # - # @overload list_hot_tablets(request, options = nil) - # Pass arguments to `list_hot_tablets` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_hot_tablets(parent: nil, start_time: nil, end_time: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_hot_tablets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The cluster name to list hot tablets. - # Value is in the following form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # The start time to list hot tablets. The hot tablets in the response will - # have start times between the requested start time and end time. Start time - # defaults to Now if it is unset, and end time defaults to Now - 24 hours if - # it is unset. The start time should be less than the end time, and the - # maximum allowed time range between start time and end time is 48 hours. - # Start time and end time should have values between Now and Now - 14 days. - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # The end time to list hot tablets. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size that is empty or zero lets the server choose the number of - # items to return. A page_size which is strictly positive will return at most - # that many items. A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls do not need a - # page_size field. If a page_size is set in subsequent calls, it must match - # the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new - # - # # Call the list_hot_tablets method. - # result = client.list_hot_tablets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. - # p item - # end - # - def list_hot_tablets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_hot_tablets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_hot_tablets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_hot_tablets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_hot_tablets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_hot_tablets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a logical view within an instance. - # - # @overload create_logical_view(request, options = nil) - # Pass arguments to `create_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_logical_view(parent: nil, logical_view_id: nil, logical_view: nil) - # Pass arguments to `create_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent instance where this logical view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @param logical_view_id [::String] - # Required. The ID to use for the logical view, which will become the final - # component of the logical view's resource name. - # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] - # Required. The logical view to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new - # - # # Call the create_logical_view method. - # result = client.create_logical_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_logical_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a logical view. - # - # @overload get_logical_view(request, options = nil) - # Pass arguments to `get_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_logical_view(name: nil) - # Pass arguments to `get_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested logical view. Values are of the - # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new - # - # # Call the get_logical_view method. - # result = client.get_logical_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. - # p result - # - def get_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_logical_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about logical views in an instance. - # - # @overload list_logical_views(request, options = nil) - # Pass arguments to `list_logical_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_logical_views(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_logical_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which the list of logical - # views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @param page_size [::Integer] - # Optional. The maximum number of logical views to return. The service may - # return fewer than this value - # @param page_token [::String] - # Optional. A page token, received from a previous `ListLogicalViews` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListLogicalViews` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new - # - # # Call the list_logical_views method. - # result = client.list_logical_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. - # p item - # end - # - def list_logical_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_logical_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_logical_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_logical_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_logical_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_logical_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a logical view within an instance. - # - # @overload update_logical_view(request, options = nil) - # Pass arguments to `update_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_logical_view(logical_view: nil, update_mask: nil) - # Pass arguments to `update_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] - # Required. The logical view to update. - # - # The logical view's `name` field is used to identify the view to update. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new - # - # # Call the update_logical_view method. - # result = client.update_logical_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.logical_view&.name - header_params["logical_view.name"] = request.logical_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_logical_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a logical view from an instance. - # - # @overload delete_logical_view(request, options = nil) - # Pass arguments to `delete_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_logical_view(name: nil, etag: nil) - # Pass arguments to `delete_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the logical view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @param etag [::String] - # Optional. The current etag of the logical view. - # If an etag is provided and does not match the current etag of the - # logical view, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new - # - # # Call the delete_logical_view method. - # result = client.delete_logical_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_logical_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a materialized view within an instance. - # - # @overload create_materialized_view(request, options = nil) - # Pass arguments to `create_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_materialized_view(parent: nil, materialized_view_id: nil, materialized_view: nil) - # Pass arguments to `create_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent instance where this materialized view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @param materialized_view_id [::String] - # Required. The ID to use for the materialized view, which will become the - # final component of the materialized view's resource name. - # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] - # Required. The materialized view to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new - # - # # Call the create_materialized_view method. - # result = client.create_materialized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_materialized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a materialized view. - # - # @overload get_materialized_view(request, options = nil) - # Pass arguments to `get_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_materialized_view(name: nil) - # Pass arguments to `get_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested materialized view. Values are of - # the form - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new - # - # # Call the get_materialized_view method. - # result = client.get_materialized_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. - # p result - # - def get_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_materialized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about materialized views in an instance. - # - # @overload list_materialized_views(request, options = nil) - # Pass arguments to `list_materialized_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_materialized_views(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_materialized_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which the list of - # materialized views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @param page_size [::Integer] - # Optional. The maximum number of materialized views to return. The service - # may return fewer than this value - # @param page_token [::String] - # Optional. A page token, received from a previous `ListMaterializedViews` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListMaterializedViews` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new - # - # # Call the list_materialized_views method. - # result = client.list_materialized_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. - # p item - # end - # - def list_materialized_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_materialized_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_materialized_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_materialized_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_materialized_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_materialized_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a materialized view within an instance. - # - # @overload update_materialized_view(request, options = nil) - # Pass arguments to `update_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_materialized_view(materialized_view: nil, update_mask: nil) - # Pass arguments to `update_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] - # Required. The materialized view to update. - # - # The materialized view's `name` field is used to identify the view to - # update. Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new - # - # # Call the update_materialized_view method. - # result = client.update_materialized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.materialized_view&.name - header_params["materialized_view.name"] = request.materialized_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_materialized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a materialized view from an instance. - # - # @overload delete_materialized_view(request, options = nil) - # Pass arguments to `delete_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_materialized_view(name: nil, etag: nil) - # Pass arguments to `delete_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the materialized view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @param etag [::String] - # Optional. The current etag of the materialized view. - # If an etag is provided and does not match the current etag of the - # materialized view, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new - # - # # Call the delete_materialized_view method. - # result = client.delete_materialized_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_materialized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the BigtableInstanceAdmin API. - # - # This class represents the configuration for BigtableInstanceAdmin, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_instance to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_instance.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_instance.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BigtableInstanceAdmin API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :create_instance - ## - # RPC-specific configuration for `get_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :get_instance - ## - # RPC-specific configuration for `list_instances` - # @return [::Gapic::Config::Method] - # - attr_reader :list_instances - ## - # RPC-specific configuration for `update_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :update_instance - ## - # RPC-specific configuration for `partial_update_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :partial_update_instance - ## - # RPC-specific configuration for `delete_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_instance - ## - # RPC-specific configuration for `create_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :create_cluster - ## - # RPC-specific configuration for `get_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :get_cluster - ## - # RPC-specific configuration for `list_clusters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_clusters - ## - # RPC-specific configuration for `update_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :update_cluster - ## - # RPC-specific configuration for `partial_update_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :partial_update_cluster - ## - # RPC-specific configuration for `delete_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_cluster - ## - # RPC-specific configuration for `create_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :create_app_profile - ## - # RPC-specific configuration for `get_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :get_app_profile - ## - # RPC-specific configuration for `list_app_profiles` - # @return [::Gapic::Config::Method] - # - attr_reader :list_app_profiles - ## - # RPC-specific configuration for `update_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :update_app_profile - ## - # RPC-specific configuration for `delete_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_app_profile - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - ## - # RPC-specific configuration for `list_hot_tablets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_hot_tablets - ## - # RPC-specific configuration for `create_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_logical_view - ## - # RPC-specific configuration for `get_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_logical_view - ## - # RPC-specific configuration for `list_logical_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_logical_views - ## - # RPC-specific configuration for `update_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_logical_view - ## - # RPC-specific configuration for `delete_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_logical_view - ## - # RPC-specific configuration for `create_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_materialized_view - ## - # RPC-specific configuration for `get_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_materialized_view - ## - # RPC-specific configuration for `list_materialized_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_materialized_views - ## - # RPC-specific configuration for `update_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_materialized_view - ## - # RPC-specific configuration for `delete_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_materialized_view - - # @private - def initialize parent_rpcs = nil - create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance - @create_instance = ::Gapic::Config::Method.new create_instance_config - get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance - @get_instance = ::Gapic::Config::Method.new get_instance_config - list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances - @list_instances = ::Gapic::Config::Method.new list_instances_config - update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance - @update_instance = ::Gapic::Config::Method.new update_instance_config - partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance - @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config - delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance - @delete_instance = ::Gapic::Config::Method.new delete_instance_config - create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster - @create_cluster = ::Gapic::Config::Method.new create_cluster_config - get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster - @get_cluster = ::Gapic::Config::Method.new get_cluster_config - list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters - @list_clusters = ::Gapic::Config::Method.new list_clusters_config - update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster - @update_cluster = ::Gapic::Config::Method.new update_cluster_config - partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster - @partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config - delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster - @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config - create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile - @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config - get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile - @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config - list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles - @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config - update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile - @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config - delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile - @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - list_hot_tablets_config = parent_rpcs.list_hot_tablets if parent_rpcs.respond_to? :list_hot_tablets - @list_hot_tablets = ::Gapic::Config::Method.new list_hot_tablets_config - create_logical_view_config = parent_rpcs.create_logical_view if parent_rpcs.respond_to? :create_logical_view - @create_logical_view = ::Gapic::Config::Method.new create_logical_view_config - get_logical_view_config = parent_rpcs.get_logical_view if parent_rpcs.respond_to? :get_logical_view - @get_logical_view = ::Gapic::Config::Method.new get_logical_view_config - list_logical_views_config = parent_rpcs.list_logical_views if parent_rpcs.respond_to? :list_logical_views - @list_logical_views = ::Gapic::Config::Method.new list_logical_views_config - update_logical_view_config = parent_rpcs.update_logical_view if parent_rpcs.respond_to? :update_logical_view - @update_logical_view = ::Gapic::Config::Method.new update_logical_view_config - delete_logical_view_config = parent_rpcs.delete_logical_view if parent_rpcs.respond_to? :delete_logical_view - @delete_logical_view = ::Gapic::Config::Method.new delete_logical_view_config - create_materialized_view_config = parent_rpcs.create_materialized_view if parent_rpcs.respond_to? :create_materialized_view - @create_materialized_view = ::Gapic::Config::Method.new create_materialized_view_config - get_materialized_view_config = parent_rpcs.get_materialized_view if parent_rpcs.respond_to? :get_materialized_view - @get_materialized_view = ::Gapic::Config::Method.new get_materialized_view_config - list_materialized_views_config = parent_rpcs.list_materialized_views if parent_rpcs.respond_to? :list_materialized_views - @list_materialized_views = ::Gapic::Config::Method.new list_materialized_views_config - update_materialized_view_config = parent_rpcs.update_materialized_view if parent_rpcs.respond_to? :update_materialized_view - @update_materialized_view = ::Gapic::Config::Method.new update_materialized_view_config - delete_materialized_view_config = parent_rpcs.delete_materialized_view if parent_rpcs.respond_to? :delete_materialized_view - @delete_materialized_view = ::Gapic::Config::Method.new delete_materialized_view_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb deleted file mode 100644 index 4b166e3ac286..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Credentials for the BigtableInstanceAdmin API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.cluster", - "https://www.googleapis.com/auth/bigtable.admin.instance", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - self.env_vars = [ - "BIGTABLE_CREDENTIALS", - "BIGTABLE_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "BIGTABLE_CREDENTIALS_JSON", - "BIGTABLE_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb deleted file mode 100644 index d49308f480c1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +++ /dev/null @@ -1,843 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the BigtableInstanceAdmin Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableInstanceAdmin Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb deleted file mode 100644 index 8ee57571df69..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb +++ /dev/null @@ -1,180 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Path helper methods for the BigtableInstanceAdmin API. - module Paths - ## - # Create a fully-qualified AppProfile resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}` - # - # @param project [String] - # @param instance [String] - # @param app_profile [String] - # - # @return [::String] - def app_profile_path project:, instance:, app_profile: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/appProfiles/#{app_profile}" - end - - ## - # Create a fully-qualified Cluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # - # @return [::String] - def cluster_path project:, instance:, cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}" - end - - ## - # Create a fully-qualified CryptoKey resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # - # @return [::String] - def crypto_key_path project:, location:, key_ring:, crypto_key: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" - end - - ## - # Create a fully-qualified Instance resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}` - # - # @param project [String] - # @param instance [String] - # - # @return [::String] - def instance_path project:, instance: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/instances/#{instance}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified LogicalView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - # - # @param project [String] - # @param instance [String] - # @param logical_view [String] - # - # @return [::String] - def logical_view_path project:, instance:, logical_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/logicalViews/#{logical_view}" - end - - ## - # Create a fully-qualified MaterializedView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - # - # @param project [String] - # @param instance [String] - # @param materialized_view [String] - # - # @return [::String] - def materialized_view_path project:, instance:, materialized_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/materializedViews/#{materialized_view}" - end - - ## - # Create a fully-qualified Project resource string. - # - # The resource will be in the following format: - # - # `projects/{project}` - # - # @param project [String] - # - # @return [::String] - def project_path project: - "projects/#{project}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb deleted file mode 100644 index cc08c6872c99..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/bigtable/admin/v2/version" - -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/paths" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/operations" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/client" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - ## - # Service for creating, configuring, and deleting Cloud Bigtable tables. - # - # - # Provides access to the table schemas only, not the data stored within - # the tables. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - module BigtableTableAdmin - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bigtable_table_admin", "helpers.rb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb deleted file mode 100644 index a6a0d9ba05cd..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +++ /dev/null @@ -1,4266 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/bigtable/admin/v2/bigtable_table_admin_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - ## - # Client for the BigtableTableAdmin service. - # - # Service for creating, configuring, and deleting Cloud Bigtable tables. - # - # - # Provides access to the table schemas only, not the data stored within - # the tables. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :bigtable_table_admin_stub - - ## - # Configure the BigtableTableAdmin Client class. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BigtableTableAdmin clients - # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.create_table.timeout = 300.0 - - default_config.rpcs.list_tables.timeout = 60.0 - default_config.rpcs.list_tables.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.get_table.timeout = 60.0 - default_config.rpcs.get_table.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_table.timeout = 300.0 - - default_config.rpcs.modify_column_families.timeout = 300.0 - - default_config.rpcs.drop_row_range.timeout = 3600.0 - - default_config.rpcs.generate_consistency_token.timeout = 60.0 - default_config.rpcs.generate_consistency_token.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.check_consistency.timeout = 3600.0 - default_config.rpcs.check_consistency.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.get_snapshot.timeout = 60.0 - default_config.rpcs.get_snapshot.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_snapshots.timeout = 60.0 - default_config.rpcs.list_snapshots.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_snapshot.timeout = 300.0 - - default_config.rpcs.create_backup.timeout = 60.0 - - default_config.rpcs.get_backup.timeout = 60.0 - default_config.rpcs.get_backup.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_backup.timeout = 60.0 - - default_config.rpcs.delete_backup.timeout = 300.0 - - default_config.rpcs.list_backups.timeout = 60.0 - default_config.rpcs.list_backups.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.restore_table.timeout = 60.0 - - default_config.rpcs.get_iam_policy.timeout = 60.0 - default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.set_iam_policy.timeout = 60.0 - - default_config.rpcs.test_iam_permissions.timeout = 60.0 - default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableTableAdmin Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @bigtable_table_admin_stub.universe_domain - end - - ## - # Create a new BigtableTableAdmin client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BigtableTableAdmin client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @bigtable_table_admin_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @bigtable_table_admin_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations] - # - attr_reader :operations_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @bigtable_table_admin_stub.logger - end - - # Service calls - - ## - # Creates a new table in the specified instance. - # The table can be created with a full set of initial column families, - # specified in the request. - # - # @overload create_table(request, options = nil) - # Pass arguments to `create_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_table(parent: nil, table_id: nil, table: nil, initial_splits: nil) - # Pass arguments to `create_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @param table_id [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # Maximum 50 characters. - # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] - # Required. The Table to create. - # @param initial_splits [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, ::Hash>] - # The optional list of row keys that will be used to initially split the - # table into several tablets (tablets are similar to HBase regions). - # Given two split keys, `s1` and `s2`, three tablets will be created, - # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - # - # Example: - # - # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - # `"other", "zz"]` - # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - # * Key assignment: - # - Tablet 1 `[, apple) => {"a"}.` - # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - # - Tablet 4 `[customer_2, other) => {"customer_2"}.` - # - Tablet 5 `[other, ) => {"other", "zz"}.` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new - # - # # Call the create_table method. - # result = client.create_table request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def create_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new table from the specified snapshot. The target table must - # not exist. The snapshot and the table must be in the same instance. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload create_table_from_snapshot(request, options = nil) - # Pass arguments to `create_table_from_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_table_from_snapshot(parent: nil, table_id: nil, source_snapshot: nil) - # Pass arguments to `create_table_from_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @param table_id [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # @param source_snapshot [::String] - # Required. The unique name of the snapshot from which to restore the table. - # The snapshot and the table must be in the same instance. Values are of the - # form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new - # - # # Call the create_table_from_snapshot method. - # result = client.create_table_from_snapshot request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_table_from_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_table_from_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all tables served from a specified instance. - # - # @overload list_tables(request, options = nil) - # Pass arguments to `list_tables` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_tables(parent: nil, view: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_tables` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which tables should be - # listed. Values are of the form `projects/{project}/instances/{instance}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned tables' fields. - # NAME_ONLY view (default) and REPLICATION_VIEW are supported. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new - # - # # Call the list_tables method. - # result = client.list_tables request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. - # p item - # end - # - def list_tables request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_tables.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_tables.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_tables.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_tables, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified table. - # - # @overload get_table(request, options = nil) - # Pass arguments to `get_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_table(name: nil, view: nil) - # Pass arguments to `get_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested table. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned table's fields. - # Defaults to `SCHEMA_VIEW` if unspecified. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new - # - # # Call the get_table method. - # result = client.get_table request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def get_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a specified table. - # - # @overload update_table(request, options = nil) - # Pass arguments to `update_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_table(table: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] - # Required. The table to update. - # The table's `name` field is used to identify the table to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to update. - # A mask specifying which fields (e.g. `change_stream_config`) in the `table` - # field should be updated. This mask is relative to the `table` field, not to - # the request message. The wildcard (*) path is currently not supported. - # Currently UpdateTable is only supported for the following fields: - # - # * `change_stream_config` - # * `change_stream_config.retention_period` - # * `deletion_protection` - # * `row_key_schema` - # - # If `column_families` is set in `update_mask`, it will return an - # UNIMPLEMENTED error. - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore safety checks when updating the table. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new - # - # # Call the update_table method. - # result = client.update_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.table&.name - header_params["table.name"] = request.table.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes a specified table and all of its data. - # - # @overload delete_table(request, options = nil) - # Pass arguments to `delete_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_table(name: nil) - # Pass arguments to `delete_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new - # - # # Call the delete_table method. - # result = client.delete_table request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Restores a specified table which was accidentally deleted. - # - # @overload undelete_table(request, options = nil) - # Pass arguments to `undelete_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload undelete_table(name: nil) - # Pass arguments to `undelete_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to be restored. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new - # - # # Call the undelete_table method. - # result = client.undelete_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def undelete_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.undelete_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.undelete_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.undelete_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new AuthorizedView in a table. - # - # @overload create_authorized_view(request, options = nil) - # Pass arguments to `create_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_authorized_view(parent: nil, authorized_view_id: nil, authorized_view: nil) - # Pass arguments to `create_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. This is the name of the table the AuthorizedView belongs to. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param authorized_view_id [::String] - # Required. The id of the AuthorizedView to create. This AuthorizedView must - # not already exist. The `authorized_view_id` appended to `parent` forms the - # full AuthorizedView name of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] - # Required. The AuthorizedView to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new - # - # # Call the create_authorized_view method. - # result = client.create_authorized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_authorized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all AuthorizedViews from a specific table. - # - # @overload list_authorized_views(request, options = nil) - # Pass arguments to `list_authorized_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_authorized_views(parent: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `list_authorized_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the table for which AuthorizedViews should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param page_size [::Integer] - # Optional. Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # Optional. The value of `next_page_token` returned by a previous call. - # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedViews' - # fields. Default to NAME_ONLY. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new - # - # # Call the list_authorized_views method. - # result = client.list_authorized_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - # p item - # end - # - def list_authorized_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_authorized_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_authorized_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_authorized_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_authorized_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_authorized_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information from a specified AuthorizedView. - # - # @overload get_authorized_view(request, options = nil) - # Pass arguments to `get_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_authorized_view(name: nil, view: nil) - # Pass arguments to `get_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedView's - # fields. Default to BASIC. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new - # - # # Call the get_authorized_view method. - # result = client.get_authorized_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - # p result - # - def get_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_authorized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an AuthorizedView in a table. - # - # @overload update_authorized_view(request, options = nil) - # Pass arguments to `update_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_authorized_view(authorized_view: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] - # Required. The AuthorizedView to update. The `name` in `authorized_view` is - # used to identify the AuthorizedView. AuthorizedView name must in this - # format: - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # A mask specifying which fields in the AuthorizedView resource should be - # updated. This mask is relative to the AuthorizedView resource, not to the - # request message. A field will be overwritten if it is in the mask. If - # empty, all fields set in the request will be overwritten. A special value - # `*` means to overwrite all fields (including fields not set in the - # request). - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore the safety checks when updating the - # AuthorizedView. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new - # - # # Call the update_authorized_view method. - # result = client.update_authorized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.authorized_view&.name - header_params["authorized_view.name"] = request.authorized_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_authorized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes a specified AuthorizedView. - # - # @overload delete_authorized_view(request, options = nil) - # Pass arguments to `delete_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_authorized_view(name: nil, etag: nil) - # Pass arguments to `delete_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the AuthorizedView to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param etag [::String] - # Optional. The current etag of the AuthorizedView. - # If an etag is provided and does not match the current etag of the - # AuthorizedView, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new - # - # # Call the delete_authorized_view method. - # result = client.delete_authorized_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_authorized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a series of column family modifications on the specified table. - # Either all or none of the modifications will occur before this method - # returns, but data requests received prior to that point may see a table - # where only some modifications have taken effect. - # - # @overload modify_column_families(request, options = nil) - # Pass arguments to `modify_column_families` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload modify_column_families(name: nil, modifications: nil, ignore_warnings: nil) - # Pass arguments to `modify_column_families` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table whose families should be modified. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param modifications [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, ::Hash>] - # Required. Modifications to be atomically applied to the specified table's - # families. Entries are applied in order, meaning that earlier modifications - # can be masked by later ones (in the case of repeated updates to the same - # family, for example). - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore safety checks when modifying the column families. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new - # - # # Call the modify_column_families method. - # result = client.modify_column_families request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def modify_column_families request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.modify_column_families.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout, - metadata: metadata, - retry_policy: @config.rpcs.modify_column_families.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently drop/delete a row range from a specified table. The request can - # specify whether to delete all rows in a table, or only those that match a - # particular prefix. - # - # @overload drop_row_range(request, options = nil) - # Pass arguments to `drop_row_range` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload drop_row_range(name: nil, row_key_prefix: nil, delete_all_data_from_table: nil) - # Pass arguments to `drop_row_range` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table on which to drop a range of rows. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param row_key_prefix [::String] - # Delete all rows that start with this row key prefix. Prefix cannot be - # zero length. - # - # Note: The following parameters are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param delete_all_data_from_table [::Boolean] - # Delete all rows in the table. Setting this to false is a no-op. - # - # Note: The following parameters are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new - # - # # Call the drop_row_range method. - # result = client.drop_row_range request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def drop_row_range request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.drop_row_range.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout, - metadata: metadata, - retry_policy: @config.rpcs.drop_row_range.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Generates a consistency token for a Table, which can be used in - # CheckConsistency to check whether mutations to the table that finished - # before this call started have been replicated. The tokens will be available - # for 90 days. - # - # @overload generate_consistency_token(request, options = nil) - # Pass arguments to `generate_consistency_token` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_consistency_token(name: nil) - # Pass arguments to `generate_consistency_token` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the Table for which to create a consistency - # token. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new - # - # # Call the generate_consistency_token method. - # result = client.generate_consistency_token request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. - # p result - # - def generate_consistency_token request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_consistency_token.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_consistency_token.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Checks replication consistency based on a consistency token, that is, if - # replication has caught up based on the conditions specified in the token - # and the check request. - # - # @overload check_consistency(request, options = nil) - # Pass arguments to `check_consistency` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload check_consistency(name: nil, consistency_token: nil, standard_read_remote_writes: nil, data_boost_read_local_writes: nil) - # Pass arguments to `check_consistency` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the Table for which to check replication - # consistency. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param consistency_token [::String] - # Required. The token created using GenerateConsistencyToken for the Table. - # @param standard_read_remote_writes [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites, ::Hash] - # Checks that reads using an app profile with `StandardIsolation` can - # see all writes committed before the token was created, even if the - # read and write target different clusters. - # - # Note: The following parameters are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param data_boost_read_local_writes [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites, ::Hash] - # Checks that reads using an app profile with `DataBoostIsolationReadOnly` - # can see all writes committed before the token was created, but only if - # the read and write target the same cluster. - # - # Note: The following parameters are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new - # - # # Call the check_consistency method. - # result = client.check_consistency request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. - # p result - # - def check_consistency request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.check_consistency.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.check_consistency.timeout, - metadata: metadata, - retry_policy: @config.rpcs.check_consistency.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new snapshot in the specified cluster from the specified - # source table. The cluster and the table must be in the same instance. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload snapshot_table(request, options = nil) - # Pass arguments to `snapshot_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload snapshot_table(name: nil, cluster: nil, snapshot_id: nil, ttl: nil, description: nil) - # Pass arguments to `snapshot_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to have the snapshot taken. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param cluster [::String] - # Required. The name of the cluster where the snapshot will be created in. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param snapshot_id [::String] - # Required. The ID by which the new snapshot should be referred to within the - # parent cluster, e.g., `mysnapshot` of the form: - # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - # @param ttl [::Google::Protobuf::Duration, ::Hash] - # The amount of time that the new snapshot can stay active after it is - # created. Once 'ttl' expires, the snapshot will get deleted. The maximum - # amount of time a snapshot can stay active is 7 days. If 'ttl' is not - # specified, the default value of 24 hours will be used. - # @param description [::String] - # Description of the snapshot. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new - # - # # Call the snapshot_table method. - # result = client.snapshot_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def snapshot_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.snapshot_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.snapshot_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified snapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload get_snapshot(request, options = nil) - # Pass arguments to `get_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_snapshot(name: nil) - # Pass arguments to `get_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Snapshot] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new - # - # # Call the get_snapshot method. - # result = client.get_snapshot request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. - # p result - # - def get_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all snapshots associated with the specified cluster. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload list_snapshots(request, options = nil) - # Pass arguments to `list_snapshots` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_snapshots(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_snapshots` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the cluster for which snapshots should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @param page_size [::Integer] - # The maximum number of snapshots to return per page. - # CURRENTLY UNIMPLEMENTED AND IGNORED. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new - # - # # Call the list_snapshots method. - # result = client.list_snapshots request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. - # p item - # end - # - def list_snapshots request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_snapshots.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_snapshots.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_snapshots, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes the specified snapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload delete_snapshot(request, options = nil) - # Pass arguments to `delete_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_snapshot(name: nil) - # Pass arguments to `delete_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the snapshot to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new - # - # # Call the delete_snapshot method. - # result = client.delete_snapshot request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts creating a new Cloud Bigtable Backup. The returned backup - # {::Google::Longrunning::Operation long-running operation} can be used to - # track creation of the backup. The - # {::Google::Longrunning::Operation#metadata metadata} field type is - # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupMetadata CreateBackupMetadata}. The - # {::Google::Longrunning::Operation#response response} field type is - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}, if successful. Cancelling the - # returned operation will stop the creation and delete the backup. - # - # @overload create_backup(request, options = nil) - # Pass arguments to `create_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_backup(parent: nil, backup_id: nil, backup: nil) - # Pass arguments to `create_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. This must be one of the clusters in the instance in which this - # table is located. The backup will be stored in this cluster. Values are - # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param backup_id [::String] - # Required. The id of the backup to be created. The `backup_id` along with - # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create - # the full backup name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] - # Required. The backup to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new - # - # # Call the create_backup method. - # result = client.create_backup request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata on a pending or completed Cloud Bigtable Backup. - # - # @overload get_backup(request, options = nil) - # Pass arguments to `get_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_backup(name: nil) - # Pass arguments to `get_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the backup. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new - # - # # Call the get_backup method. - # result = client.get_backup request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - # p result - # - def get_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a pending or completed Cloud Bigtable Backup. - # - # @overload update_backup(request, options = nil) - # Pass arguments to `update_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_backup(backup: nil, update_mask: nil) - # Pass arguments to `update_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] - # Required. The backup to update. `backup.name`, and the fields to be updated - # as specified by `update_mask` are required. Other fields are ignored. - # Update is only supported for the following fields: - # - # * `backup.expire_time`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. A mask specifying which fields (e.g. `expire_time`) in the - # Backup resource should be updated. This mask is relative to the Backup - # resource, not to the request message. The field mask must always be - # specified; this prevents any future fields from being erased accidentally - # by clients that do not know about them. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new - # - # # Call the update_backup method. - # result = client.update_backup request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - # p result - # - def update_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.backup&.name - header_params["backup.name"] = request.backup.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a pending or completed Cloud Bigtable backup. - # - # @overload delete_backup(request, options = nil) - # Pass arguments to `delete_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_backup(name: nil) - # Pass arguments to `delete_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the backup to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new - # - # # Call the delete_backup method. - # result = client.delete_backup request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Cloud Bigtable backups. Returns both completed and pending - # backups. - # - # @overload list_backups(request, options = nil) - # Pass arguments to `list_backups` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_backups(parent: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_backups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The cluster to list backups from. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list backups for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @param filter [::String] - # A filter expression that filters backups listed in the response. - # The expression must specify the field name, a comparison operator, - # and the value that you want to use for filtering. The value must be a - # string, a number, or a boolean. The comparison operator must be - # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - # roughly synonymous with equality. Filter rules are case insensitive. - # - # The fields eligible for filtering are: - # - # * `name` - # * `source_table` - # * `state` - # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `size_bytes` - # - # To filter on multiple expressions, provide each separate expression within - # parentheses. By default, each expression is an AND expression. However, - # you can include AND, OR, and NOT expressions explicitly. - # - # Some examples of using filters are: - # - # * `name:"exact"` --> The backup's name is the string "exact". - # * `name:howl` --> The backup's name contains the string "howl". - # * `source_table:prod` - # --> The source_table's name contains the string "prod". - # * `state:CREATING` --> The backup is pending creation. - # * `state:READY` --> The backup is fully created and ready for use. - # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - # --> The backup name contains the string "howl" and start_time - # of the backup is before 2018-03-28T14:50:00Z. - # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - # @param order_by [::String] - # An expression for specifying the sort order of the results of the request. - # The string value should specify one or more fields in - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at - # https://aip.dev/132#ordering. - # - # Fields supported are: - # - # * name - # * source_table - # * expire_time - # * start_time - # * end_time - # * size_bytes - # * state - # - # For example, "start_time". The default sorting order is ascending. - # To specify descending order for the field, a suffix " desc" should - # be appended to the field name. For example, "start_time desc". - # Redundant space characters in the syntax are insigificant. - # - # If order_by is empty, results will be sorted by `start_time` in descending - # order starting from the most recently created backup. - # @param page_size [::Integer] - # Number of backups to be returned in the response. If 0 or - # less, defaults to the server's maximum allowed page size. - # @param page_token [::String] - # If non-empty, `page_token` should contain a - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} - # from a previous - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the - # same `parent` and with the same `filter`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new - # - # # Call the list_backups method. - # result = client.list_backups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. - # p item - # end - # - def list_backups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_backups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_backups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_backups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_backups, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new table by restoring from a completed backup. The - # returned table {::Google::Longrunning::Operation long-running operation} can - # be used to track the progress of the operation, and to cancel it. The - # {::Google::Longrunning::Operation#metadata metadata} field type is - # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableMetadata RestoreTableMetadata}. The - # {::Google::Longrunning::Operation#response response} type is - # {::Google::Cloud::Bigtable::Admin::V2::Table Table}, if successful. - # - # @overload restore_table(request, options = nil) - # Pass arguments to `restore_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload restore_table(parent: nil, table_id: nil, backup: nil) - # Pass arguments to `restore_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the instance in which to create the restored - # table. Values are of the form `projects//instances/`. - # @param table_id [::String] - # Required. The id of the table to create and restore to. This - # table must not already exist. The `table_id` appended to - # `parent` forms the full table name of the form - # `projects//instances//tables/`. - # @param backup [::String] - # Name of the backup from which to restore. Values are of the form - # `projects//instances//clusters//backups/`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new - # - # # Call the restore_table method. - # result = client.restore_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def restore_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.restore_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.restore_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.restore_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Copy a Cloud Bigtable backup to a new backup in the destination cluster - # located in the destination instance and project. - # - # @overload copy_backup(request, options = nil) - # Pass arguments to `copy_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload copy_backup(parent: nil, backup_id: nil, source_backup: nil, expire_time: nil) - # Pass arguments to `copy_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the destination cluster that will contain the backup - # copy. The cluster must already exist. Values are of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param backup_id [::String] - # Required. The id of the new backup. The `backup_id` along with `parent` - # are combined as \\{parent}/backups/\\{backup_id} to create the full backup - # name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @param source_backup [::String] - # Required. The source backup to be copied from. - # The source backup needs to be in READY state for it to be copied. - # Copying a copied backup is not allowed. - # Once CopyBackup is in progress, the source backup cannot be deleted or - # cleaned up on expiration until CopyBackup is finished. - # Values are of the form: - # `projects//instances//clusters//backups/`. - # @param expire_time [::Google::Protobuf::Timestamp, ::Hash] - # Required. Required. The expiration time of the copied backup with - # microsecond granularity that must be at least 6 hours and at most 30 days - # from the time the request is received. Once the `expire_time` has - # passed, Cloud Bigtable will delete the backup and free the resources used - # by the backup. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new - # - # # Call the copy_backup method. - # result = client.copy_backup request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def copy_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.copy_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.copy_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.copy_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :copy_backup, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a Bigtable resource. - # Returns an empty policy if the resource exists but does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on a Bigtable resource. - # Replaces any existing policy. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns permissions that the caller has on the specified Bigtable - # resource. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new schema bundle in the specified table. - # - # @overload create_schema_bundle(request, options = nil) - # Pass arguments to `create_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_schema_bundle(parent: nil, schema_bundle_id: nil, schema_bundle: nil) - # Pass arguments to `create_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this schema bundle will be created. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param schema_bundle_id [::String] - # Required. The unique ID to use for the schema bundle, which will become the - # final component of the schema bundle's resource name. - # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] - # Required. The schema bundle to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new - # - # # Call the create_schema_bundle method. - # result = client.create_schema_bundle request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_schema_bundle, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a schema bundle in the specified table. - # - # @overload update_schema_bundle(request, options = nil) - # Pass arguments to `update_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_schema_bundle(schema_bundle: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] - # Required. The schema bundle to update. - # - # The schema bundle's `name` field is used to identify the schema bundle to - # update. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # @param ignore_warnings [::Boolean] - # Optional. If set, ignore the safety checks when updating the Schema Bundle. - # The safety checks are: - # - The new Schema Bundle is backwards compatible with the existing Schema - # Bundle. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new - # - # # Call the update_schema_bundle method. - # result = client.update_schema_bundle request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.schema_bundle&.name - header_params["schema_bundle.name"] = request.schema_bundle.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_schema_bundle, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified schema bundle. - # - # @overload get_schema_bundle(request, options = nil) - # Pass arguments to `get_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_schema_bundle(name: nil) - # Pass arguments to `get_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the schema bundle to retrieve. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new - # - # # Call the get_schema_bundle method. - # result = client.get_schema_bundle request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - # p result - # - def get_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_schema_bundle, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all schema bundles associated with the specified table. - # - # @overload list_schema_bundles(request, options = nil) - # Pass arguments to `list_schema_bundles` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_schema_bundles(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_schema_bundles` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent, which owns this collection of schema bundles. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param page_size [::Integer] - # The maximum number of schema bundles to return. If the value is positive, - # the server may return at most this value. If unspecified, the server will - # return the maximum allowed page size. - # @param page_token [::String] - # A page token, received from a previous `ListSchemaBundles` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListSchemaBundles` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new - # - # # Call the list_schema_bundles method. - # result = client.list_schema_bundles request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - # p item - # end - # - def list_schema_bundles request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_schema_bundles.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_schema_bundles.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_schema_bundles.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_schema_bundles, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_schema_bundles, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a schema bundle in the specified table. - # - # @overload delete_schema_bundle(request, options = nil) - # Pass arguments to `delete_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_schema_bundle(name: nil, etag: nil) - # Pass arguments to `delete_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the schema bundle to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @param etag [::String] - # Optional. The etag of the schema bundle. - # If this is provided, it must match the server's etag. The server - # returns an ABORTED error on a mismatched etag. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new - # - # # Call the delete_schema_bundle method. - # result = client.delete_schema_bundle request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_schema_bundle, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the BigtableTableAdmin API. - # - # This class represents the configuration for BigtableTableAdmin, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_table to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_table.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_table.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BigtableTableAdmin API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_table` - # @return [::Gapic::Config::Method] - # - attr_reader :create_table - ## - # RPC-specific configuration for `create_table_from_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :create_table_from_snapshot - ## - # RPC-specific configuration for `list_tables` - # @return [::Gapic::Config::Method] - # - attr_reader :list_tables - ## - # RPC-specific configuration for `get_table` - # @return [::Gapic::Config::Method] - # - attr_reader :get_table - ## - # RPC-specific configuration for `update_table` - # @return [::Gapic::Config::Method] - # - attr_reader :update_table - ## - # RPC-specific configuration for `delete_table` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_table - ## - # RPC-specific configuration for `undelete_table` - # @return [::Gapic::Config::Method] - # - attr_reader :undelete_table - ## - # RPC-specific configuration for `create_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_authorized_view - ## - # RPC-specific configuration for `list_authorized_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_authorized_views - ## - # RPC-specific configuration for `get_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_authorized_view - ## - # RPC-specific configuration for `update_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_authorized_view - ## - # RPC-specific configuration for `delete_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_authorized_view - ## - # RPC-specific configuration for `modify_column_families` - # @return [::Gapic::Config::Method] - # - attr_reader :modify_column_families - ## - # RPC-specific configuration for `drop_row_range` - # @return [::Gapic::Config::Method] - # - attr_reader :drop_row_range - ## - # RPC-specific configuration for `generate_consistency_token` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_consistency_token - ## - # RPC-specific configuration for `check_consistency` - # @return [::Gapic::Config::Method] - # - attr_reader :check_consistency - ## - # RPC-specific configuration for `snapshot_table` - # @return [::Gapic::Config::Method] - # - attr_reader :snapshot_table - ## - # RPC-specific configuration for `get_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :get_snapshot - ## - # RPC-specific configuration for `list_snapshots` - # @return [::Gapic::Config::Method] - # - attr_reader :list_snapshots - ## - # RPC-specific configuration for `delete_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_snapshot - ## - # RPC-specific configuration for `create_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :create_backup - ## - # RPC-specific configuration for `get_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :get_backup - ## - # RPC-specific configuration for `update_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :update_backup - ## - # RPC-specific configuration for `delete_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_backup - ## - # RPC-specific configuration for `list_backups` - # @return [::Gapic::Config::Method] - # - attr_reader :list_backups - ## - # RPC-specific configuration for `restore_table` - # @return [::Gapic::Config::Method] - # - attr_reader :restore_table - ## - # RPC-specific configuration for `copy_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :copy_backup - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - ## - # RPC-specific configuration for `create_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :create_schema_bundle - ## - # RPC-specific configuration for `update_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :update_schema_bundle - ## - # RPC-specific configuration for `get_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :get_schema_bundle - ## - # RPC-specific configuration for `list_schema_bundles` - # @return [::Gapic::Config::Method] - # - attr_reader :list_schema_bundles - ## - # RPC-specific configuration for `delete_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_schema_bundle - - # @private - def initialize parent_rpcs = nil - create_table_config = parent_rpcs.create_table if parent_rpcs.respond_to? :create_table - @create_table = ::Gapic::Config::Method.new create_table_config - create_table_from_snapshot_config = parent_rpcs.create_table_from_snapshot if parent_rpcs.respond_to? :create_table_from_snapshot - @create_table_from_snapshot = ::Gapic::Config::Method.new create_table_from_snapshot_config - list_tables_config = parent_rpcs.list_tables if parent_rpcs.respond_to? :list_tables - @list_tables = ::Gapic::Config::Method.new list_tables_config - get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table - @get_table = ::Gapic::Config::Method.new get_table_config - update_table_config = parent_rpcs.update_table if parent_rpcs.respond_to? :update_table - @update_table = ::Gapic::Config::Method.new update_table_config - delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table - @delete_table = ::Gapic::Config::Method.new delete_table_config - undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table - @undelete_table = ::Gapic::Config::Method.new undelete_table_config - create_authorized_view_config = parent_rpcs.create_authorized_view if parent_rpcs.respond_to? :create_authorized_view - @create_authorized_view = ::Gapic::Config::Method.new create_authorized_view_config - list_authorized_views_config = parent_rpcs.list_authorized_views if parent_rpcs.respond_to? :list_authorized_views - @list_authorized_views = ::Gapic::Config::Method.new list_authorized_views_config - get_authorized_view_config = parent_rpcs.get_authorized_view if parent_rpcs.respond_to? :get_authorized_view - @get_authorized_view = ::Gapic::Config::Method.new get_authorized_view_config - update_authorized_view_config = parent_rpcs.update_authorized_view if parent_rpcs.respond_to? :update_authorized_view - @update_authorized_view = ::Gapic::Config::Method.new update_authorized_view_config - delete_authorized_view_config = parent_rpcs.delete_authorized_view if parent_rpcs.respond_to? :delete_authorized_view - @delete_authorized_view = ::Gapic::Config::Method.new delete_authorized_view_config - modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families - @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config - drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range - @drop_row_range = ::Gapic::Config::Method.new drop_row_range_config - generate_consistency_token_config = parent_rpcs.generate_consistency_token if parent_rpcs.respond_to? :generate_consistency_token - @generate_consistency_token = ::Gapic::Config::Method.new generate_consistency_token_config - check_consistency_config = parent_rpcs.check_consistency if parent_rpcs.respond_to? :check_consistency - @check_consistency = ::Gapic::Config::Method.new check_consistency_config - snapshot_table_config = parent_rpcs.snapshot_table if parent_rpcs.respond_to? :snapshot_table - @snapshot_table = ::Gapic::Config::Method.new snapshot_table_config - get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot - @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config - list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots - @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config - delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot - @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config - create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup - @create_backup = ::Gapic::Config::Method.new create_backup_config - get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup - @get_backup = ::Gapic::Config::Method.new get_backup_config - update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup - @update_backup = ::Gapic::Config::Method.new update_backup_config - delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup - @delete_backup = ::Gapic::Config::Method.new delete_backup_config - list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups - @list_backups = ::Gapic::Config::Method.new list_backups_config - restore_table_config = parent_rpcs.restore_table if parent_rpcs.respond_to? :restore_table - @restore_table = ::Gapic::Config::Method.new restore_table_config - copy_backup_config = parent_rpcs.copy_backup if parent_rpcs.respond_to? :copy_backup - @copy_backup = ::Gapic::Config::Method.new copy_backup_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - create_schema_bundle_config = parent_rpcs.create_schema_bundle if parent_rpcs.respond_to? :create_schema_bundle - @create_schema_bundle = ::Gapic::Config::Method.new create_schema_bundle_config - update_schema_bundle_config = parent_rpcs.update_schema_bundle if parent_rpcs.respond_to? :update_schema_bundle - @update_schema_bundle = ::Gapic::Config::Method.new update_schema_bundle_config - get_schema_bundle_config = parent_rpcs.get_schema_bundle if parent_rpcs.respond_to? :get_schema_bundle - @get_schema_bundle = ::Gapic::Config::Method.new get_schema_bundle_config - list_schema_bundles_config = parent_rpcs.list_schema_bundles if parent_rpcs.respond_to? :list_schema_bundles - @list_schema_bundles = ::Gapic::Config::Method.new list_schema_bundles_config - delete_schema_bundle_config = parent_rpcs.delete_schema_bundle if parent_rpcs.respond_to? :delete_schema_bundle - @delete_schema_bundle = ::Gapic::Config::Method.new delete_schema_bundle_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb deleted file mode 100644 index b13ab97ad469..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Credentials for the BigtableTableAdmin API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.table", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.table", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - self.env_vars = [ - "BIGTABLE_CREDENTIALS", - "BIGTABLE_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "BIGTABLE_CREDENTIALS_JSON", - "BIGTABLE_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb deleted file mode 100644 index ad9957f0f690..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +++ /dev/null @@ -1,843 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the BigtableTableAdmin Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableTableAdmin Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb deleted file mode 100644 index c10bcef1999e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb +++ /dev/null @@ -1,214 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Path helper methods for the BigtableTableAdmin API. - module Paths - ## - # Create a fully-qualified AuthorizedView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # @param authorized_view [String] - # - # @return [::String] - def authorized_view_path project:, instance:, table:, authorized_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}/authorizedViews/#{authorized_view}" - end - - ## - # Create a fully-qualified Backup resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # @param backup [String] - # - # @return [::String] - def backup_path project:, instance:, cluster:, backup: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}" - end - - ## - # Create a fully-qualified Cluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # - # @return [::String] - def cluster_path project:, instance:, cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}" - end - - ## - # Create a fully-qualified CryptoKeyVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # @param crypto_key_version [String] - # - # @return [::String] - def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" - end - - ## - # Create a fully-qualified Instance resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}` - # - # @param project [String] - # @param instance [String] - # - # @return [::String] - def instance_path project:, instance: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/instances/#{instance}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified SchemaBundle resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # @param schema_bundle [String] - # - # @return [::String] - def schema_bundle_path project:, instance:, table:, schema_bundle: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}/schemaBundles/#{schema_bundle}" - end - - ## - # Create a fully-qualified Snapshot resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # @param snapshot [String] - # - # @return [::String] - def snapshot_path project:, instance:, cluster:, snapshot: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}" - end - - ## - # Create a fully-qualified Table resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # - # @return [::String] - def table_path project:, instance:, table: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb deleted file mode 100644 index b19e81c131f7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - VERSION = "0.0.1" - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md deleted file mode 100644 index 2968913b938d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Cloud Bigtable Admin V2 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb deleted file mode 100644 index d59ba51a5612..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb +++ /dev/null @@ -1,473 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb deleted file mode 100644 index a39e72495e1c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb +++ /dev/null @@ -1,767 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Request message for BigtableInstanceAdmin.CreateInstance. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the project in which to create the new - # instance. Values are of the form `projects/{project}`. - # @!attribute [rw] instance_id - # @return [::String] - # Required. The ID to be used when referring to the new instance within its - # project, e.g., just `myinstance` rather than - # `projects/myproject/instances/myinstance`. - # @!attribute [rw] instance - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # Required. The instance to create. - # Fields marked `OutputOnly` must be left blank. - # @!attribute [rw] clusters - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster}] - # Required. The clusters to be created within the instance, mapped by desired - # cluster ID, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # Fields marked `OutputOnly` must be left blank. - class CreateInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - class ClustersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for BigtableInstanceAdmin.GetInstance. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested instance. Values are of the form - # `projects/{project}/instances/{instance}`. - class GetInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListInstances. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the project for which a list of instances is - # requested. Values are of the form `projects/{project}`. - # @!attribute [rw] page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListInstancesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListInstances. - # @!attribute [rw] instances - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Instance>] - # The list of requested instances. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which Instance information could not be retrieved, - # due to an outage or some other transient condition. - # Instances whose Clusters are all in one of the failed locations - # may be missing from `instances`, and Instances with at least one - # Cluster in a failed location may only have partial information returned. - # Values are of the form `projects//locations/` - # @!attribute [rw] next_page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListInstancesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.PartialUpdateInstance. - # @!attribute [rw] instance - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # Required. The Instance which will (partially) replace the current value. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of Instance fields which should be replaced. - # Must be explicitly set. - class PartialUpdateInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteInstance. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the instance to be deleted. - # Values are of the form `projects/{project}/instances/{instance}`. - class DeleteInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateCluster. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the new - # cluster. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] cluster_id - # @return [::String] - # Required. The ID to be used when referring to the new cluster within its - # instance, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # @!attribute [rw] cluster - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # Required. The cluster to be created. - # Fields marked `OutputOnly` must be left blank. - class CreateClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetCluster. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - class GetClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListClusters. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which a list of clusters is - # requested. Values are of the form - # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - # Clusters for all Instances in a project, e.g., - # `projects/myproject/instances/-`. - # @!attribute [rw] page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListClustersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListClusters. - # @!attribute [rw] clusters - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Cluster>] - # The list of requested clusters. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which Cluster information could not be retrieved, - # due to an outage or some other transient condition. - # Clusters from these locations may be missing from `clusters`, - # or may only have partial information returned. - # Values are of the form `projects//locations/` - # @!attribute [rw] next_page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListClustersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteCluster. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the cluster to be deleted. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - class DeleteClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateInstance. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest] - # The request that prompted the initiation of this CreateInstance operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateInstanceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateInstance. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest] - # The request that prompted the initiation of this UpdateInstance operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateInstanceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateCluster. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest] - # The request that prompted the initiation of this CreateCluster operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - # @!attribute [rw] tables - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress}] - # Keys: the full `name` of each table that existed in the instance when - # CreateCluster was first called, i.e. - # `projects//instances//tables/
`. Any table added - # to the instance by a later API call will be created in the new cluster by - # that API call, not this one. - # - # Values: information on how much of a table's data has been copied to the - # newly-created cluster so far. - class CreateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Progress info for copying a table's data to the new cluster. - # @!attribute [rw] estimated_size_bytes - # @return [::Integer] - # Estimate of the size of the table to be copied. - # @!attribute [rw] estimated_copied_bytes - # @return [::Integer] - # Estimate of the number of bytes copied so far for this table. - # This will eventually reach 'estimated_size_bytes' unless the table copy - # is CANCELLED. - # @!attribute [rw] state - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress::State] - class TableProgress - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - module State - STATE_UNSPECIFIED = 0 - - # The table has not yet begun copying to the new cluster. - PENDING = 1 - - # The table is actively being copied to the new cluster. - COPYING = 2 - - # The table has been fully copied to the new cluster. - COMPLETED = 3 - - # The table was deleted before it finished copying to the new cluster. - # Note that tables deleted after completion will stay marked as - # COMPLETED, not CANCELLED. - CANCELLED = 4 - end - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress] - class TablesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The metadata for the Operation returned by UpdateCluster. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # The request that prompted the initiation of this UpdateCluster operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by PartialUpdateCluster. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest] - # The original request for PartialUpdateCluster. - class PartialUpdateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.PartialUpdateCluster. - # @!attribute [rw] cluster - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # Required. The Cluster which contains the partial updates to be applied, - # subject to the update_mask. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of Cluster fields which should be replaced. - class PartialUpdateClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateAppProfile. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the new app - # profile. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] app_profile_id - # @return [::String] - # Required. The ID to be used when referring to the new app profile within - # its instance, e.g., just `myprofile` rather than - # `projects/myproject/instances/myinstance/appProfiles/myprofile`. - # @!attribute [rw] app_profile - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # Required. The app profile to be created. - # Fields marked `OutputOnly` will be ignored. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # If true, ignore safety checks when creating the app profile. - class CreateAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetAppProfile. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested app profile. Values are of the - # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - class GetAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListAppProfiles. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which a list of app profiles - # is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - # e.g., `projects/myproject/instances/-`. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListAppProfilesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListAppProfiles. - # @!attribute [rw] app_profiles - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # The list of requested app profiles. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all app profiles could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which AppProfile information could not be retrieved, - # due to an outage or some other transient condition. - # AppProfiles from these locations may be missing from `app_profiles`. - # Values are of the form `projects//locations/` - class ListAppProfilesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateAppProfile. - # @!attribute [rw] app_profile - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # Required. The app profile which will (partially) replace the current value. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of app profile fields which should be replaced. - # If unset, all fields will be replaced. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # If true, ignore safety checks when updating the app profile. - class UpdateAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteAppProfile. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the app profile to be deleted. Values are of - # the form - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Required. If true, ignore safety checks when deleting the app profile. - class DeleteAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateAppProfile. - class UpdateAppProfileMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListHotTablets. - # @!attribute [rw] parent - # @return [::String] - # Required. The cluster name to list hot tablets. - # Value is in the following form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The start time to list hot tablets. The hot tablets in the response will - # have start times between the requested start time and end time. Start time - # defaults to Now if it is unset, and end time defaults to Now - 24 hours if - # it is unset. The start time should be less than the end time, and the - # maximum allowed time range between start time and end time is 48 hours. - # Start time and end time should have values between Now and Now - 14 days. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # The end time to list hot tablets. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size that is empty or zero lets the server choose the number of - # items to return. A page_size which is strictly positive will return at most - # that many items. A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls do not need a - # page_size field. If a page_size is set in subsequent calls, it must match - # the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListHotTabletsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListHotTablets. - # @!attribute [rw] hot_tablets - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # List of hot tablets in the tables of the requested cluster that fall - # within the requested time range. Hot tablets are ordered by node cpu usage - # percent. If there are multiple hot tablets that correspond to the same - # tablet within a 15-minute interval, only the hot tablet with the highest - # node cpu usage will be included in the response. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all hot tablets could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListHotTabletsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateLogicalView. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent instance where this logical view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @!attribute [rw] logical_view_id - # @return [::String] - # Required. The ID to use for the logical view, which will become the final - # component of the logical view's resource name. - # @!attribute [rw] logical_view - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # Required. The logical view to create. - class CreateLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateLogicalView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest] - # The request that prompted the initiation of this CreateLogicalView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateLogicalViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetLogicalView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested logical view. Values are of the - # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - class GetLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListLogicalViews. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which the list of logical - # views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of logical views to return. The service may - # return fewer than this value - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListLogicalViews` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListLogicalViews` must - # match the call that provided the page token. - class ListLogicalViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListLogicalViews. - # @!attribute [rw] logical_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # The list of requested logical views. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListLogicalViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateLogicalView. - # @!attribute [rw] logical_view - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # Required. The logical view to update. - # - # The logical view's `name` field is used to identify the view to update. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - class UpdateLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateLogicalView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest] - # The request that prompted the initiation of this UpdateLogicalView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation was started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateLogicalViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteLogicalView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the logical view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the logical view. - # If an etag is provided and does not match the current etag of the - # logical view, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateMaterializedView. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent instance where this materialized view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @!attribute [rw] materialized_view_id - # @return [::String] - # Required. The ID to use for the materialized view, which will become the - # final component of the materialized view's resource name. - # @!attribute [rw] materialized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # Required. The materialized view to create. - class CreateMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateMaterializedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest] - # The request that prompted the initiation of this CreateMaterializedView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateMaterializedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetMaterializedView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested materialized view. Values are of - # the form - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - class GetMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListMaterializedViews. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which the list of - # materialized views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of materialized views to return. The service - # may return fewer than this value - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListMaterializedViews` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListMaterializedViews` - # must match the call that provided the page token. - class ListMaterializedViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListMaterializedViews. - # @!attribute [rw] materialized_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # The list of requested materialized views. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListMaterializedViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateMaterializedView. - # @!attribute [rw] materialized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # Required. The materialized view to update. - # - # The materialized view's `name` field is used to identify the view to - # update. Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - class UpdateMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateMaterializedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest] - # The request that prompted the initiation of this UpdateMaterializedView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation was started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateMaterializedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteMaterializedView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the materialized view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the materialized view. - # If an etag is provided and does not match the current etag of the - # materialized view, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb deleted file mode 100644 index cde156ec6152..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb +++ /dev/null @@ -1,1167 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the instance in which to create the restored - # table. Values are of the form `projects//instances/`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The id of the table to create and restore to. This - # table must not already exist. The `table_id` appended to - # `parent` forms the full table name of the form - # `projects//instances//tables/`. - # @!attribute [rw] backup - # @return [::String] - # Name of the backup from which to restore. Values are of the form - # `projects//instances//clusters//backups/`. - class RestoreTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the long-running operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. - # @!attribute [rw] name - # @return [::String] - # Name of the table being created and restored to. - # @!attribute [rw] source_type - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] - # The type of the restore source. - # @!attribute [rw] backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # @!attribute [rw] optimize_table_operation_name - # @return [::String] - # If exists, the name of the long-running operation that will be used to - # track the post-restore optimization process to optimize the performance of - # the restored table. The metadata type of the long-running operation is - # [OptimizeRestoreTableMetadata][]. The response type is - # {::Google::Protobuf::Empty Empty}. This long-running operation may be - # automatically created by the system if applicable after the - # RestoreTable long-running operation completes successfully. This operation - # may not be created if the table is already optimized or the restore was - # not successful. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable} - # operation. - class RestoreTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the long-running operation used to track the progress - # of optimizations performed on a newly restored table. This long-running - # operation is automatically created by the system after the successful - # completion of a table restore, and cannot be cancelled. - # @!attribute [rw] name - # @return [::String] - # Name of the restored table being optimized. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the post-restore optimizations. - class OptimizeRestoredTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table google.bigtable.admin.v2.BigtableTableAdmin.CreateTable} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # Maximum 50 characters. - # @!attribute [rw] table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Required. The Table to create. - # @!attribute [rw] initial_splits - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>] - # The optional list of row keys that will be used to initially split the - # table into several tablets (tablets are similar to HBase regions). - # Given two split keys, `s1` and `s2`, three tablets will be created, - # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - # - # Example: - # - # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - # `"other", "zz"]` - # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - # * Key assignment: - # - Tablet 1 `[, apple) => {"a"}.` - # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - # - Tablet 4 `[customer_2, other) => {"customer_2"}.` - # - Tablet 5 `[other, ) => {"other", "zz"}.` - class CreateTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # An initial split point for a newly created table. - # @!attribute [rw] key - # @return [::String] - # Row key to use as an initial tablet boundary. - class Split - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # @!attribute [rw] source_snapshot - # @return [::String] - # Required. The unique name of the snapshot from which to restore the table. - # The snapshot and the table must be in the same instance. Values are of the - # form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class CreateTableFromSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table on which to drop a range of rows. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] row_key_prefix - # @return [::String] - # Delete all rows that start with this row key prefix. Prefix cannot be - # zero length. - # - # Note: The following fields are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delete_all_data_from_table - # @return [::Boolean] - # Delete all rows in the table. Setting this to false is a no-op. - # - # Note: The following fields are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class DropRowRangeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which tables should be - # listed. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned tables' fields. - # NAME_ONLY view (default) and REPLICATION_VIEW are supported. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListTablesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} - # @!attribute [rw] tables - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Table>] - # The tables present in the requested instance. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all tables could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListTablesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table google.bigtable.admin.v2.BigtableTableAdmin.GetTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested table. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned table's fields. - # Defaults to `SCHEMA_VIEW` if unspecified. - class GetTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. - # @!attribute [rw] table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Required. The table to update. - # The table's `name` field is used to identify the table to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to update. - # A mask specifying which fields (e.g. `change_stream_config`) in the `table` - # field should be updated. This mask is relative to the `table` field, not to - # the request message. The wildcard (*) path is currently not supported. - # Currently UpdateTable is only supported for the following fields: - # - # * `change_stream_config` - # * `change_stream_config.retention_period` - # * `deletion_protection` - # * `row_key_schema` - # - # If `column_families` is set in `update_mask`, it will return an - # UNIMPLEMENTED error. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore safety checks when updating the table. - class UpdateTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. - # @!attribute [rw] name - # @return [::String] - # The name of the table being updated. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class DeleteTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to be restored. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class UndeleteTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}. - # @!attribute [rw] name - # @return [::String] - # The name of the table being restored. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was cancelled. - class UndeleteTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table whose families should be modified. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] modifications - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>] - # Required. Modifications to be atomically applied to the specified table's - # families. Entries are applied in order, meaning that earlier modifications - # can be masked by later ones (in the case of repeated updates to the same - # family, for example). - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore safety checks when modifying the column families. - class ModifyColumnFamiliesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A create, update, or delete of a particular column family. - # @!attribute [rw] id - # @return [::String] - # The ID of the column family to be modified. - # @!attribute [rw] create - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - # Create a new column family with the specified schema, or fail if - # one already exists with the given ID. - # - # Note: The following fields are mutually exclusive: `create`, `update`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] update - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - # Update an existing column family to the specified schema, or fail - # if no column family exists with the given ID. - # - # Note: The following fields are mutually exclusive: `update`, `create`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] drop - # @return [::Boolean] - # Drop (delete) the column family with the given ID, or fail if no such - # family exists. - # - # Note: The following fields are mutually exclusive: `drop`, `create`, `update`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` - # mod should be updated, ignored for other modification types. If unset or - # empty, we treat it as updating `gc_rule` to be backward compatible. - class Modification - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the Table for which to create a consistency - # token. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class GenerateConsistencyTokenRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} - # @!attribute [rw] consistency_token - # @return [::String] - # The generated consistency token. - class GenerateConsistencyTokenResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the Table for which to check replication - # consistency. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] consistency_token - # @return [::String] - # Required. The token created using GenerateConsistencyToken for the Table. - # @!attribute [rw] standard_read_remote_writes - # @return [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites] - # Checks that reads using an app profile with `StandardIsolation` can - # see all writes committed before the token was created, even if the - # read and write target different clusters. - # - # Note: The following fields are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_boost_read_local_writes - # @return [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites] - # Checks that reads using an app profile with `DataBoostIsolationReadOnly` - # can see all writes committed before the token was created, but only if - # the read and write target the same cluster. - # - # Note: The following fields are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class CheckConsistencyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Checks that all writes before the consistency token was generated are - # replicated in every cluster and readable. - class StandardReadRemoteWrites - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Checks that all writes before the consistency token was generated in the same - # cluster are readable by Databoost. - class DataBoostReadLocalWrites - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} - # @!attribute [rw] consistent - # @return [::Boolean] - # True only if the token is consistent. A token is consistent if replication - # has caught up with the restrictions specified in the request. - class CheckConsistencyResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to have the snapshot taken. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] cluster - # @return [::String] - # Required. The name of the cluster where the snapshot will be created in. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] snapshot_id - # @return [::String] - # Required. The ID by which the new snapshot should be referred to within the - # parent cluster, e.g., `mysnapshot` of the form: - # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - # @!attribute [rw] ttl - # @return [::Google::Protobuf::Duration] - # The amount of time that the new snapshot can stay active after it is - # created. Once 'ttl' expires, the snapshot will get deleted. The maximum - # amount of time a snapshot can stay active is 7 days. If 'ttl' is not - # specified, the default value of 24 hours will be used. - # @!attribute [rw] description - # @return [::String] - # Description of the snapshot. - class SnapshotTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class GetSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the cluster for which snapshots should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of snapshots to return per page. - # CURRENTLY UNIMPLEMENTED AND IGNORED. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListSnapshotsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] snapshots - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # The snapshots present in the requested cluster. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all snapshots could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListSnapshotsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the snapshot to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class DeleteSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by SnapshotTable. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest] - # The request that prompted the initiation of this SnapshotTable operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class SnapshotTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateTableFromSnapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest] - # The request that prompted the initiation of this CreateTableFromSnapshot - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateTableFromSnapshotMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. - # @!attribute [rw] parent - # @return [::String] - # Required. This must be one of the clusters in the instance in which this - # table is located. The backup will be stored in this cluster. Values are - # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] backup_id - # @return [::String] - # Required. The id of the backup to be created. The `backup_id` along with - # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create - # the full backup name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @!attribute [rw] backup - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # Required. The backup to create. - class CreateBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. - # @!attribute [rw] name - # @return [::String] - # The name of the backup being created. - # @!attribute [rw] source_table - # @return [::String] - # The name of the table the backup is created from. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was cancelled. - class CreateBackupMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup UpdateBackup}. - # @!attribute [rw] backup - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # Required. The backup to update. `backup.name`, and the fields to be updated - # as specified by `update_mask` are required. Other fields are ignored. - # Update is only supported for the following fields: - # - # * `backup.expire_time`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. A mask specifying which fields (e.g. `expire_time`) in the - # Backup resource should be updated. This mask is relative to the Backup - # resource, not to the request message. The field mask must always be - # specified; this prevents any future fields from being erased accidentally - # by clients that do not know about them. - class UpdateBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup GetBackup}. - # @!attribute [rw] name - # @return [::String] - # Required. Name of the backup. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - class GetBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup DeleteBackup}. - # @!attribute [rw] name - # @return [::String] - # Required. Name of the backup to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - class DeleteBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. - # @!attribute [rw] parent - # @return [::String] - # Required. The cluster to list backups from. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list backups for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @!attribute [rw] filter - # @return [::String] - # A filter expression that filters backups listed in the response. - # The expression must specify the field name, a comparison operator, - # and the value that you want to use for filtering. The value must be a - # string, a number, or a boolean. The comparison operator must be - # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - # roughly synonymous with equality. Filter rules are case insensitive. - # - # The fields eligible for filtering are: - # - # * `name` - # * `source_table` - # * `state` - # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `size_bytes` - # - # To filter on multiple expressions, provide each separate expression within - # parentheses. By default, each expression is an AND expression. However, - # you can include AND, OR, and NOT expressions explicitly. - # - # Some examples of using filters are: - # - # * `name:"exact"` --> The backup's name is the string "exact". - # * `name:howl` --> The backup's name contains the string "howl". - # * `source_table:prod` - # --> The source_table's name contains the string "prod". - # * `state:CREATING` --> The backup is pending creation. - # * `state:READY` --> The backup is fully created and ready for use. - # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - # --> The backup name contains the string "howl" and start_time - # of the backup is before 2018-03-28T14:50:00Z. - # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - # @!attribute [rw] order_by - # @return [::String] - # An expression for specifying the sort order of the results of the request. - # The string value should specify one or more fields in - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at - # https://aip.dev/132#ordering. - # - # Fields supported are: - # - # * name - # * source_table - # * expire_time - # * start_time - # * end_time - # * size_bytes - # * state - # - # For example, "start_time". The default sorting order is ascending. - # To specify descending order for the field, a suffix " desc" should - # be appended to the field name. For example, "start_time desc". - # Redundant space characters in the syntax are insigificant. - # - # If order_by is empty, results will be sorted by `start_time` in descending - # order starting from the most recently created backup. - # @!attribute [rw] page_size - # @return [::Integer] - # Number of backups to be returned in the response. If 0 or - # less, defaults to the server's maximum allowed page size. - # @!attribute [rw] page_token - # @return [::String] - # If non-empty, `page_token` should contain a - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} - # from a previous - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the - # same `parent` and with the same `filter`. - class ListBackupsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. - # @!attribute [rw] backups - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # The list of matching backups. - # @!attribute [rw] next_page_token - # @return [::String] - # `next_page_token` can be sent in a subsequent - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups} call - # to fetch more of the matching backups. - class ListBackupsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the destination cluster that will contain the backup - # copy. The cluster must already exist. Values are of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] backup_id - # @return [::String] - # Required. The id of the new backup. The `backup_id` along with `parent` - # are combined as \\{parent}/backups/\\{backup_id} to create the full backup - # name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @!attribute [rw] source_backup - # @return [::String] - # Required. The source backup to be copied from. - # The source backup needs to be in READY state for it to be copied. - # Copying a copied backup is not allowed. - # Once CopyBackup is in progress, the source backup cannot be deleted or - # cleaned up on expiration until CopyBackup is finished. - # Values are of the form: - # `projects//instances//clusters//backups/`. - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # Required. Required. The expiration time of the copied backup with - # microsecond granularity that must be at least 6 hours and at most 30 days - # from the time the request is received. Once the `expire_time` has - # passed, Cloud Bigtable will delete the backup and free the resources used - # by the backup. - class CopyBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the google.longrunning.Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. - # @!attribute [rw] name - # @return [::String] - # The name of the backup being created through the copy operation. - # Values are of the form - # `projects//instances//clusters//backups/`. - # @!attribute [rw] source_backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # Information about the source backup that is being copied from. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup} - # operation. - class CopyBackupMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view CreateAuthorizedView} - # @!attribute [rw] parent - # @return [::String] - # Required. This is the name of the table the AuthorizedView belongs to. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] authorized_view_id - # @return [::String] - # Required. The id of the AuthorizedView to create. This AuthorizedView must - # not already exist. The `authorized_view_id` appended to `parent` forms the - # full AuthorizedView name of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - # @!attribute [rw] authorized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # Required. The AuthorizedView to create. - class CreateAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateAuthorizedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest] - # The request that prompted the initiation of this CreateAuthorizedView - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateAuthorizedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the table for which AuthorizedViews should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # Optional. The value of `next_page_token` returned by a previous call. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedViews' - # fields. Default to NAME_ONLY. - class ListAuthorizedViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} - # @!attribute [rw] authorized_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # The AuthorizedViews present in the requested table. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all tables could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListAuthorizedViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedView's - # fields. Default to BASIC. - class GetAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. - # @!attribute [rw] authorized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # Required. The AuthorizedView to update. The `name` in `authorized_view` is - # used to identify the AuthorizedView. AuthorizedView name must in this - # format: - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - # A mask specifying which fields in the AuthorizedView resource should be - # updated. This mask is relative to the AuthorizedView resource, not to the - # request message. A field will be overwritten if it is in the mask. If - # empty, all fields set in the request will be overwritten. A special value - # `*` means to overwrite all fields (including fields not set in the - # request). - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore the safety checks when updating the - # AuthorizedView. - class UpdateAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for the google.longrunning.Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest] - # The request that prompted the initiation of this UpdateAuthorizedView - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateAuthorizedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the AuthorizedView to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the AuthorizedView. - # If an etag is provided and does not match the current etag of the - # AuthorizedView, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource where this schema bundle will be created. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # Required. The unique ID to use for the schema bundle, which will become the - # final component of the schema bundle's resource name. - # @!attribute [rw] schema_bundle - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # Required. The schema bundle to create. - class CreateSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateSchemaBundleMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. - # @!attribute [rw] schema_bundle - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # Required. The schema bundle to update. - # - # The schema bundle's `name` field is used to identify the schema bundle to - # update. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If set, ignore the safety checks when updating the Schema Bundle. - # The safety checks are: - # - The new Schema Bundle is backwards compatible with the existing Schema - # Bundle. - class UpdateSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateSchemaBundleMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle GetSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the schema bundle to retrieve. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - class GetSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent, which owns this collection of schema bundles. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of schema bundles to return. If the value is positive, - # the server may return at most this value. If unspecified, the server will - # return the maximum allowed page size. - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListSchemaBundles` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListSchemaBundles` must - # match the call that provided the page token. - class ListSchemaBundlesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. - # @!attribute [rw] schema_bundles - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # The schema bundles from the specified table. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListSchemaBundlesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle DeleteSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the schema bundle to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag of the schema bundle. - # If this is provided, it must match the server's etag. The server - # returns an ABORTED error on a mismatched etag. - class DeleteSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb deleted file mode 100644 index 09fe845b5e8c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Encapsulates progress related information for a Cloud Bigtable long - # running operation. - # @!attribute [rw] progress_percent - # @return [::Integer] - # Percent completion of the operation. - # Values are between 0 and 100 inclusive. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Time the request was received. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation failed or was completed - # successfully. - class OperationProgress - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Storage media types for persisting Bigtable data. - module StorageType - # The user did not specify a storage type. - STORAGE_TYPE_UNSPECIFIED = 0 - - # Flash (SSD) storage should be used. - SSD = 1 - - # Magnetic drive (HDD) storage should be used. - HDD = 2 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb deleted file mode 100644 index 3915a0a92c55..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb +++ /dev/null @@ -1,519 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # A collection of Bigtable {::Google::Cloud::Bigtable::Admin::V2::Table Tables} and - # the resources that serve them. - # All tables in an instance are served from all - # {::Google::Cloud::Bigtable::Admin::V2::Cluster Clusters} in the instance. - # @!attribute [rw] name - # @return [::String] - # The unique name of the instance. Values are of the form - # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - # @!attribute [rw] display_name - # @return [::String] - # Required. The descriptive name for this instance as it appears in UIs. - # Can be changed at any time, but should be kept globally unique - # to avoid confusion. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::State] - # Output only. The current state of the instance. - # @!attribute [rw] type - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] - # The type of the instance. Defaults to `PRODUCTION`. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Labels are a flexible and lightweight mechanism for organizing cloud - # resources into groups that reflect a customer's organizational needs and - # deployment strategies. They can be used to filter resources and aggregate - # metrics. - # - # * Label keys must be between 1 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - # * Label values must be between 0 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - # * No more than 64 labels can be associated with a given resource. - # * Keys and values must both be under 128 bytes. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. A commit timestamp representing when this Instance was - # created. For instances created before this field was added (August 2021), - # this value is `seconds: 0, nanos: 1`. - # @!attribute [r] satisfies_pzs - # @return [::Boolean] - # Output only. Reserved for future use. - # @!attribute [r] satisfies_pzi - # @return [::Boolean] - # Output only. Reserved for future use. - # @!attribute [rw] tags - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Input only. Immutable. Tag keys/values directly bound to this - # resource. For example: - # - "123/environment": "production", - # - "123/costCenter": "marketing" - # - # Tags and Labels (above) are both used to bind metadata to resources, with - # different use-cases. See - # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - # in-depth overview on the difference between tags and labels. - class Instance - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TagsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible states of an instance. - module State - # The state of the instance could not be determined. - STATE_NOT_KNOWN = 0 - - # The instance has been successfully created and can serve requests - # to its tables. - READY = 1 - - # The instance is currently being created, and may be destroyed - # if the creation process encounters an error. - CREATING = 2 - end - - # The type of the instance. - module Type - # The type of the instance is unspecified. If set when creating an - # instance, a `PRODUCTION` instance will be created. If set when updating - # an instance, the type will be left unchanged. - TYPE_UNSPECIFIED = 0 - - # An instance meant for production use. `serve_nodes` must be set - # on the cluster. - PRODUCTION = 1 - - # DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces - # a higher minimum node count than DEVELOPMENT. - DEVELOPMENT = 2 - end - end - - # The Autoscaling targets for a Cluster. These determine the recommended nodes. - # @!attribute [rw] cpu_utilization_percent - # @return [::Integer] - # The cpu utilization that the Autoscaler should be trying to achieve. - # This number is on a scale from 0 (no utilization) to - # 100 (total utilization), and is limited between 10 and 80, otherwise it - # will return INVALID_ARGUMENT error. - # @!attribute [rw] storage_utilization_gib_per_node - # @return [::Integer] - # The storage utilization that the Autoscaler should be trying to achieve. - # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD - # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, - # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, - # it will be treated as if it were set to the default value: 2560 for SSD, - # 8192 for HDD. - class AutoscalingTargets - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Limits for the number of nodes a Cluster can autoscale up/down to. - # @!attribute [rw] min_serve_nodes - # @return [::Integer] - # Required. Minimum number of nodes to scale down to. - # @!attribute [rw] max_serve_nodes - # @return [::Integer] - # Required. Maximum number of nodes to scale up to. - class AutoscalingLimits - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resizable group of nodes in a particular cloud location, capable - # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent - # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}. - # @!attribute [rw] name - # @return [::String] - # The unique name of the cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - # @!attribute [rw] location - # @return [::String] - # Immutable. The location where this cluster's nodes and storage reside. For - # best performance, clients should be located as close as possible to this - # cluster. Currently only zones are supported, so values should be of the - # form `projects/{project}/locations/{zone}`. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::State] - # Output only. The current state of the cluster. - # @!attribute [rw] serve_nodes - # @return [::Integer] - # The number of nodes in the cluster. If no value is set, - # Cloud Bigtable automatically allocates nodes based on your data footprint - # and optimized for 50% storage utilization. - # @!attribute [rw] node_scaling_factor - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] - # Immutable. The node scaling factor of this cluster. - # @!attribute [rw] cluster_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig] - # Configuration for this cluster. - # @!attribute [rw] default_storage_type - # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType] - # Immutable. The type of storage used by this cluster to serve its - # parent instance's tables, unless explicitly overridden. - # @!attribute [rw] encryption_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig] - # Immutable. The encryption configuration for CMEK-protected clusters. - class Cluster - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Autoscaling config for a cluster. - # @!attribute [rw] autoscaling_limits - # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits] - # Required. Autoscaling limits for this cluster. - # @!attribute [rw] autoscaling_targets - # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets] - # Required. Autoscaling targets for this cluster. - class ClusterAutoscalingConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Configuration for a cluster. - # @!attribute [rw] cluster_autoscaling_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig] - # Autoscaling configuration for this cluster. - class ClusterConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected - # cluster. - # @!attribute [rw] kms_key_name - # @return [::String] - # Describes the Cloud KMS encryption key that will be used to protect the - # destination Bigtable cluster. The requirements for this key are: - # 1) The Cloud Bigtable service account associated with the project that - # contains this cluster must be granted the - # `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. - # 2) Only regional keys can be used and the region of the CMEK key must - # match the region of the cluster. - # Values are of the form - # `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` - class EncryptionConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible states of a cluster. - module State - # The state of the cluster could not be determined. - STATE_NOT_KNOWN = 0 - - # The cluster has been successfully created and is ready to serve requests. - READY = 1 - - # The cluster is currently being created, and may be destroyed - # if the creation process encounters an error. - # A cluster may not be able to serve requests while being created. - CREATING = 2 - - # The cluster is currently being resized, and may revert to its previous - # node count if the process encounters an error. - # A cluster is still capable of serving requests while being resized, - # but may exhibit performance as if its number of allocated nodes is - # between the starting and requested states. - RESIZING = 3 - - # The cluster has no backing nodes. The data (tables) still - # exist, but no operations can be performed on the cluster. - DISABLED = 4 - end - - # Possible node scaling factors of the clusters. Node scaling delivers better - # latency and more throughput by removing node boundaries. - module NodeScalingFactor - # No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. - NODE_SCALING_FACTOR_UNSPECIFIED = 0 - - # The cluster is running with a scaling factor of 1. - NODE_SCALING_FACTOR_1X = 1 - - # The cluster is running with a scaling factor of 2. - # All node count values must be in increments of 2 with this scaling factor - # enabled, otherwise an INVALID_ARGUMENT error will be returned. - NODE_SCALING_FACTOR_2X = 2 - end - end - - # A configuration object describing how Cloud Bigtable should treat traffic - # from a particular end user application. - # @!attribute [rw] name - # @return [::String] - # The unique name of the app profile. Values are of the form - # `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # @!attribute [rw] etag - # @return [::String] - # Strongly validated etag for optimistic concurrency control. Preserve the - # value returned from `GetAppProfile` when calling `UpdateAppProfile` to - # fail the request if there has been a modification in the mean time. The - # `update_mask` of the request need not include `etag` for this protection - # to apply. - # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and - # [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more - # details. - # @!attribute [rw] description - # @return [::String] - # Long form description of the use case for this AppProfile. - # @!attribute [rw] multi_cluster_routing_use_any - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny] - # Use a multi-cluster routing policy. - # - # Note: The following fields are mutually exclusive: `multi_cluster_routing_use_any`, `single_cluster_routing`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] single_cluster_routing - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting] - # Use a single-cluster routing policy. - # - # Note: The following fields are mutually exclusive: `single_cluster_routing`, `multi_cluster_routing_use_any`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] priority - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] - # This field has been deprecated in favor of `standard_isolation.priority`. - # If you set this field, `standard_isolation.priority` will be set instead. - # - # The priority of requests sent using this app profile. - # - # Note: The following fields are mutually exclusive: `priority`, `standard_isolation`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] standard_isolation - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::StandardIsolation] - # The standard options used for isolating this app profile's traffic from - # other use cases. - # - # Note: The following fields are mutually exclusive: `standard_isolation`, `priority`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_boost_isolation_read_only - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly] - # Specifies that this app profile is intended for read-only usage via the - # Data Boost feature. - # - # Note: The following fields are mutually exclusive: `data_boost_isolation_read_only`, `priority`, `standard_isolation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class AppProfile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Read/write requests are routed to the nearest cluster in the instance, and - # will fail over to the nearest cluster that is available in the event of - # transient errors or delays. Clusters in a region are considered - # equidistant. Choosing this option sacrifices read-your-writes consistency - # to improve availability. - # @!attribute [rw] cluster_ids - # @return [::Array<::String>] - # The set of clusters to route to. The order is ignored; clusters will be - # tried in order of distance. If left empty, all clusters are eligible. - # @!attribute [rw] row_affinity - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity] - # Row affinity sticky routing based on the row key of the request. - # Requests that span multiple rows are routed non-deterministically. - class MultiClusterRoutingUseAny - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # If enabled, Bigtable will route the request based on the row key of the - # request, rather than randomly. Instead, each row key will be assigned - # to a cluster, and will stick to that cluster. If clusters are added or - # removed, then this may affect which row keys stick to which clusters. - # To avoid this, users can use a cluster group to specify which clusters - # are to be used. In this case, new clusters that are not a part of the - # cluster group will not be routed to, and routing will be unaffected by - # the new cluster. Moreover, clusters specified in the cluster group cannot - # be deleted unless removed from the cluster group. - class RowAffinity - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Unconditionally routes all read/write requests to a specific cluster. - # This option preserves read-your-writes consistency but does not improve - # availability. - # @!attribute [rw] cluster_id - # @return [::String] - # The cluster to which read/write requests should be routed. - # @!attribute [rw] allow_transactional_writes - # @return [::Boolean] - # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are - # allowed by this app profile. It is unsafe to send these requests to - # the same table/row/column in multiple clusters. - class SingleClusterRouting - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Standard options for isolating this app profile's traffic from other use - # cases. - # @!attribute [rw] priority - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] - # The priority of requests sent using this app profile. - class StandardIsolation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data Boost is a serverless compute capability that lets you run - # high-throughput read jobs and queries on your Bigtable data, without - # impacting the performance of the clusters that handle your application - # traffic. Data Boost supports read-only use cases with single-cluster - # routing. - # @!attribute [rw] compute_billing_owner - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner] - # The Compute Billing Owner for this Data Boost App Profile. - class DataBoostIsolationReadOnly - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Compute Billing Owner specifies how usage should be accounted when using - # Data Boost. Compute Billing Owner also configures which Cloud Project is - # charged for relevant quota. - module ComputeBillingOwner - # Unspecified value. - COMPUTE_BILLING_OWNER_UNSPECIFIED = 0 - - # The host Cloud Project containing the targeted Bigtable Instance / - # Table pays for compute. - HOST_PAYS = 1 - end - end - - # Possible priorities for an app profile. Note that higher priority writes - # can sometimes queue behind lower priority writes to the same tablet, as - # writes must be strictly sequenced in the durability log. - module Priority - # Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. - PRIORITY_UNSPECIFIED = 0 - - PRIORITY_LOW = 1 - - PRIORITY_MEDIUM = 2 - - PRIORITY_HIGH = 3 - end - end - - # A tablet is a defined by a start and end key and is explained in - # https://cloud.google.com/bigtable/docs/overview#architecture and - # https://cloud.google.com/bigtable/docs/performance#optimization. - # A Hot tablet is a tablet that exhibits high average cpu usage during the time - # interval from start time to end time. - # @!attribute [rw] name - # @return [::String] - # The unique name of the hot tablet. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. - # @!attribute [rw] table_name - # @return [::String] - # Name of the table that contains the tablet. Values are of the form - # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The start time of the hot tablet. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The end time of the hot tablet. - # @!attribute [rw] start_key - # @return [::String] - # Tablet Start Key (inclusive). - # @!attribute [rw] end_key - # @return [::String] - # Tablet End Key (inclusive). - # @!attribute [r] node_cpu_usage_percent - # @return [::Float] - # Output only. The average CPU usage spent by a node on this tablet over the - # start_time to end_time time range. The percentage is the amount of CPU used - # by the node to serve the tablet, from 0% (tablet was not interacted with) - # to 100% (the node spent all cycles serving the hot tablet). - class HotTablet - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A SQL logical view object that can be referenced in SQL queries. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name of the logical view. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - # @!attribute [rw] query - # @return [::String] - # Required. The logical view's select query. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this logical view. - # This may be sent on update requests to ensure that the client has an - # up-to-date value before proceeding. The server returns an ABORTED error on - # a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Optional. Set to true to make the LogicalView protected against deletion. - class LogicalView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A materialized view object that can be referenced in SQL queries. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name of the materialized view. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - # @!attribute [rw] query - # @return [::String] - # Required. Immutable. The materialized view's select query. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this materialized view. - # This may be sent on update requests to ensure that the client has an - # up-to-date value before proceeding. The server returns an ABORTED error on - # a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the MaterializedView protected against deletion. - class MaterializedView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb deleted file mode 100644 index a0aaeed8b974..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb +++ /dev/null @@ -1,741 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Information about a table restore. - # @!attribute [rw] source_type - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] - # The type of the restore source. - # @!attribute [rw] backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # Information about the backup used to restore the table. The backup - # may no longer exist. - class RestoreInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Change stream configuration. - # @!attribute [rw] retention_period - # @return [::Google::Protobuf::Duration] - # How long the change stream should be retained. Change stream data older - # than the retention period will not be returned when reading the change - # stream from the table. - # Values must be at least 1 day and at most 7 days, and will be truncated to - # microsecond granularity. - class ChangeStreamConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A collection of user data indexed by row, column, and timestamp. - # Each table is served using the resources of its parent cluster. - # @!attribute [rw] name - # @return [::String] - # The unique name of the table. Values are of the form - # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` - # @!attribute [r] cluster_states - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState}] - # Output only. Map from cluster ID to per-cluster table state. - # If it could not be determined whether or not the table has data in a - # particular cluster (for example, if its zone is unavailable), then - # there will be an entry for the cluster with UNKNOWN `replication_status`. - # Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - # @!attribute [rw] column_families - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::ColumnFamily}] - # The column families configured for this table, mapped by column family ID. - # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` - # @!attribute [rw] granularity - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::TimestampGranularity] - # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored - # in this table. Timestamps not matching the granularity will be rejected. If - # unspecified at creation time, the value will be set to `MILLIS`. Views: - # `SCHEMA_VIEW`, `FULL`. - # @!attribute [r] restore_info - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreInfo] - # Output only. If this table was restored from another data source (e.g. a - # backup), this field will be populated with information about the restore. - # @!attribute [rw] change_stream_config - # @return [::Google::Cloud::Bigtable::Admin::V2::ChangeStreamConfig] - # If specified, enable the change stream on this table. - # Otherwise, the change stream is disabled and the change stream is not - # retained. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the table protected against data loss. i.e. deleting - # the following resources through Admin APIs are prohibited: - # - # * The table. - # * The column families in the table. - # * The instance containing the table. - # - # Note one can still delete the data stored in the table through Data APIs. - # @!attribute [rw] automated_backup_policy - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::AutomatedBackupPolicy] - # If specified, automated backups are enabled for this table. - # Otherwise, automated backups are disabled. - # @!attribute [rw] tiered_storage_config - # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageConfig] - # Rules to specify what data is stored in each storage tier. - # Different tiers store data differently, providing different trade-offs - # between cost and performance. Different parts of a table can be stored - # separately on different tiers. - # If a config is specified, tiered storage is enabled for this table. - # Otherwise, tiered storage is disabled. - # Only SSD instances can configure tiered storage. - # @!attribute [rw] row_key_schema - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] - # The row key schema for this table. The schema is used to decode the raw row - # key bytes into a structured format. The order of field declarations in this - # schema is important, as it reflects how the raw row key bytes are - # structured. Currently, this only affects how the key is read via a - # GoogleSQL query from the ExecuteQuery API. - # - # For a SQL query, the _key column is still read as raw bytes. But queries - # can reference the key fields by name, which will be decoded from _key using - # provided type and encoding. Queries that reference key fields will fail if - # they encounter an invalid row key. - # - # For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the - # following schema: - # { - # fields { - # field_name: "id" - # type { string { encoding: utf8_bytes \\{} } } - # } - # fields { - # field_name: "date" - # type { string { encoding: utf8_bytes \\{} } } - # } - # fields { - # field_name: "product_code" - # type { int64 { encoding: big_endian_bytes \\{} } } - # } - # encoding { delimited_bytes { delimiter: "#" } } - # } - # - # The decoded key parts would be: - # id = "some_id", date = "2024-04-30", product_code = 1245427 - # The query "SELECT _key, product_code FROM table" will return two columns: - # /------------------------------------------------------\ - # | _key | product_code | - # | --------------------------------------|--------------| - # | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | - # \------------------------------------------------------/ - # - # The schema has the following invariants: - # (1) The decoded field values are order-preserved. For read, the field - # values will be decoded in sorted mode from the raw bytes. - # (2) Every field in the schema must specify a non-empty name. - # (3) Every field must specify a type with an associated encoding. The type - # is limited to scalar types only: Array, Map, Aggregate, and Struct are not - # allowed. - # (4) The field names must not collide with existing column family - # names and reserved keywords "_key" and "_timestamp". - # - # The following update operations are allowed for row_key_schema: - # - Update from an empty schema to a new schema. - # - Remove the existing schema. This operation requires setting the - # `ignore_warnings` flag to `true`, since it might be a backward - # incompatible change. Without the flag, the update request will fail with - # an INVALID_ARGUMENT error. - # Any other row key schema update operation (e.g. update existing schema - # columns names or types) is currently unsupported. - class Table - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The state of a table's data in a particular cluster. - # @!attribute [r] replication_state - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState::ReplicationState] - # Output only. The state of replication for the table in this cluster. - # @!attribute [r] encryption_info - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo>] - # Output only. The encryption information for the table in this cluster. - # If the encryption key protecting this resource is customer managed, then - # its version can be rotated in Cloud Key Management Service (Cloud KMS). - # The primary version of the key and its status will be reflected here when - # changes propagate from Cloud KMS. - class ClusterState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Table replication states. - module ReplicationState - # The replication state of the table is unknown in this cluster. - STATE_NOT_KNOWN = 0 - - # The cluster was recently created, and the table must finish copying - # over pre-existing data from other clusters before it can begin - # receiving live replication updates and serving Data API requests. - INITIALIZING = 1 - - # The table is temporarily unable to serve Data API requests from this - # cluster due to planned internal maintenance. - PLANNED_MAINTENANCE = 2 - - # The table is temporarily unable to serve Data API requests from this - # cluster due to unplanned or emergency maintenance. - UNPLANNED_MAINTENANCE = 3 - - # The table can serve Data API requests from this cluster. Depending on - # replication delay, reads may not immediately reflect the state of the - # table in other clusters. - READY = 4 - - # The table is fully created and ready for use after a restore, and is - # being optimized for performance. When optimizations are complete, the - # table will transition to `READY` state. - READY_OPTIMIZING = 5 - end - end - - # Defines an automated backup policy for a table - # @!attribute [rw] retention_period - # @return [::Google::Protobuf::Duration] - # Required. How long the automated backups should be retained. Values must - # be at least 3 days and at most 90 days. - # @!attribute [rw] frequency - # @return [::Google::Protobuf::Duration] - # How frequently automated backups should occur. The only supported value - # at this time is 24 hours. An undefined frequency is treated as 24 hours. - # @!attribute [rw] locations - # @return [::Array<::String>] - # Optional. A list of Cloud Bigtable zones where automated backups are - # allowed to be created. If empty, automated backups will be created in all - # zones of the instance. Locations are in the format - # `projects/{project}/locations/{zone}`. - # This field can only set for tables in Enterprise Plus instances. - class AutomatedBackupPolicy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState] - class ClusterStatesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - class ColumnFamiliesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible timestamp granularities to use when keeping multiple versions - # of data in a table. - module TimestampGranularity - # The user did not specify a granularity. Should not be returned. - # When specified during table creation, MILLIS will be used. - TIMESTAMP_GRANULARITY_UNSPECIFIED = 0 - - # The table keeps data versioned at a granularity of 1ms. - MILLIS = 1 - end - - # Defines a view over a table's fields. - module View - # Uses the default view for each method as documented in its request. - VIEW_UNSPECIFIED = 0 - - # Only populates `name`. - NAME_ONLY = 1 - - # Only populates `name` and fields related to the table's schema. - SCHEMA_VIEW = 2 - - # Only populates `name` and fields related to the table's replication - # state. - REPLICATION_VIEW = 3 - - # Only populates `name` and fields related to the table's encryption state. - ENCRYPTION_VIEW = 5 - - # Populates all fields. - FULL = 4 - end - end - - # AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users - # can configure access to each Authorized View independently from the table and - # use the existing Data APIs to access the subset of data. - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of this AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - # @!attribute [rw] subset_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::SubsetView] - # An AuthorizedView permitting access to an explicit subset of a Table. - # @!attribute [rw] etag - # @return [::String] - # The etag for this AuthorizedView. - # If this is provided on update, it must match the server's etag. The server - # returns ABORTED error on a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the AuthorizedView protected against deletion. - # The parent Table and containing Instance cannot be deleted if an - # AuthorizedView has this bit set. - class AuthorizedView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Subsets of a column family that are included in this AuthorizedView. - # @!attribute [rw] qualifiers - # @return [::Array<::String>] - # Individual exact column qualifiers to be included in the AuthorizedView. - # @!attribute [rw] qualifier_prefixes - # @return [::Array<::String>] - # Prefixes for qualifiers to be included in the AuthorizedView. Every - # qualifier starting with one of these prefixes is included in the - # AuthorizedView. To provide access to all qualifiers, include the empty - # string as a prefix - # (""). - class FamilySubsets - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a simple AuthorizedView that is a subset of the underlying Table. - # @!attribute [rw] row_prefixes - # @return [::Array<::String>] - # Row prefixes to be included in the AuthorizedView. - # To provide access to all rows, include the empty string as a prefix (""). - # @!attribute [rw] family_subsets - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets}] - # Map from column family name to the columns in this family to be included - # in the AuthorizedView. - class SubsetView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets] - class FamilySubsetsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Defines a subset of an AuthorizedView's fields. - module ResponseView - # Uses the default view for each method as documented in the request. - RESPONSE_VIEW_UNSPECIFIED = 0 - - # Only populates `name`. - NAME_ONLY = 1 - - # Only populates the AuthorizedView's basic metadata. This includes: - # name, deletion_protection, etag. - BASIC = 2 - - # Populates every fields. - FULL = 3 - end - end - - # A set of columns within a table which share a common configuration. - # @!attribute [rw] gc_rule - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule] - # Garbage collection rule specified as a protobuf. - # Must serialize to at most 500 bytes. - # - # NOTE: Garbage collection executes opportunistically in the background, and - # so it's possible for reads to return a cell even if it matches the active - # GC expression for its family. - # @!attribute [rw] value_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of data stored in each of this family's cell values, including its - # full encoding. If omitted, the family only serves raw untyped bytes. - # - # For now, only the `Aggregate` type is supported. - # - # `Aggregate` can only be set at family creation and is immutable afterwards. - # - # - # If `value_type` is `Aggregate`, written data must be compatible with: - # * `value_type.input_type` for `AddInput` mutations - class ColumnFamily - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rule for determining which cells to delete during garbage collection. - # @!attribute [rw] max_num_versions - # @return [::Integer] - # Delete all cells in a column except the most recent N. - # - # Note: The following fields are mutually exclusive: `max_num_versions`, `max_age`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] max_age - # @return [::Google::Protobuf::Duration] - # Delete cells in a column older than the given age. - # Values must be at least one millisecond, and will be truncated to - # microsecond granularity. - # - # Note: The following fields are mutually exclusive: `max_age`, `max_num_versions`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] intersection - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Intersection] - # Delete cells that would be deleted by every nested rule. - # - # Note: The following fields are mutually exclusive: `intersection`, `max_num_versions`, `max_age`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] union - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Union] - # Delete cells that would be deleted by any nested rule. - # - # Note: The following fields are mutually exclusive: `union`, `max_num_versions`, `max_age`, `intersection`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class GcRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A GcRule which deletes cells matching all of the given rules. - # @!attribute [rw] rules - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] - # Only delete cells which would be deleted by every element of `rules`. - class Intersection - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A GcRule which deletes cells matching any of the given rules. - # @!attribute [rw] rules - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] - # Delete cells which would be deleted by any element of `rules`. - class Union - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Encryption information for a given resource. - # If this resource is protected with customer managed encryption, the in-use - # Cloud Key Management Service (Cloud KMS) key version is specified along with - # its status. - # @!attribute [r] encryption_type - # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo::EncryptionType] - # Output only. The type of encryption used to protect this resource. - # @!attribute [r] encryption_status - # @return [::Google::Rpc::Status] - # Output only. The status of encrypt/decrypt calls on underlying data for - # this resource. Regardless of status, the existing data is always encrypted - # at rest. - # @!attribute [r] kms_key_version - # @return [::String] - # Output only. The version of the Cloud KMS key specified in the parent - # cluster that is in use for the data underlying this table. - class EncryptionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible encryption types for a resource. - module EncryptionType - # Encryption type was not specified, though data at rest remains encrypted. - ENCRYPTION_TYPE_UNSPECIFIED = 0 - - # The data backing this resource is encrypted at rest with a key that is - # fully managed by Google. No key version or status will be populated. - # This is the default state. - GOOGLE_DEFAULT_ENCRYPTION = 1 - - # The data backing this resource is encrypted at rest with a key that is - # managed by the customer. - # The in-use version of the key and its status are populated for - # CMEK-protected tables. - # CMEK-protected backups are pinned to the key version that was in use at - # the time the backup was taken. This key version is populated but its - # status is not tracked and is reported as `UNKNOWN`. - CUSTOMER_MANAGED_ENCRYPTION = 2 - end - end - - # A snapshot of a table at a particular time. A snapshot can be used as a - # checkpoint for data restoration or a data source for a new table. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # The unique name of the snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # @!attribute [r] source_table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Output only. The source table at the time the snapshot was taken. - # @!attribute [r] data_size_bytes - # @return [::Integer] - # Output only. The size of the data in the source table at the time the - # snapshot was taken. In some cases, this value may be computed - # asynchronously via a background process and a placeholder of 0 will be used - # in the meantime. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time when the snapshot is created. - # @!attribute [rw] delete_time - # @return [::Google::Protobuf::Timestamp] - # The time when the snapshot will be deleted. The maximum amount of time a - # snapshot can stay active is 365 days. If 'ttl' is not specified, - # the default maximum of 365 days will be used. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot::State] - # Output only. The current state of the snapshot. - # @!attribute [rw] description - # @return [::String] - # Description of the snapshot. - class Snapshot - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible states of a snapshot. - module State - # The state of the snapshot could not be determined. - STATE_NOT_KNOWN = 0 - - # The snapshot has been successfully created and can serve all requests. - READY = 1 - - # The snapshot is currently being created, and may be destroyed if the - # creation process encounters an error. A snapshot may not be restored to a - # table while it is being created. - CREATING = 2 - end - end - - # A backup of a Cloud Bigtable table. - # @!attribute [rw] name - # @return [::String] - # A globally unique identifier for the backup which cannot be - # changed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/ - # backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - # The final segment of the name must be between 1 and 50 characters - # in length. - # - # The backup is stored in the cluster identified by the prefix of the backup - # name of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] source_table - # @return [::String] - # Required. Immutable. Name of the table from which this backup was created. - # This needs to be in the same instance as the backup. Values are of the form - # `projects/{project}/instances/{instance}/tables/{source_table}`. - # @!attribute [r] source_backup - # @return [::String] - # Output only. Name of the backup from which this backup was copied. If a - # backup is not created by copying a backup, this field will be empty. Values - # are of the form: - # projects//instances//clusters//backups/ - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # Required. The expiration time of the backup. - # When creating a backup or updating its `expire_time`, the value must be - # greater than the backup creation time by: - # - At least 6 hours - # - At most 90 days - # - # Once the `expire_time` has passed, Cloud Bigtable will delete the backup. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. `start_time` is the time that the backup was started - # (i.e. approximately the time the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup} - # request is received). The row data in this backup will be no older than - # this timestamp. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. `end_time` is the time that the backup was finished. The row - # data in the backup will be no newer than this timestamp. - # @!attribute [r] size_bytes - # @return [::Integer] - # Output only. Size of the backup in bytes. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State] - # Output only. The current state of the backup. - # @!attribute [r] encryption_info - # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo] - # Output only. The encryption information for the backup. - # @!attribute [rw] backup_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType] - # Indicates the backup type of the backup. - # @!attribute [rw] hot_to_standard_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the hot backup will be converted to a standard backup. - # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the - # hot backup to a standard backup. This value must be greater than the backup - # creation time by: - # - At least 24 hours - # - # This field only applies for hot backups. When creating or updating a - # standard backup, attempting to set this field will fail the request. - class Backup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the current state of the backup. - module State - # Not specified. - STATE_UNSPECIFIED = 0 - - # The pending backup is still being created. Operations on the - # backup may fail with `FAILED_PRECONDITION` in this state. - CREATING = 1 - - # The backup is complete and ready for use. - READY = 2 - end - - # The type of the backup. - module BackupType - # Not specified. - BACKUP_TYPE_UNSPECIFIED = 0 - - # The default type for Cloud Bigtable managed backups. Supported for - # backups created in both HDD and SSD instances. Requires optimization when - # restored to a table in an SSD instance. - STANDARD = 1 - - # A backup type with faster restore to SSD performance. Only supported for - # backups created in SSD instances. A new SSD table restored from a hot - # backup reaches production performance more quickly than a standard - # backup. - HOT = 2 - end - end - - # Information about a backup. - # @!attribute [r] backup - # @return [::String] - # Output only. Name of the backup. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time that the backup was started. Row data in the backup - # will be no older than this timestamp. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. This time that the backup was finished. Row data in the - # backup will be no newer than this timestamp. - # @!attribute [r] source_table - # @return [::String] - # Output only. Name of the table the backup was created from. - # @!attribute [r] source_backup - # @return [::String] - # Output only. Name of the backup from which this backup was copied. If a - # backup is not created by copying a backup, this field will be empty. Values - # are of the form: - # projects//instances//clusters//backups/ - class BackupInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Config for tiered storage. - # A valid config must have a valid TieredStorageRule. Otherwise the whole - # TieredStorageConfig must be unset. - # By default all data is stored in the SSD tier (only SSD instances can - # configure tiered storage). - # @!attribute [rw] infrequent_access - # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageRule] - # Rule to specify what data is stored in the infrequent access(IA) tier. - # The IA tier allows storing more data per node with reduced performance. - class TieredStorageConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rule to specify what data is stored in a storage tier. - # @!attribute [rw] include_if_older_than - # @return [::Google::Protobuf::Duration] - # Include cells older than the given age. - # For the infrequent access tier, this value must be at least 30 days. - class TieredStorageRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a protobuf schema. - # @!attribute [rw] proto_descriptors - # @return [::String] - # Required. Contains a protobuf-serialized - # [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), - # which could include multiple proto files. - # To generate it, [install](https://grpc.io/docs/protoc-installation/) and - # run `protoc` with - # `--include_imports` and `--descriptor_set_out`. For example, to generate - # for moon/shot/app.proto, run - # ``` - # $protoc --proto_path=/app_path --proto_path=/lib_path \ - # --include_imports \ - # --descriptor_set_out=descriptors.pb \ - # moon/shot/app.proto - # ``` - # For more details, see protobuffer [self - # description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). - class ProtoSchema - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A named collection of related schemas. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] proto_schema - # @return [::Google::Cloud::Bigtable::Admin::V2::ProtoSchema] - # Schema for Protobufs. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this schema bundle. - # This may be sent on update and delete requests to ensure the - # client has an up-to-date value before proceeding. The server - # returns an ABORTED error on a mismatched etag. - class SchemaBundle - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the type of the restore source. - module RestoreSourceType - # No restore associated. - RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 - - # A backup was used as the source of the restore. - BACKUP = 1 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb deleted file mode 100644 index 8a598f02b9ff..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb +++ /dev/null @@ -1,575 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # `Type` represents the type of data that is written to, read from, or stored - # in Bigtable. It is heavily based on the GoogleSQL standard to help maintain - # familiarity and consistency across products and features. - # - # For compatibility with Bigtable's existing untyped APIs, each `Type` includes - # an `Encoding` which describes how to convert to or from the underlying data. - # - # Each encoding can operate in one of two modes: - # - # - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` - # if and only if `X <= Y`. This is useful anywhere sort order is important, - # for example when encoding keys. - # - Distinct: In this mode, Bigtable guarantees that if `X != Y` then - # `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For - # example, both "\\{'foo': '1', 'bar': '2'}" and "\\{'bar': '2', 'foo': '1'}" - # are valid encodings of the same JSON value. - # - # The API clearly documents which mode is used wherever an encoding can be - # configured. Each encoding also documents which values are supported in which - # modes. For example, when encoding INT64 as a numeric STRING, negative numbers - # cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but - # `STRING("-00001") > STRING("00001")`. - # @!attribute [rw] bytes_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] - # Bytes - # - # Note: The following fields are mutually exclusive: `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] string_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String] - # String - # - # Note: The following fields are mutually exclusive: `string_type`, `bytes_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] int64_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64] - # Int64 - # - # Note: The following fields are mutually exclusive: `int64_type`, `bytes_type`, `string_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float32_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float32] - # Float32 - # - # Note: The following fields are mutually exclusive: `float32_type`, `bytes_type`, `string_type`, `int64_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float64_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float64] - # Float64 - # - # Note: The following fields are mutually exclusive: `float64_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bool] - # Bool - # - # Note: The following fields are mutually exclusive: `bool_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] timestamp_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp] - # Timestamp - # - # Note: The following fields are mutually exclusive: `timestamp_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] date_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Date] - # Date - # - # Note: The following fields are mutually exclusive: `date_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] aggregate_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate] - # Aggregate - # - # Note: The following fields are mutually exclusive: `aggregate_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] struct_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] - # Struct - # - # Note: The following fields are mutually exclusive: `struct_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] array_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Array] - # Array - # - # Note: The following fields are mutually exclusive: `array_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] map_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Map] - # Map - # - # Note: The following fields are mutually exclusive: `map_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] proto_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Proto] - # Proto - # - # Note: The following fields are mutually exclusive: `proto_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] enum_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Enum] - # Enum - # - # Note: The following fields are mutually exclusive: `enum_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Type - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Bytes - # Values of type `Bytes` are stored in `Value.bytes_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding] - # The encoding to use when converting to or from lower level types. - class Bytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] raw - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding::Raw] - # Use `Raw` encoding. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Leaves the value as-is. - # - # Sorted mode: all values are supported. - # - # Distinct mode: all values are supported. - class Raw - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # String - # Values of type `String` are stored in `Value.string_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding] - # The encoding to use when converting to or from lower level types. - class String - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] utf8_raw - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Raw] - # Deprecated: if set, converts to an empty `utf8_bytes`. - # - # Note: The following fields are mutually exclusive: `utf8_raw`, `utf8_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] utf8_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Bytes] - # Use `Utf8Bytes` encoding. - # - # Note: The following fields are mutually exclusive: `utf8_bytes`, `utf8_raw`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Deprecated: prefer the equivalent `Utf8Bytes`. - # @deprecated This message is deprecated and may be removed in the next major version update. - class Utf8Raw - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UTF-8 encoding. - # - # Sorted mode: - # - All values are supported. - # - Code point order is preserved. - # - # Distinct mode: all values are supported. - # - # Compatible with: - # - # - BigQuery `TEXT` encoding - # - HBase `Bytes.toBytes` - # - Java `String#getBytes(StandardCharsets.UTF_8)` - class Utf8Bytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # Int64 - # Values of type `Int64` are stored in `Value.int_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] - # The encoding to use when converting to or from lower level types. - class Int64 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] big_endian_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::BigEndianBytes] - # Use `BigEndianBytes` encoding. - # - # Note: The following fields are mutually exclusive: `big_endian_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ordered_code_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::OrderedCodeBytes] - # Use `OrderedCodeBytes` encoding. - # - # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `big_endian_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Encodes the value as an 8-byte big-endian two's complement value. - # - # Sorted mode: non-negative values are supported. - # - # Distinct mode: all values are supported. - # - # Compatible with: - # - # - BigQuery `BINARY` encoding - # - HBase `Bytes.toBytes` - # - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` - # @!attribute [rw] bytes_type - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] - # Deprecated: ignored if set. - class BigEndianBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Encodes the value in a variable length binary format of up to 10 bytes. - # Values that are closer to zero use fewer bytes. - # - # Sorted mode: all values are supported. - # - # Distinct mode: all values are supported. - class OrderedCodeBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # bool - # Values of type `Bool` are stored in `Value.bool_value`. - class Bool - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Float32 - # Values of type `Float32` are stored in `Value.float_value`. - class Float32 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Float64 - # Values of type `Float64` are stored in `Value.float_value`. - class Float64 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Timestamp - # Values of type `Timestamp` are stored in `Value.timestamp_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp::Encoding] - # The encoding to use when converting to or from lower level types. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] unix_micros_int64 - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] - # Encodes the number of microseconds since the Unix epoch using the - # given `Int64` encoding. Values must be microsecond-aligned. - # - # Compatible with: - # - # - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Date - # Values of type `Date` are stored in `Value.date_value`. - class Date - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A structured data value, consisting of fields which map to dynamically - # typed values. - # Values of type `Struct` are stored in `Value.array_value` where entries are - # in the same order and number as `field_types`. - # @!attribute [rw] fields - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Field>] - # The names and types of the fields in this struct. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding] - # The encoding to use when converting to or from lower level types. - class Struct - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A struct field and its type. - # @!attribute [rw] field_name - # @return [::String] - # The field name (optional). Fields without a `field_name` are considered - # anonymous and cannot be referenced by name. - # @!attribute [rw] type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of values in this field. - class Field - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rules used to convert to or from lower level types. - # @!attribute [rw] singleton - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::Singleton] - # Use `Singleton` encoding. - # - # Note: The following fields are mutually exclusive: `singleton`, `delimited_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delimited_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::DelimitedBytes] - # Use `DelimitedBytes` encoding. - # - # Note: The following fields are mutually exclusive: `delimited_bytes`, `singleton`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ordered_code_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::OrderedCodeBytes] - # User `OrderedCodeBytes` encoding. - # - # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `singleton`, `delimited_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Uses the encoding of `fields[0].type` as-is. - # Only valid if `fields.size == 1`. - class Singleton - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Fields are encoded independently and concatenated with a configurable - # `delimiter` in between. - # - # A struct with no fields defined is encoded as a single `delimiter`. - # - # Sorted mode: - # - # - Fields are encoded in sorted mode. - # - Encoded field values must not contain any bytes <= `delimiter[0]` - # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - # - # Distinct mode: - # - # - Fields are encoded in distinct mode. - # - Encoded field values must not contain `delimiter[0]`. - # @!attribute [rw] delimiter - # @return [::String] - # Byte sequence used to delimit concatenated fields. The delimiter must - # contain at least 1 character and at most 50 characters. - class DelimitedBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Fields are encoded independently and concatenated with the fixed byte - # pair \\{0x00, 0x01} in between. - # - # Any null (0x00) byte in an encoded field is replaced by the fixed byte - # pair \\{0x00, 0xFF}. - # - # Fields that encode to the empty string "" have special handling: - # - # - If *every* field encodes to "", or if the STRUCT has no fields - # defined, then the STRUCT is encoded as the fixed byte pair - # \\{0x00, 0x00}. - # - Otherwise, the STRUCT only encodes until the last non-empty field, - # omitting any trailing empty fields. Any empty fields that aren't - # omitted are replaced with the fixed byte pair \\{0x00, 0x00}. - # - # Examples: - # - # - STRUCT() -> "\00\00" - # - STRUCT("") -> "\00\00" - # - STRUCT("", "") -> "\00\00" - # - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" - # - STRUCT("A", "") -> "A" - # - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" - # - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" - # - # - # Since null bytes are always escaped, this encoding can cause size - # blowup for encodings like `Int64.BigEndianBytes` that are likely to - # produce many such bytes. - # - # Sorted mode: - # - # - Fields are encoded in sorted mode. - # - All values supported by the field encodings are allowed - # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - # - # Distinct mode: - # - # - Fields are encoded in distinct mode. - # - All values supported by the field encodings are allowed. - class OrderedCodeBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # A protobuf message type. - # Values of type `Proto` are stored in `Value.bytes_value`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # The ID of the schema bundle that this proto is defined in. - # @!attribute [rw] message_name - # @return [::String] - # The fully qualified name of the protobuf message, including package. In - # the format of "foo.bar.Message". - class Proto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A protobuf enum type. - # Values of type `Enum` are stored in `Value.int_value`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # The ID of the schema bundle that this enum is defined in. - # @!attribute [rw] enum_name - # @return [::String] - # The fully qualified name of the protobuf enum message, including package. - # In the format of "foo.bar.EnumMessage". - class Enum - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # An ordered list of elements of a given type. - # Values of type `Array` are stored in `Value.array_value`. - # @!attribute [rw] element_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of the elements in the array. This must not be `Array`. - class Array - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A mapping of keys to values of a given type. - # Values of type `Map` are stored in a `Value.array_value` where each entry - # is another `Value.array_value` with two elements (the key and the value, - # in that order). - # Normally encoded Map values won't have repeated keys, however, clients are - # expected to handle the case in which they do. If the same key appears - # multiple times, the _last_ value takes precedence. - # @!attribute [rw] key_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of a map key. - # Only `Bytes`, `String`, and `Int64` are allowed as key types. - # @!attribute [rw] value_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of the values in a map. - class Map - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A value that combines incremental updates into a summarized value. - # - # Data is never directly written or read using type `Aggregate`. Writes will - # provide either the `input_type` or `state_type`, and reads will always - # return the `state_type` . - # @!attribute [rw] input_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # Type of the inputs that are accumulated by this `Aggregate`, which must - # specify a full encoding. - # Use `AddInput` mutations to accumulate new inputs. - # @!attribute [r] state_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # Output only. Type that holds the internal accumulator state for the - # `Aggregate`. This is a function of the `input_type` and `aggregator` - # chosen, and will always specify a full encoding. - # @!attribute [rw] sum - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Sum] - # Sum aggregator. - # - # Note: The following fields are mutually exclusive: `sum`, `hllpp_unique_count`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] hllpp_unique_count - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount] - # HyperLogLogPlusPlusUniqueCount aggregator. - # - # Note: The following fields are mutually exclusive: `hllpp_unique_count`, `sum`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] max - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Max] - # Max aggregator. - # - # Note: The following fields are mutually exclusive: `max`, `sum`, `hllpp_unique_count`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] min - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Min] - # Min aggregator. - # - # Note: The following fields are mutually exclusive: `min`, `sum`, `hllpp_unique_count`, `max`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Aggregate - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Computes the sum of the input values. - # Allowed input: `Int64` - # State: same as input - class Sum - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes the max of the input values. - # Allowed input: `Int64` - # State: same as input - class Max - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes the min of the input values. - # Allowed input: `Int64` - # State: same as input - class Min - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes an approximate unique count over the input values. When using - # raw data as input, be careful to use a consistent encoding. Otherwise - # the same value encoded differently could count more than once, or two - # distinct values could count as identical. - # Input: Any, or omit for Raw - # State: TBD - # Special state conversions: `Int64` (the unique count estimate) - class HyperLogLogPlusPlusUniqueCount - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb deleted file mode 100644 index 5445c77f8258..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb +++ /dev/null @@ -1,87 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # Request message for `SetIamPolicy` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] policy - # @return [::Google::Iam::V1::Policy] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - class SetIamPolicyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for `GetIamPolicy` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] options - # @return [::Google::Iam::V1::GetPolicyOptions] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - class GetIamPolicyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for `TestIamPermissions` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] permissions - # @return [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - class TestIamPermissionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for `TestIamPermissions` method. - # @!attribute [rw] permissions - # @return [::Array<::String>] - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - class TestIamPermissionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb deleted file mode 100644 index 60713d995b86..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # Encapsulates settings provided to GetIamPolicy. - # @!attribute [rw] requested_policy_version - # @return [::Integer] - # Optional. The maximum policy version that will be used to format the - # policy. - # - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # - # Requests for policies with any conditional role bindings must specify - # version 3. Policies with no conditional role bindings may specify any valid - # value or leave the field unset. - # - # The policy in the response might use the policy version that you specified, - # or it might use a lower policy version. For example, if you specify version - # 3, but the policy has no conditional role bindings, the response uses - # version 1. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - class GetPolicyOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb deleted file mode 100644 index 999575b797df..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb +++ /dev/null @@ -1,426 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # - # - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members`, or principals, to a single `role`. Principals can be user - # accounts, service accounts, Google groups, and domains (such as G Suite). A - # `role` is a named list of permissions; each `role` can be an IAM predefined - # role or a user-created custom role. - # - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - # - # **JSON example:** - # - # ``` - # { - # "bindings": [ - # { - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # }, - # { - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": { - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", - # } - # } - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # } - # ``` - # - # **YAML example:** - # - # ``` - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # etag: BwWWja0YfJA= - # version: 3 - # ``` - # - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). - # @!attribute [rw] version - # @return [::Integer] - # Specifies the format of the policy. - # - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - # @!attribute [rw] bindings - # @return [::Array<::Google::Iam::V1::Binding>] - # Associates a list of `members`, or principals, with a `role`. Optionally, - # may specify a `condition` that determines how and when the `bindings` are - # applied. Each of the `bindings` must contain at least one principal. - # - # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - # of these principals can be Google groups. Each occurrence of a principal - # counts towards these limits. For example, if the `bindings` grant 50 - # different roles to `user:alice@example.com`, and not to any other - # principal, then you can add another 1,450 principals to the `bindings` in - # the `Policy`. - # @!attribute [rw] audit_configs - # @return [::Array<::Google::Iam::V1::AuditConfig>] - # Specifies cloud audit logging configuration for this policy. - # @!attribute [rw] etag - # @return [::String] - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - class Policy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Associates `members`, or principals, with a `role`. - # @!attribute [rw] role - # @return [::String] - # Role that is assigned to the list of `members`, or principals. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # @!attribute [rw] members - # @return [::Array<::String>] - # Specifies the principals requesting access for a Google Cloud resource. - # `members` can have the following values: - # - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # - # * `user:{emailid}`: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # - # - # * `serviceAccount:{emailid}`: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # - # * `group:{emailid}`: An email address that represents a Google group. - # For example, `admins@example.com`. - # - # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:{emailid}` and the recovered user - # retains the role in the binding. - # - # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:{emailid}` and the undeleted service account retains the - # role in the binding. - # - # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:{emailid}` and the - # recovered group retains the role in the binding. - # - # - # * `domain:{domain}`: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. - # @!attribute [rw] condition - # @return [::Google::Type::Expr] - # The condition that is associated with this binding. - # - # If the condition evaluates to `true`, then this binding applies to the - # current request. - # - # If the condition evaluates to `false`, then this binding does not apply to - # the current request. However, a different role binding might grant the same - # role to one or more of the principals in this binding. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - class Binding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # - # Example Policy with multiple AuditConfigs: - # - # { - # "audit_configs": [ - # { - # "service": "allServices", - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # }, - # { - # "log_type": "DATA_WRITE" - # }, - # { - # "log_type": "ADMIN_READ" - # } - # ] - # }, - # { - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ" - # }, - # { - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # } - # ] - # } - # ] - # } - # - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts `jose@example.com` from DATA_READ logging, and - # `aliya@example.com` from DATA_WRITE logging. - # @!attribute [rw] service - # @return [::String] - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # @!attribute [rw] audit_log_configs - # @return [::Array<::Google::Iam::V1::AuditLogConfig>] - # The configuration for logging of each type of permission. - class AuditConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Provides the configuration for logging a type of permissions. - # Example: - # - # { - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # }, - # { - # "log_type": "DATA_WRITE" - # } - # ] - # } - # - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. - # @!attribute [rw] log_type - # @return [::Google::Iam::V1::AuditLogConfig::LogType] - # The log type that this config enables. - # @!attribute [rw] exempted_members - # @return [::Array<::String>] - # Specifies the identities that do not cause logging for this type of - # permission. - # Follows the same format of - # [Binding.members][google.iam.v1.Binding.members]. - class AuditLogConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The list of valid permission types for which logging can be configured. - # Admin writes are always logged, and are not configurable. - module LogType - # Default case. Should never be this. - LOG_TYPE_UNSPECIFIED = 0 - - # Admin reads. Example: CloudIAM getIamPolicy - ADMIN_READ = 1 - - # Data writes. Example: CloudSQL Users create - DATA_WRITE = 2 - - # Data reads. Example: CloudSQL Users list - DATA_READ = 3 - end - end - - # The difference delta between two policies. - # @!attribute [rw] binding_deltas - # @return [::Array<::Google::Iam::V1::BindingDelta>] - # The delta for Bindings between two policies. - # @!attribute [rw] audit_config_deltas - # @return [::Array<::Google::Iam::V1::AuditConfigDelta>] - # The delta for AuditConfigs between two policies. - class PolicyDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # One delta entry for Binding. Each individual change (only one member in each - # entry) to a binding will be a separate entry. - # @!attribute [rw] action - # @return [::Google::Iam::V1::BindingDelta::Action] - # The action that was performed on a Binding. - # Required - # @!attribute [rw] role - # @return [::String] - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # @!attribute [rw] member - # @return [::String] - # A single identity requesting access for a Google Cloud resource. - # Follows the same format of Binding.members. - # Required - # @!attribute [rw] condition - # @return [::Google::Type::Expr] - # The condition that is associated with this binding. - class BindingDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of action performed on a Binding in a policy. - module Action - # Unspecified. - ACTION_UNSPECIFIED = 0 - - # Addition of a Binding. - ADD = 1 - - # Removal of a Binding. - REMOVE = 2 - end - end - - # One delta entry for AuditConfig. Each individual change (only one - # exempted_member in each entry) to a AuditConfig will be a separate entry. - # @!attribute [rw] action - # @return [::Google::Iam::V1::AuditConfigDelta::Action] - # The action that was performed on an audit configuration in a policy. - # Required - # @!attribute [rw] service - # @return [::String] - # Specifies a service that was configured for Cloud Audit Logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # Required - # @!attribute [rw] exempted_member - # @return [::String] - # A single identity that is exempted from "data access" audit - # logging for the `service` specified above. - # Follows the same format of Binding.members. - # @!attribute [rw] log_type - # @return [::String] - # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - # enabled, and cannot be configured. - # Required - class AuditConfigDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of action performed on an audit configuration in a policy. - module Action - # Unspecified. - ACTION_UNSPECIFIED = 0 - - # Addition of an audit configuration. - ADD = 1 - - # Removal of an audit configuration. - REMOVE = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb deleted file mode 100644 index 7a757f512165..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Longrunning - # This resource represents a long-running operation that is the result of a - # network API call. - # @!attribute [rw] name - # @return [::String] - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/{unique_id}`. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Any] - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # @!attribute [rw] done - # @return [::Boolean] - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. - # @!attribute [rw] error - # @return [::Google::Rpc::Status] - # The error result of the operation in case of failure or cancellation. - # - # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] response - # @return [::Google::Protobuf::Any] - # The normal, successful response of the operation. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. - # - # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Operation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.GetOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource. - class GetOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.ListOperations. - # @!attribute [rw] name - # @return [::String] - # The name of the operation's parent resource. - # @!attribute [rw] filter - # @return [::String] - # The standard list filter. - # @!attribute [rw] page_size - # @return [::Integer] - # The standard list page size. - # @!attribute [rw] page_token - # @return [::String] - # The standard list page token. - # @!attribute [rw] return_partial_success - # @return [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - class ListOperationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message for - # Operations.ListOperations. - # @!attribute [rw] operations - # @return [::Array<::Google::Longrunning::Operation>] - # A list of operations that matches the specified filter in the request. - # @!attribute [rw] next_page_token - # @return [::String] - # The standard List next-page token. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. Unreachable resources. Populated when the request sets - # `ListOperationsRequest.return_partial_success` and reads across - # collections e.g. when attempting to list all resources across all supported - # locations. - class ListOperationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.CancelOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be cancelled. - class CancelOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.DeleteOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be deleted. - class DeleteOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.WaitOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to wait on. - # @!attribute [rw] timeout - # @return [::Google::Protobuf::Duration] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - class WaitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A message representing the message types used by a long-running operation. - # - # Example: - # - # rpc Export(ExportRequest) returns (google.longrunning.Operation) { - # option (google.longrunning.operation_info) = { - # response_type: "ExportResponse" - # metadata_type: "ExportMetadata" - # }; - # } - # @!attribute [rw] response_type - # @return [::String] - # Required. The message name of the primary return type for this - # long-running operation. - # This type will be used to deserialize the LRO's response. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - # @!attribute [rw] metadata_type - # @return [::String] - # Required. The message name of the metadata type for this long-running - # operation. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - class OperationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb deleted file mode 100644 index 53e7733b6592..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # - # Example (Comparison): - # - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # - # Example (Equality): - # - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # - # Example (Logic): - # - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # - # Example (Data Manipulation): - # - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. - # @!attribute [rw] expression - # @return [::String] - # Textual representation of an expression in Common Expression Language - # syntax. - # @!attribute [rw] title - # @return [::String] - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # @!attribute [rw] description - # @return [::String] - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # @!attribute [rw] location - # @return [::String] - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - class Expr - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile deleted file mode 100644 index f88d2bf31b17..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-bigtable-admin-v2", path: "../" -else - gem "google-cloud-bigtable-admin-v2" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb deleted file mode 100644 index 60b0e44dae42..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile. -# -def create_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new - - # Call the create_app_profile method. - result = client.create_app_profile request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb deleted file mode 100644 index 1923dfa3b593..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster. -# -def create_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new - - # Call the create_cluster method. - result = client.create_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb deleted file mode 100644 index 9bfb53227c80..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance. -# -def create_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new - - # Call the create_instance method. - result = client.create_instance request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb deleted file mode 100644 index 7523e3a3df7f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view. -# -def create_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new - - # Call the create_logical_view method. - result = client.create_logical_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb deleted file mode 100644 index 99be7f04ca20..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view. -# -def create_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new - - # Call the create_materialized_view method. - result = client.create_materialized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb deleted file mode 100644 index be07699500ed..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile. -# -def delete_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new - - # Call the delete_app_profile method. - result = client.delete_app_profile request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb deleted file mode 100644 index ad008ded7e08..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster. -# -def delete_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new - - # Call the delete_cluster method. - result = client.delete_cluster request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb deleted file mode 100644 index f161dc0445dd..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance. -# -def delete_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new - - # Call the delete_instance method. - result = client.delete_instance request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb deleted file mode 100644 index f486e799a373..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view. -# -def delete_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new - - # Call the delete_logical_view method. - result = client.delete_logical_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb deleted file mode 100644 index 1e869b43c09d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view. -# -def delete_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new - - # Call the delete_materialized_view method. - result = client.delete_materialized_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb deleted file mode 100644 index a6b51fecf7b8..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile. -# -def get_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new - - # Call the get_app_profile method. - result = client.get_app_profile request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb deleted file mode 100644 index e3a302d2fe21..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster. -# -def get_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new - - # Call the get_cluster method. - result = client.get_cluster request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb deleted file mode 100644 index 69ab829b07a6..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_iam_policy call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb deleted file mode 100644 index ccd0595fe780..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance. -# -def get_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new - - # Call the get_instance method. - result = client.get_instance request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb deleted file mode 100644 index adfe7a736595..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view. -# -def get_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new - - # Call the get_logical_view method. - result = client.get_logical_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb deleted file mode 100644 index 6233ab496c0f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view. -# -def get_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new - - # Call the get_materialized_view method. - result = client.get_materialized_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb deleted file mode 100644 index 57b0097b3518..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_app_profiles call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles. -# -def list_app_profiles - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new - - # Call the list_app_profiles method. - result = client.list_app_profiles request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb deleted file mode 100644 index 8545983eb3a3..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_clusters call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters. -# -def list_clusters - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new - - # Call the list_clusters method. - result = client.list_clusters request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb deleted file mode 100644 index 5090d8624697..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets. -# -def list_hot_tablets - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new - - # Call the list_hot_tablets method. - result = client.list_hot_tablets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb deleted file mode 100644 index a4038642c51f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_instances call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances. -# -def list_instances - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new - - # Call the list_instances method. - result = client.list_instances request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb deleted file mode 100644 index 09e85d564f89..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_logical_views call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views. -# -def list_logical_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new - - # Call the list_logical_views method. - result = client.list_logical_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb deleted file mode 100644 index 37d40ffb913e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_materialized_views call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views. -# -def list_materialized_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new - - # Call the list_materialized_views method. - result = client.list_materialized_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb deleted file mode 100644 index 3923f7ae400d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster. -# -def partial_update_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new - - # Call the partial_update_cluster method. - result = client.partial_update_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb deleted file mode 100644 index 1630801fd676..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the partial_update_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance. -# -def partial_update_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new - - # Call the partial_update_instance method. - result = client.partial_update_instance request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb deleted file mode 100644 index 834fab5b6899..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the set_iam_policy call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb deleted file mode 100644 index 1e00c002ab00..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb deleted file mode 100644 index 30f88f2bf050..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile. -# -def update_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new - - # Call the update_app_profile method. - result = client.update_app_profile request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb deleted file mode 100644 index da1c506529be..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster. -# -def update_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::Cluster.new - - # Call the update_cluster method. - result = client.update_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb deleted file mode 100644 index 2aeb910c78ba..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance. -# -def update_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::Instance.new - - # Call the update_instance method. - result = client.update_instance request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb deleted file mode 100644 index 1cb0d166a85e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view. -# -def update_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new - - # Call the update_logical_view method. - result = client.update_logical_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb deleted file mode 100644 index da78d73ca450..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view. -# -def update_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new - - # Call the update_materialized_view method. - result = client.update_materialized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb deleted file mode 100644 index 56bd26ccebc2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the check_consistency call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency. -# -def check_consistency - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new - - # Call the check_consistency method. - result = client.check_consistency request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb deleted file mode 100644 index 32e9e991b2e0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the copy_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup. -# -def copy_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new - - # Call the copy_backup method. - result = client.copy_backup request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb deleted file mode 100644 index 93ca1b05050a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view. -# -def create_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new - - # Call the create_authorized_view method. - result = client.create_authorized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb deleted file mode 100644 index bbd26b8f605e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup. -# -def create_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new - - # Call the create_backup method. - result = client.create_backup request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb deleted file mode 100644 index 3cf630415459..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle. -# -def create_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new - - # Call the create_schema_bundle method. - result = client.create_schema_bundle request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb deleted file mode 100644 index 8d98a8471082..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table. -# -def create_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new - - # Call the create_table method. - result = client.create_table request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb deleted file mode 100644 index 3cf2e7283166..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot. -# -def create_table_from_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new - - # Call the create_table_from_snapshot method. - result = client.create_table_from_snapshot request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb deleted file mode 100644 index c5937706f326..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view. -# -def delete_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new - - # Call the delete_authorized_view method. - result = client.delete_authorized_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb deleted file mode 100644 index d710addca48c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup. -# -def delete_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new - - # Call the delete_backup method. - result = client.delete_backup request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb deleted file mode 100644 index 3b07c8b887f2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle. -# -def delete_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new - - # Call the delete_schema_bundle method. - result = client.delete_schema_bundle request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb deleted file mode 100644 index c7ab27d40147..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot. -# -def delete_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new - - # Call the delete_snapshot method. - result = client.delete_snapshot request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb deleted file mode 100644 index 315ff9367627..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table. -# -def delete_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new - - # Call the delete_table method. - result = client.delete_table request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb deleted file mode 100644 index 2b6cd7d2303a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the drop_row_range call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range. -# -def drop_row_range - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new - - # Call the drop_row_range method. - result = client.drop_row_range request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb deleted file mode 100644 index 88734d55318b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the generate_consistency_token call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token. -# -def generate_consistency_token - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new - - # Call the generate_consistency_token method. - result = client.generate_consistency_token request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb deleted file mode 100644 index 79ae8f10cc46..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view. -# -def get_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new - - # Call the get_authorized_view method. - result = client.get_authorized_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb deleted file mode 100644 index 6c0f68dd6078..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup. -# -def get_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new - - # Call the get_backup method. - result = client.get_backup request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb deleted file mode 100644 index 33969bfecb74..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_iam_policy call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb deleted file mode 100644 index 108356d532d0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle. -# -def get_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new - - # Call the get_schema_bundle method. - result = client.get_schema_bundle request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb deleted file mode 100644 index da9903b816ee..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot. -# -def get_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new - - # Call the get_snapshot method. - result = client.get_snapshot request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb deleted file mode 100644 index de73a71a944b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table. -# -def get_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new - - # Call the get_table method. - result = client.get_table request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb deleted file mode 100644 index 975edad00358..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_authorized_views call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views. -# -def list_authorized_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new - - # Call the list_authorized_views method. - result = client.list_authorized_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb deleted file mode 100644 index 113b0761aba0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_backups call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups. -# -def list_backups - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new - - # Call the list_backups method. - result = client.list_backups request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb deleted file mode 100644 index 03b8c6193c5a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_schema_bundles call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles. -# -def list_schema_bundles - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new - - # Call the list_schema_bundles method. - result = client.list_schema_bundles request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb deleted file mode 100644 index 1c34195822a7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_snapshots call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots. -# -def list_snapshots - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new - - # Call the list_snapshots method. - result = client.list_snapshots request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb deleted file mode 100644 index 3c482ff03261..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_tables call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables. -# -def list_tables - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new - - # Call the list_tables method. - result = client.list_tables request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb deleted file mode 100644 index e711d7477c88..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the modify_column_families call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families. -# -def modify_column_families - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new - - # Call the modify_column_families method. - result = client.modify_column_families request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb deleted file mode 100644 index 3c28d6009330..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the restore_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table. -# -def restore_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new - - # Call the restore_table method. - result = client.restore_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb deleted file mode 100644 index ff5fff58358d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the set_iam_policy call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb deleted file mode 100644 index 4d171700843e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the snapshot_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table. -# -def snapshot_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new - - # Call the snapshot_table method. - result = client.snapshot_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb deleted file mode 100644 index abe2e3451d02..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the test_iam_permissions call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb deleted file mode 100644 index 00c9558cd83c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the undelete_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table. -# -def undelete_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new - - # Call the undelete_table method. - result = client.undelete_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb deleted file mode 100644 index 383be6ce0938..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view. -# -def update_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new - - # Call the update_authorized_view method. - result = client.update_authorized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb deleted file mode 100644 index 32aa9d456b3a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup. -# -def update_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new - - # Call the update_backup method. - result = client.update_backup request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb deleted file mode 100644 index c33e873f5e7d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle. -# -def update_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new - - # Call the update_schema_bundle method. - result = client.update_schema_bundle request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb deleted file mode 100644 index d49e5c04deca..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table. -# -def update_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new - - # Call the update_table method. - result = client.update_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json deleted file mode 100644 index 307c646525b1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json +++ /dev/null @@ -1,2655 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-bigtable-admin-v2", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.bigtable.admin.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", - "title": "Snippet for the create_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance.", - "file": "bigtable_instance_admin/create_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", - "title": "Snippet for the get_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance.", - "file": "bigtable_instance_admin/get_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", - "title": "Snippet for the list_instances call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances.", - "file": "bigtable_instance_admin/list_instances.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_instances", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListInstances", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", - "title": "Snippet for the update_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance.", - "file": "bigtable_instance_admin/update_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", - "title": "Snippet for the partial_update_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance.", - "file": "bigtable_instance_admin/partial_update_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "partial_update_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "PartialUpdateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", - "title": "Snippet for the delete_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance.", - "file": "bigtable_instance_admin/delete_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", - "title": "Snippet for the create_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster.", - "file": "bigtable_instance_admin/create_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", - "title": "Snippet for the get_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster.", - "file": "bigtable_instance_admin/get_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", - "title": "Snippet for the list_clusters call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters.", - "file": "bigtable_instance_admin/list_clusters.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_clusters", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListClusters", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", - "title": "Snippet for the update_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster.", - "file": "bigtable_instance_admin/update_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", - "title": "Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster.", - "file": "bigtable_instance_admin/partial_update_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "partial_update_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "PartialUpdateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", - "title": "Snippet for the delete_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster.", - "file": "bigtable_instance_admin/delete_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", - "title": "Snippet for the create_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile.", - "file": "bigtable_instance_admin/create_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", - "title": "Snippet for the get_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile.", - "file": "bigtable_instance_admin/get_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", - "title": "Snippet for the list_app_profiles call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles.", - "file": "bigtable_instance_admin/list_app_profiles.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_app_profiles", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListAppProfiles", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", - "title": "Snippet for the update_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile.", - "file": "bigtable_instance_admin/update_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", - "title": "Snippet for the delete_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile.", - "file": "bigtable_instance_admin/delete_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy.", - "file": "bigtable_instance_admin/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy.", - "file": "bigtable_instance_admin/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions.", - "file": "bigtable_instance_admin/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", - "title": "Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets.", - "file": "bigtable_instance_admin/list_hot_tablets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_hot_tablets", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListHotTablets", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync", - "title": "Snippet for the create_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view.", - "file": "bigtable_instance_admin/create_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync", - "title": "Snippet for the get_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view.", - "file": "bigtable_instance_admin/get_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::LogicalView", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync", - "title": "Snippet for the list_logical_views call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views.", - "file": "bigtable_instance_admin/list_logical_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_logical_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListLogicalViews", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync", - "title": "Snippet for the update_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view.", - "file": "bigtable_instance_admin/update_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync", - "title": "Snippet for the delete_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view.", - "file": "bigtable_instance_admin/delete_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync", - "title": "Snippet for the create_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view.", - "file": "bigtable_instance_admin/create_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync", - "title": "Snippet for the get_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view.", - "file": "bigtable_instance_admin/get_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::MaterializedView", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync", - "title": "Snippet for the list_materialized_views call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views.", - "file": "bigtable_instance_admin/list_materialized_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_materialized_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListMaterializedViews", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync", - "title": "Snippet for the update_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view.", - "file": "bigtable_instance_admin/update_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync", - "title": "Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view.", - "file": "bigtable_instance_admin/delete_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", - "title": "Snippet for the create_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table.", - "file": "bigtable_table_admin/create_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", - "title": "Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot.", - "file": "bigtable_table_admin/create_table_from_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_table_from_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateTableFromSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", - "title": "Snippet for the list_tables call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables.", - "file": "bigtable_table_admin/list_tables.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_tables", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListTables", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", - "title": "Snippet for the get_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table.", - "file": "bigtable_table_admin/get_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", - "title": "Snippet for the update_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table.", - "file": "bigtable_table_admin/update_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", - "title": "Snippet for the delete_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table.", - "file": "bigtable_table_admin/delete_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", - "title": "Snippet for the undelete_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table.", - "file": "bigtable_table_admin/undelete_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "undelete_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UndeleteTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", - "title": "Snippet for the create_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view.", - "file": "bigtable_table_admin/create_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", - "title": "Snippet for the list_authorized_views call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views.", - "file": "bigtable_table_admin/list_authorized_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_authorized_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListAuthorizedViews", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", - "title": "Snippet for the get_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view.", - "file": "bigtable_table_admin/get_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AuthorizedView", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", - "title": "Snippet for the update_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view.", - "file": "bigtable_table_admin/update_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", - "title": "Snippet for the delete_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view.", - "file": "bigtable_table_admin/delete_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", - "title": "Snippet for the modify_column_families call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families.", - "file": "bigtable_table_admin/modify_column_families.rb", - "language": "RUBY", - "client_method": { - "short_name": "modify_column_families", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ModifyColumnFamilies", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", - "title": "Snippet for the drop_row_range call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range.", - "file": "bigtable_table_admin/drop_row_range.rb", - "language": "RUBY", - "client_method": { - "short_name": "drop_row_range", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DropRowRange", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", - "title": "Snippet for the generate_consistency_token call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token.", - "file": "bigtable_table_admin/generate_consistency_token.rb", - "language": "RUBY", - "client_method": { - "short_name": "generate_consistency_token", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GenerateConsistencyToken", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", - "title": "Snippet for the check_consistency call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency.", - "file": "bigtable_table_admin/check_consistency.rb", - "language": "RUBY", - "client_method": { - "short_name": "check_consistency", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CheckConsistency", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", - "title": "Snippet for the snapshot_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table.", - "file": "bigtable_table_admin/snapshot_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "snapshot_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "SnapshotTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", - "title": "Snippet for the get_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot.", - "file": "bigtable_table_admin/get_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Snapshot", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", - "title": "Snippet for the list_snapshots call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots.", - "file": "bigtable_table_admin/list_snapshots.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_snapshots", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListSnapshots", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", - "title": "Snippet for the delete_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot.", - "file": "bigtable_table_admin/delete_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", - "title": "Snippet for the create_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup.", - "file": "bigtable_table_admin/create_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", - "title": "Snippet for the get_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup.", - "file": "bigtable_table_admin/get_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", - "title": "Snippet for the update_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup.", - "file": "bigtable_table_admin/update_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", - "title": "Snippet for the delete_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup.", - "file": "bigtable_table_admin/delete_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", - "title": "Snippet for the list_backups call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups.", - "file": "bigtable_table_admin/list_backups.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_backups", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListBackups", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", - "title": "Snippet for the restore_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table.", - "file": "bigtable_table_admin/restore_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "restore_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "RestoreTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", - "title": "Snippet for the copy_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup.", - "file": "bigtable_table_admin/copy_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "copy_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CopyBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy.", - "file": "bigtable_table_admin/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy.", - "file": "bigtable_table_admin/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions.", - "file": "bigtable_table_admin/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync", - "title": "Snippet for the create_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle.", - "file": "bigtable_table_admin/create_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync", - "title": "Snippet for the update_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle.", - "file": "bigtable_table_admin/update_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync", - "title": "Snippet for the get_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle.", - "file": "bigtable_table_admin/get_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::SchemaBundle", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync", - "title": "Snippet for the list_schema_bundles call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles.", - "file": "bigtable_table_admin/list_schema_bundles.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_schema_bundles", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListSchemaBundles", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync", - "title": "Snippet for the delete_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle.", - "file": "bigtable_table_admin/delete_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb deleted file mode 100644 index d7820c4ab5a3..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" -require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb deleted file mode 100644 index 2454f9a7005c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb +++ /dev/null @@ -1,139 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_app_profile_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.app_profile_path project: "value0", instance: "value1", app_profile: "value2" - assert_equal "projects/value0/instances/value1/appProfiles/value2", path - end - end - - def test_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" - assert_equal "projects/value0/instances/value1/clusters/value2", path - end - end - - def test_crypto_key_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path - end - end - - def test_instance_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.instance_path project: "value0", instance: "value1" - assert_equal "projects/value0/instances/value1", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_logical_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.logical_view_path project: "value0", instance: "value1", logical_view: "value2" - assert_equal "projects/value0/instances/value1/logicalViews/value2", path - end - end - - def test_materialized_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.materialized_view_path project: "value0", instance: "value1", materialized_view: "value2" - assert_equal "projects/value0/instances/value1/materializedViews/value2", path - end - end - - def test_project_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.project_path project: "value0" - assert_equal "projects/value0", path - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb deleted file mode 100644 index 9ff63d5bec0c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb +++ /dev/null @@ -1,2093 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_instance - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - instance_id = "hello world" - instance = {} - clusters = {} - - create_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["instance_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] - assert_equal({}, request["clusters"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_instance parent: parent, instance_id: instance_id, instance: instance, clusters: clusters do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_instance ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_instance(::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_instance_client_stub.call_rpc_count - end - end - - def test_get_instance - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_instance({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_instance name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_instance ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_instance({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_instance(::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_instance_client_stub.call_rpc_count - end - end - - def test_list_instances - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_token = "hello world" - - list_instances_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_instances, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_instances_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_instances({ parent: parent, page_token: page_token }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_instances parent: parent, page_token: page_token do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_instances ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_instances({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_instances(::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_instances_client_stub.call_rpc_count - end - end - - def test_update_instance - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - display_name = "hello world" - state = :STATE_NOT_KNOWN - type = :TYPE_UNSPECIFIED - labels = {} - create_time = {} - satisfies_pzs = true - satisfies_pzi = true - tags = {} - - update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Instance, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["display_name"] - assert_equal :STATE_NOT_KNOWN, request["state"] - assert_equal :TYPE_UNSPECIFIED, request["type"] - assert_equal({}, request["labels"].to_h) - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] - assert_equal true, request["satisfies_pzs"] - assert request.has_satisfies_pzs? - assert_equal true, request["satisfies_pzi"] - assert request.has_satisfies_pzi? - assert_equal({}, request["tags"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_instance name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_instance_client_stub.call_rpc_count - end - end - - def test_partial_update_instance - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - instance = {} - update_mask = {} - - partial_update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :partial_update_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, partial_update_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.partial_update_instance({ instance: instance, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.partial_update_instance instance: instance, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.partial_update_instance ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.partial_update_instance({ instance: instance, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.partial_update_instance(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, partial_update_instance_client_stub.call_rpc_count - end - end - - def test_delete_instance - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_instance({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_instance name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_instance ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_instance({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_instance(::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_instance_client_stub.call_rpc_count - end - end - - def test_create_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - cluster_id = "hello world" - cluster = {} - - create_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["cluster_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_cluster parent: parent, cluster_id: cluster_id, cluster: cluster do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_cluster ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_cluster(::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_cluster_client_stub.call_rpc_count - end - end - - def test_get_cluster - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Cluster.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_cluster ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_cluster(::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_cluster_client_stub.call_rpc_count - end - end - - def test_list_clusters - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_token = "hello world" - - list_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_clusters, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_clusters_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_clusters({ parent: parent, page_token: page_token }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_clusters parent: parent, page_token: page_token do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_clusters ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_clusters({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_clusters(::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_clusters_client_stub.call_rpc_count - end - end - - def test_update_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - location = "hello world" - state = :STATE_NOT_KNOWN - serve_nodes = 42 - node_scaling_factor = :NODE_SCALING_FACTOR_UNSPECIFIED - cluster_config = {} - default_storage_type = :STORAGE_TYPE_UNSPECIFIED - encryption_config = {} - - update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Cluster, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["location"] - assert_equal :STATE_NOT_KNOWN, request["state"] - assert_equal 42, request["serve_nodes"] - assert_equal :NODE_SCALING_FACTOR_UNSPECIFIED, request["node_scaling_factor"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig), request["cluster_config"] - assert_equal :cluster_config, request.config - assert_equal :STORAGE_TYPE_UNSPECIFIED, request["default_storage_type"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig), request["encryption_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_cluster name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_cluster ::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_cluster(::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_cluster_client_stub.call_rpc_count - end - end - - def test_partial_update_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - cluster = {} - update_mask = {} - - partial_update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :partial_update_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, partial_update_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.partial_update_cluster cluster: cluster, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.partial_update_cluster ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.partial_update_cluster(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, partial_update_cluster_client_stub.call_rpc_count - end - end - - def test_delete_cluster - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_cluster ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_cluster(::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_cluster_client_stub.call_rpc_count - end - end - - def test_create_app_profile - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - app_profile_id = "hello world" - app_profile = {} - ignore_warnings = true - - create_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["app_profile_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_app_profile parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_app_profile ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_app_profile(::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_app_profile_client_stub.call_rpc_count - end - end - - def test_get_app_profile - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_app_profile({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_app_profile name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_app_profile ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_app_profile({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_app_profile(::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_app_profile_client_stub.call_rpc_count - end - end - - def test_list_app_profiles - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_app_profiles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_app_profiles, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_app_profiles_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_app_profiles parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_app_profiles ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_app_profiles(::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_app_profiles_client_stub.call_rpc_count - end - end - - def test_update_app_profile - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - app_profile = {} - update_mask = {} - ignore_warnings = true - - update_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_app_profile app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_app_profile ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_app_profile(::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_app_profile_client_stub.call_rpc_count - end - end - - def test_delete_app_profile - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - ignore_warnings = true - - delete_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_app_profile name: name, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_app_profile ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_app_profile(::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_app_profile_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_list_hot_tablets - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - start_time = {} - end_time = {} - page_size = 42 - page_token = "hello world" - - list_hot_tablets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_hot_tablets, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_hot_tablets_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_hot_tablets parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_hot_tablets ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_hot_tablets(::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_hot_tablets_client_stub.call_rpc_count - end - end - - def test_create_logical_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - logical_view_id = "hello world" - logical_view = {} - - create_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["logical_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_logical_view parent: parent, logical_view_id: logical_view_id, logical_view: logical_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_logical_view ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_logical_view(::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_logical_view_client_stub.call_rpc_count - end - end - - def test_get_logical_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::LogicalView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_logical_view({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_logical_view name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_logical_view ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_logical_view({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_logical_view(::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_logical_view_client_stub.call_rpc_count - end - end - - def test_list_logical_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_logical_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_logical_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_logical_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_logical_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_logical_views ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_logical_views(::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_logical_views_client_stub.call_rpc_count - end - end - - def test_update_logical_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - logical_view = {} - update_mask = {} - - update_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_logical_view logical_view: logical_view, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_logical_view ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_logical_view(::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_logical_view_client_stub.call_rpc_count - end - end - - def test_delete_logical_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_logical_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_logical_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_logical_view ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_logical_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_logical_view(::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_logical_view_client_stub.call_rpc_count - end - end - - def test_create_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - materialized_view_id = "hello world" - materialized_view = {} - - create_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["materialized_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_materialized_view parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_materialized_view ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_materialized_view(::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_materialized_view_client_stub.call_rpc_count - end - end - - def test_get_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::MaterializedView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_materialized_view({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_materialized_view name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_materialized_view ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_materialized_view({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_materialized_view(::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_materialized_view_client_stub.call_rpc_count - end - end - - def test_list_materialized_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_materialized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_materialized_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_materialized_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_materialized_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_materialized_views ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_materialized_views(::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_materialized_views_client_stub.call_rpc_count - end - end - - def test_update_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - materialized_view = {} - update_mask = {} - - update_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_materialized_view materialized_view: materialized_view, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_materialized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_materialized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_materialized_view_client_stub.call_rpc_count - end - end - - def test_delete_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_materialized_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_materialized_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_materialized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_materialized_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_materialized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_materialized_view_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb deleted file mode 100644 index b4858530f9ca..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_table_admin_pb" -require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb deleted file mode 100644 index f660e3430c6e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb +++ /dev/null @@ -1,151 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_authorized_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.authorized_view_path project: "value0", instance: "value1", table: "value2", authorized_view: "value3" - assert_equal "projects/value0/instances/value1/tables/value2/authorizedViews/value3", path - end - end - - def test_backup_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.backup_path project: "value0", instance: "value1", cluster: "value2", backup: "value3" - assert_equal "projects/value0/instances/value1/clusters/value2/backups/value3", path - end - end - - def test_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" - assert_equal "projects/value0/instances/value1/clusters/value2", path - end - end - - def test_crypto_key_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path - end - end - - def test_instance_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.instance_path project: "value0", instance: "value1" - assert_equal "projects/value0/instances/value1", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_schema_bundle_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.schema_bundle_path project: "value0", instance: "value1", table: "value2", schema_bundle: "value3" - assert_equal "projects/value0/instances/value1/tables/value2/schemaBundles/value3", path - end - end - - def test_snapshot_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.snapshot_path project: "value0", instance: "value1", cluster: "value2", snapshot: "value3" - assert_equal "projects/value0/instances/value1/clusters/value2/snapshots/value3", path - end - end - - def test_table_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.table_path project: "value0", instance: "value1", table: "value2" - assert_equal "projects/value0/instances/value1/tables/value2", path - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb deleted file mode 100644 index 44ea7cd17fc5..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb +++ /dev/null @@ -1,2339 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_table_admin_pb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_table - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - table = {} - initial_splits = [{}] - - create_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, request["initial_splits"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_table parent: parent, table_id: table_id, table: table, initial_splits: initial_splits do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_table ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_table(::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_table_client_stub.call_rpc_count - end - end - - def test_create_table_from_snapshot - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - source_snapshot = "hello world" - - create_table_from_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_table_from_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal "hello world", request["source_snapshot"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_table_from_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_table_from_snapshot parent: parent, table_id: table_id, source_snapshot: source_snapshot do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_table_from_snapshot ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_table_from_snapshot(::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_table_from_snapshot_client_stub.call_rpc_count - end - end - - def test_list_tables - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - view = :VIEW_UNSPECIFIED - page_size = 42 - page_token = "hello world" - - list_tables_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_tables, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, request - assert_equal "hello world", request["parent"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_tables_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_tables parent: parent, view: view, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_tables ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_tables(::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_tables_client_stub.call_rpc_count - end - end - - def test_get_table - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :VIEW_UNSPECIFIED - - get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, request - assert_equal "hello world", request["name"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_table({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_table name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_table ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_table({ name: name, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_table(::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_table_client_stub.call_rpc_count - end - end - - def test_update_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - table = {} - update_mask = {} - ignore_warnings = true - - update_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_table table: table, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_table ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_table(::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_table_client_stub.call_rpc_count - end - end - - def test_delete_table - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_table({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_table name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_table ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_table({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_table(::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_table_client_stub.call_rpc_count - end - end - - def test_undelete_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - undelete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :undelete_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, undelete_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.undelete_table({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.undelete_table name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.undelete_table ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.undelete_table({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.undelete_table(::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, undelete_table_client_stub.call_rpc_count - end - end - - def test_create_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - authorized_view_id = "hello world" - authorized_view = {} - - create_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["authorized_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_authorized_view parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_authorized_view ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_authorized_view(::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_authorized_view_client_stub.call_rpc_count - end - end - - def test_list_authorized_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - view = :RESPONSE_VIEW_UNSPECIFIED - - list_authorized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_authorized_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_authorized_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_authorized_views parent: parent, page_size: page_size, page_token: page_token, view: view do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_authorized_views ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_authorized_views(::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_authorized_views_client_stub.call_rpc_count - end - end - - def test_get_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :RESPONSE_VIEW_UNSPECIFIED - - get_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_authorized_view({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_authorized_view name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_authorized_view ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_authorized_view({ name: name, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_authorized_view(::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_authorized_view_client_stub.call_rpc_count - end - end - - def test_update_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - authorized_view = {} - update_mask = {} - ignore_warnings = true - - update_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_authorized_view authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_authorized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_authorized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_authorized_view_client_stub.call_rpc_count - end - end - - def test_delete_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_authorized_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_authorized_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_authorized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_authorized_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_authorized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_authorized_view_client_stub.call_rpc_count - end - end - - def test_modify_column_families - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - modifications = [{}] - ignore_warnings = true - - modify_column_families_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :modify_column_families, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, request - assert_equal "hello world", request["name"] - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, request["modifications"].first - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, modify_column_families_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.modify_column_families name: name, modifications: modifications, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.modify_column_families ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.modify_column_families(::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, modify_column_families_client_stub.call_rpc_count - end - end - - def test_drop_row_range - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - row_key_prefix = "hello world" - - drop_row_range_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :drop_row_range, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["row_key_prefix"] - assert_equal :row_key_prefix, request.target - refute_nil options - end - - Gapic::ServiceStub.stub :new, drop_row_range_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.drop_row_range name: name, row_key_prefix: row_key_prefix do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.drop_row_range ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.drop_row_range(::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, drop_row_range_client_stub.call_rpc_count - end - end - - def test_generate_consistency_token - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - generate_consistency_token_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :generate_consistency_token, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, generate_consistency_token_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.generate_consistency_token({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.generate_consistency_token name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.generate_consistency_token ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.generate_consistency_token({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.generate_consistency_token(::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, generate_consistency_token_client_stub.call_rpc_count - end - end - - def test_check_consistency - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - consistency_token = "hello world" - standard_read_remote_writes = {} - - check_consistency_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :check_consistency, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["consistency_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites), request["standard_read_remote_writes"] - assert_equal :standard_read_remote_writes, request.mode - refute_nil options - end - - Gapic::ServiceStub.stub :new, check_consistency_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.check_consistency name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.check_consistency ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.check_consistency(::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, check_consistency_client_stub.call_rpc_count - end - end - - def test_snapshot_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - cluster = "hello world" - snapshot_id = "hello world" - ttl = {} - description = "hello world" - - snapshot_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :snapshot_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["cluster"] - assert_equal "hello world", request["snapshot_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] - assert_equal "hello world", request["description"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, snapshot_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.snapshot_table name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.snapshot_table ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.snapshot_table(::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, snapshot_table_client_stub.call_rpc_count - end - end - - def test_get_snapshot - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Snapshot.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_snapshot({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_snapshot name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_snapshot ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_snapshot({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_snapshot(::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_snapshot_client_stub.call_rpc_count - end - end - - def test_list_snapshots - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_snapshots, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_snapshots_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_snapshots parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_snapshots ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_snapshots(::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_snapshots_client_stub.call_rpc_count - end - end - - def test_delete_snapshot - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_snapshot({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_snapshot name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_snapshot ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_snapshot({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_snapshot(::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_snapshot_client_stub.call_rpc_count - end - end - - def test_create_backup - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - backup_id = "hello world" - backup = {} - - create_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["backup_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_backup parent: parent, backup_id: backup_id, backup: backup do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_backup ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_backup(::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_backup_client_stub.call_rpc_count - end - end - - def test_get_backup - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_backup({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_backup name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_backup ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_backup({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_backup(::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_backup_client_stub.call_rpc_count - end - end - - def test_update_backup - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - backup = {} - update_mask = {} - - update_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_backup({ backup: backup, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_backup backup: backup, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_backup ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_backup({ backup: backup, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_backup(::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_backup_client_stub.call_rpc_count - end - end - - def test_delete_backup - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_backup({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_backup name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_backup ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_backup({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_backup(::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_backup_client_stub.call_rpc_count - end - end - - def test_list_backups - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - order_by = "hello world" - page_size = 42 - page_token = "hello world" - - list_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_backups, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_backups_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_backups parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_backups ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_backups(::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_backups_client_stub.call_rpc_count - end - end - - def test_restore_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - backup = "hello world" - - restore_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :restore_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal "hello world", request["backup"] - assert_equal :backup, request.source - refute_nil options - end - - Gapic::ServiceStub.stub :new, restore_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.restore_table({ parent: parent, table_id: table_id, backup: backup }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.restore_table parent: parent, table_id: table_id, backup: backup do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.restore_table ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.restore_table({ parent: parent, table_id: table_id, backup: backup }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.restore_table(::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, restore_table_client_stub.call_rpc_count - end - end - - def test_copy_backup - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - backup_id = "hello world" - source_backup = "hello world" - expire_time = {} - - copy_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :copy_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["backup_id"] - assert_equal "hello world", request["source_backup"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["expire_time"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, copy_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.copy_backup parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.copy_backup ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.copy_backup(::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, copy_backup_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_create_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - schema_bundle_id = "hello world" - schema_bundle = {} - - create_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["schema_bundle_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_schema_bundle parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_schema_bundle_client_stub.call_rpc_count - end - end - - def test_update_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - schema_bundle = {} - update_mask = {} - ignore_warnings = true - - update_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_schema_bundle schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_schema_bundle_client_stub.call_rpc_count - end - end - - def test_get_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_schema_bundle({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_schema_bundle name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_schema_bundle({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_schema_bundle_client_stub.call_rpc_count - end - end - - def test_list_schema_bundles - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_schema_bundles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_schema_bundles, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_schema_bundles_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_schema_bundles parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_schema_bundles ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_schema_bundles(::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_schema_bundles_client_stub.call_rpc_count - end - end - - def test_delete_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_schema_bundle({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_schema_bundle name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_schema_bundle({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_schema_bundle_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct" From b18b37318cb87e2336ee1ac850275ff3d1b2b06f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 25 Mar 2026 21:04:51 +0000 Subject: [PATCH 3/8] feat: publish client batch config schema feat: publish new error reasons docs: fix documentation formatting docs: update various comments docs: update license year PiperOrigin-RevId: 889289393 Source-Link: https://github.com/googleapis/googleapis/commit/94bc991b3f1df58bc841801631715894a7ac5e28 Source-Link: https://github.com/googleapis/googleapis-gen/commit/db7143a338a7c75839b4698cb3ea6f1013b4c3c7 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWJpZ3RhYmxlLWFkbWluLXYyLy5Pd2xCb3QueWFtbCIsImgiOiJkYjcxNDNhMzM4YTdjNzU4MzliNDY5OGNiM2VhNmYxMDEzYjRjM2M3In0= --- .../google-cloud-bigtable-admin-v2/.gitignore | 22 + .../.repo-metadata.json | 18 + .../.rubocop.yml | 33 + .../google-cloud-bigtable-admin-v2/.toys.rb | 28 + .../google-cloud-bigtable-admin-v2/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../CHANGELOG.md | 2 + .../google-cloud-bigtable-admin-v2/Gemfile | 14 + .../google-cloud-bigtable-admin-v2/LICENSE.md | 201 + .../google-cloud-bigtable-admin-v2/README.md | 154 + .../google-cloud-bigtable-admin-v2/Rakefile | 169 + .../gapic_metadata.json | 357 ++ .../google-cloud-bigtable-admin-v2.gemspec | 29 + .../lib/google-cloud-bigtable-admin-v2.rb | 21 + .../admin/v2/bigtable_instance_admin_pb.rb | 78 + .../v2/bigtable_instance_admin_services_pb.rb | 142 + .../admin/v2/bigtable_table_admin_pb.rb | 91 + .../v2/bigtable_table_admin_services_pb.rb | 182 + .../lib/google/bigtable/admin/v2/common_pb.rb | 26 + .../google/bigtable/admin/v2/instance_pb.rb | 49 + .../lib/google/bigtable/admin/v2/table_pb.rb | 58 + .../lib/google/bigtable/admin/v2/types_pb.rb | 57 + .../lib/google/cloud/bigtable/admin/v2.rb | 43 + .../admin/v2/bigtable_instance_admin.rb | 54 + .../v2/bigtable_instance_admin/client.rb | 3710 ++++++++++++++ .../v2/bigtable_instance_admin/credentials.rb | 59 + .../v2/bigtable_instance_admin/operations.rb | 843 ++++ .../admin/v2/bigtable_instance_admin/paths.rb | 180 + .../bigtable/admin/v2/bigtable_table_admin.rb | 56 + .../admin/v2/bigtable_table_admin/client.rb | 4266 +++++++++++++++++ .../v2/bigtable_table_admin/credentials.rb | 58 + .../v2/bigtable_table_admin/operations.rb | 843 ++++ .../admin/v2/bigtable_table_admin/paths.rb | 214 + .../google/cloud/bigtable/admin/v2/version.rb | 30 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 589 +++ .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../admin/v2/bigtable_instance_admin.rb | 767 +++ .../bigtable/admin/v2/bigtable_table_admin.rb | 1167 +++++ .../google/bigtable/admin/v2/common.rb | 58 + .../google/bigtable/admin/v2/instance.rb | 519 ++ .../google/bigtable/admin/v2/table.rb | 741 +++ .../google/bigtable/admin/v2/types.rb | 575 +++ .../proto_docs/google/iam/v1/iam_policy.rb | 87 + .../proto_docs/google/iam/v1/options.rb | 50 + .../proto_docs/google/iam/v1/policy.rb | 426 ++ .../google/longrunning/operations.rb | 191 + .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/rpc/status.rb | 48 + .../proto_docs/google/type/expr.rb | 75 + .../snippets/Gemfile | 32 + .../create_app_profile.rb | 47 + .../bigtable_instance_admin/create_cluster.rb | 54 + .../create_instance.rb | 54 + .../create_logical_view.rb | 54 + .../create_materialized_view.rb | 54 + .../delete_app_profile.rb | 47 + .../bigtable_instance_admin/delete_cluster.rb | 47 + .../delete_instance.rb | 47 + .../delete_logical_view.rb | 47 + .../delete_materialized_view.rb | 47 + .../get_app_profile.rb | 47 + .../bigtable_instance_admin/get_cluster.rb | 47 + .../bigtable_instance_admin/get_iam_policy.rb | 47 + .../bigtable_instance_admin/get_instance.rb | 47 + .../get_logical_view.rb | 47 + .../get_materialized_view.rb | 47 + .../list_app_profiles.rb | 51 + .../bigtable_instance_admin/list_clusters.rb | 47 + .../list_hot_tablets.rb | 51 + .../bigtable_instance_admin/list_instances.rb | 47 + .../list_logical_views.rb | 51 + .../list_materialized_views.rb | 51 + .../partial_update_cluster.rb | 54 + .../partial_update_instance.rb | 54 + .../bigtable_instance_admin/set_iam_policy.rb | 47 + .../test_iam_permissions.rb | 47 + .../update_app_profile.rb | 54 + .../bigtable_instance_admin/update_cluster.rb | 54 + .../update_instance.rb | 47 + .../update_logical_view.rb | 54 + .../update_materialized_view.rb | 54 + .../bigtable_table_admin/check_consistency.rb | 47 + .../bigtable_table_admin/copy_backup.rb | 54 + .../create_authorized_view.rb | 54 + .../bigtable_table_admin/create_backup.rb | 54 + .../create_schema_bundle.rb | 54 + .../bigtable_table_admin/create_table.rb | 47 + .../create_table_from_snapshot.rb | 54 + .../delete_authorized_view.rb | 47 + .../bigtable_table_admin/delete_backup.rb | 47 + .../delete_schema_bundle.rb | 47 + .../bigtable_table_admin/delete_snapshot.rb | 47 + .../bigtable_table_admin/delete_table.rb | 47 + .../bigtable_table_admin/drop_row_range.rb | 47 + .../generate_consistency_token.rb | 47 + .../get_authorized_view.rb | 47 + .../bigtable_table_admin/get_backup.rb | 47 + .../bigtable_table_admin/get_iam_policy.rb | 47 + .../bigtable_table_admin/get_schema_bundle.rb | 47 + .../bigtable_table_admin/get_snapshot.rb | 47 + .../bigtable_table_admin/get_table.rb | 47 + .../list_authorized_views.rb | 51 + .../bigtable_table_admin/list_backups.rb | 51 + .../list_schema_bundles.rb | 51 + .../bigtable_table_admin/list_snapshots.rb | 51 + .../bigtable_table_admin/list_tables.rb | 51 + .../modify_column_families.rb | 47 + .../bigtable_table_admin/restore_table.rb | 54 + .../bigtable_table_admin/set_iam_policy.rb | 47 + .../bigtable_table_admin/snapshot_table.rb | 54 + .../test_iam_permissions.rb | 47 + .../bigtable_table_admin/undelete_table.rb | 54 + .../update_authorized_view.rb | 54 + .../bigtable_table_admin/update_backup.rb | 47 + .../update_schema_bundle.rb | 54 + .../bigtable_table_admin/update_table.rb | 54 + ...pet_metadata_google.bigtable.admin.v2.json | 2655 ++++++++++ ...bigtable_instance_admin_operations_test.rb | 400 ++ .../v2/bigtable_instance_admin_paths_test.rb | 139 + .../admin/v2/bigtable_instance_admin_test.rb | 2093 ++++++++ .../bigtable_table_admin_operations_test.rb | 400 ++ .../v2/bigtable_table_admin_paths_test.rb | 151 + .../admin/v2/bigtable_table_admin_test.rb | 2339 +++++++++ .../test/helper.rb | 26 + 131 files changed, 30054 insertions(+) create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/README.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/common_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json new file mode 100644 index 000000000000..b1afcd60adc1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json @@ -0,0 +1,18 @@ +{ + "api_id": "bigtableadmin.googleapis.com", + "api_shortname": "bigtableadmin", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest", + "distribution_name": "google-cloud-bigtable-admin-v2", + "is_cloud": true, + "language": "ruby", + "name": "bigtableadmin", + "name_pretty": "Cloud Bigtable Admin V2 API", + "product_documentation": "https://cloud.google.com/bigtable", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details.", + "ruby-cloud-env-prefix": "BIGTABLE", + "ruby-cloud-product-url": "https://cloud.google.com/bigtable", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml new file mode 100644 index 000000000000..8b307e35af07 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-bigtable-admin-v2.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-bigtable-admin-v2.rb" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts new file mode 100644 index 000000000000..73aed5753bd5 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Cloud Bigtable Admin V2 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md new file mode 100644 index 000000000000..1bb27d1cc834 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-bigtable-admin-v2 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-bigtable-admin-v2 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/bigtable/admin/v2" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/bigtable/admin/v2" + +::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-bigtable-admin-v2 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/bigtable/admin/v2" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md new file mode 100644 index 000000000000..7fe6da059f1e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Cloud Bigtable Admin V2 API + +Administer your Cloud Bigtable tables and instances. + +Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Cloud Bigtable Admin V2 API. Most users should consider using +the main client gem, +[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-bigtable-admin-v2 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/bigtable/admin/v2" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +request = ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new # (request fields as keyword arguments...) +response = client.create_instance request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/bigtable) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/bigtable/admin/v2" +require "logger" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-bigtable`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-bigtable-admin-v2`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-bigtable`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-bigtable-admin-v2`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile new file mode 100644 index 000000000000..485278a34b9d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-bigtable-admin-v2 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["BIGTABLE_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["BIGTABLE_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["BIGTABLE_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or BIGTABLE_TEST_PROJECT=test123 BIGTABLE_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" + ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["BIGTABLE_PROJECT"] = project + ENV["BIGTABLE_TEST_PROJECT"] = project + ENV["BIGTABLE_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-bigtable-admin-v2 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-bigtable-admin-v2 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-bigtable-admin-v2" + header "google-cloud-bigtable-admin-v2 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-bigtable-admin-v2 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-bigtable-admin-v2 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-bigtable-admin-v2 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-bigtable-admin-v2 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json new file mode 100644 index 000000000000..2370ce3ced54 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json @@ -0,0 +1,357 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.bigtable.admin.v2", + "libraryPackage": "::Google::Cloud::Bigtable::Admin::V2", + "services": { + "BigtableInstanceAdmin": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client", + "rpcs": { + "CreateInstance": { + "methods": [ + "create_instance" + ] + }, + "GetInstance": { + "methods": [ + "get_instance" + ] + }, + "ListInstances": { + "methods": [ + "list_instances" + ] + }, + "UpdateInstance": { + "methods": [ + "update_instance" + ] + }, + "PartialUpdateInstance": { + "methods": [ + "partial_update_instance" + ] + }, + "DeleteInstance": { + "methods": [ + "delete_instance" + ] + }, + "CreateCluster": { + "methods": [ + "create_cluster" + ] + }, + "GetCluster": { + "methods": [ + "get_cluster" + ] + }, + "ListClusters": { + "methods": [ + "list_clusters" + ] + }, + "UpdateCluster": { + "methods": [ + "update_cluster" + ] + }, + "PartialUpdateCluster": { + "methods": [ + "partial_update_cluster" + ] + }, + "DeleteCluster": { + "methods": [ + "delete_cluster" + ] + }, + "CreateAppProfile": { + "methods": [ + "create_app_profile" + ] + }, + "GetAppProfile": { + "methods": [ + "get_app_profile" + ] + }, + "ListAppProfiles": { + "methods": [ + "list_app_profiles" + ] + }, + "UpdateAppProfile": { + "methods": [ + "update_app_profile" + ] + }, + "DeleteAppProfile": { + "methods": [ + "delete_app_profile" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, + "ListHotTablets": { + "methods": [ + "list_hot_tablets" + ] + }, + "CreateLogicalView": { + "methods": [ + "create_logical_view" + ] + }, + "GetLogicalView": { + "methods": [ + "get_logical_view" + ] + }, + "ListLogicalViews": { + "methods": [ + "list_logical_views" + ] + }, + "UpdateLogicalView": { + "methods": [ + "update_logical_view" + ] + }, + "DeleteLogicalView": { + "methods": [ + "delete_logical_view" + ] + }, + "CreateMaterializedView": { + "methods": [ + "create_materialized_view" + ] + }, + "GetMaterializedView": { + "methods": [ + "get_materialized_view" + ] + }, + "ListMaterializedViews": { + "methods": [ + "list_materialized_views" + ] + }, + "UpdateMaterializedView": { + "methods": [ + "update_materialized_view" + ] + }, + "DeleteMaterializedView": { + "methods": [ + "delete_materialized_view" + ] + } + } + } + } + }, + "BigtableTableAdmin": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client", + "rpcs": { + "CreateTable": { + "methods": [ + "create_table" + ] + }, + "CreateTableFromSnapshot": { + "methods": [ + "create_table_from_snapshot" + ] + }, + "ListTables": { + "methods": [ + "list_tables" + ] + }, + "GetTable": { + "methods": [ + "get_table" + ] + }, + "UpdateTable": { + "methods": [ + "update_table" + ] + }, + "DeleteTable": { + "methods": [ + "delete_table" + ] + }, + "UndeleteTable": { + "methods": [ + "undelete_table" + ] + }, + "CreateAuthorizedView": { + "methods": [ + "create_authorized_view" + ] + }, + "ListAuthorizedViews": { + "methods": [ + "list_authorized_views" + ] + }, + "GetAuthorizedView": { + "methods": [ + "get_authorized_view" + ] + }, + "UpdateAuthorizedView": { + "methods": [ + "update_authorized_view" + ] + }, + "DeleteAuthorizedView": { + "methods": [ + "delete_authorized_view" + ] + }, + "ModifyColumnFamilies": { + "methods": [ + "modify_column_families" + ] + }, + "DropRowRange": { + "methods": [ + "drop_row_range" + ] + }, + "GenerateConsistencyToken": { + "methods": [ + "generate_consistency_token" + ] + }, + "CheckConsistency": { + "methods": [ + "check_consistency" + ] + }, + "SnapshotTable": { + "methods": [ + "snapshot_table" + ] + }, + "GetSnapshot": { + "methods": [ + "get_snapshot" + ] + }, + "ListSnapshots": { + "methods": [ + "list_snapshots" + ] + }, + "DeleteSnapshot": { + "methods": [ + "delete_snapshot" + ] + }, + "CreateBackup": { + "methods": [ + "create_backup" + ] + }, + "GetBackup": { + "methods": [ + "get_backup" + ] + }, + "UpdateBackup": { + "methods": [ + "update_backup" + ] + }, + "DeleteBackup": { + "methods": [ + "delete_backup" + ] + }, + "ListBackups": { + "methods": [ + "list_backups" + ] + }, + "RestoreTable": { + "methods": [ + "restore_table" + ] + }, + "CopyBackup": { + "methods": [ + "copy_backup" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, + "CreateSchemaBundle": { + "methods": [ + "create_schema_bundle" + ] + }, + "UpdateSchemaBundle": { + "methods": [ + "update_schema_bundle" + ] + }, + "GetSchemaBundle": { + "methods": [ + "get_schema_bundle" + ] + }, + "ListSchemaBundles": { + "methods": [ + "list_schema_bundles" + ] + }, + "DeleteSchemaBundle": { + "methods": [ + "delete_schema_bundle" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec new file mode 100644 index 000000000000..d15e999177a9 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec @@ -0,0 +1,29 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/bigtable/admin/v2/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-bigtable-admin-v2" + gem.version = Google::Cloud::Bigtable::Admin::V2::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details." + gem.summary = "Administer your Cloud Bigtable tables and instances." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "grpc-google-iam-v1", "~> 1.11" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb new file mode 100644 index 000000000000..0c7aa4cc6208 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/bigtable/admin/v2" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb new file mode 100644 index 000000000000..ada921bfd341 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb @@ -0,0 +1,78 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/bigtable_instance_admin.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/instance_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"Q\n\x12GetInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"T\n\x15\x44\x65leteInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"\xa7\x01\n\x14\x43reateClusterRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\"O\n\x11GetClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"h\n\x13ListClustersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"R\n\x14\x44\x65leteClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfb\x04\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x06tables\x18\x04 \x03(\x0b\x32;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1a\xf9\x01\n\rTableProgress\x12\x1c\n\x14\x65stimated_size_bytes\x18\x02 \x01(\x03\x12\x1e\n\x16\x65stimated_copied_bytes\x18\x03 \x01(\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32\x43.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07\x43OPYING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1al\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x02\x38\x01\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd2\x01\n\x1cPartialUpdateClusterMetadata\x12\x30\n\x0crequest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x10original_request\x18\x03 \x01(\x0b\x32\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8c\x01\n\x1bPartialUpdateClusterRequest\x12\x37\n\x07\x63luster\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xce\x01\n\x17\x43reateAppProfileRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"U\n\x14GetAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\"~\n\x16ListAppProfilesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"v\n\x17\x44\x65leteAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\x12\x1c\n\x0fignore_warnings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\xda\x01\n\x15ListHotTabletsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"k\n\x16ListHotTabletsResponse\x12\x38\n\x0bhot_tablets\x18\x01 \x03(\x0b\x32#.google.bigtable.admin.v2.HotTablet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\x18\x43reateLogicalViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1c\n\x0flogical_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0clogical_view\x18\x03 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\"\xc7\x01\n\x19\x43reateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x15GetLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\"\x8c\x01\n\x17ListLogicalViewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"q\n\x18ListLogicalViewsResponse\x12<\n\rlogical_views\x18\x01 \x03(\x0b\x32%.google.bigtable.admin.v2.LogicalView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x92\x01\n\x18UpdateLogicalViewRequest\x12@\n\x0clogical_view\x18\x01 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xc7\x01\n\x19UpdateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"m\n\x18\x44\x65leteLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1d\x43reateMaterializedViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12!\n\x14materialized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11materialized_view\x18\x03 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\"\xd1\x01\n\x1e\x43reateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1aGetMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\n\x1cListMaterializedViewsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1dListMaterializedViewsResponse\x12\x46\n\x12materialized_views\x18\x01 \x03(\x0b\x32*.google.bigtable.admin.v2.MaterializedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa1\x01\n\x1dUpdateMaterializedViewRequest\x12J\n\x11materialized_view\x18\x01 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xd1\x01\n\x1eUpdateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1d\x44\x65leteMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xe6\x36\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16\x43reateInstanceMetadata\xda\x41$parent,instance_id,instance,clusters\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16UpdateInstanceMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\xda\x41\x19parent,cluster_id,cluster\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\x12\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\'\n\x07\x43luster\x12\x1cPartialUpdateClusterMetadata\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07\x63luster\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"h\xda\x41!parent,app_profile_id,app_profile\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\xda\x41\x17\x61pp_profile,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\xb4\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\xda\x41\x14name,ignore_warnings\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaa\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xde\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xb1\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xe5\x01\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xe8\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xfc\x01\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\xde\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xbf\x01\n\x0eListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a\x30.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\n\x11\x43reateLogicalView\x12\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41(\n\x0bLogicalView\x12\x19\x43reateLogicalViewMetadata\xda\x41#parent,logical_view,logical_view_id\x82\xd3\xe4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0clogical_view\x12\xa9\x01\n\x0eGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1a%.google.bigtable.admin.v2.LogicalView\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xbc\x01\n\x10ListLogicalViews\x12\x31.google.bigtable.admin.v2.ListLogicalViewsRequest\x1a\x32.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\n\x11UpdateLogicalView\x12\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41(\n\x0bLogicalView\x12\x19UpdateLogicalViewMetadata\xda\x41\x18logical_view,update_mask\x82\xd3\xe4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0clogical_view\x12\xa0\x01\n\x11\x44\x65leteLogicalView\x12\x32.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xa8\x02\n\x16\x43reateMaterializedView\x12\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41\x32\n\x10MaterializedView\x12\x1e\x43reateMaterializedViewMetadata\xda\x41-parent,materialized_view,materialized_view_id\x82\xd3\xe4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xbd\x01\n\x13GetMaterializedView\x12\x34.google.bigtable.admin.v2.GetMaterializedViewRequest\x1a*.google.bigtable.admin.v2.MaterializedView\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xd0\x01\n\x15ListMaterializedViews\x12\x36.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1a\x37.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/instances/*}/materializedViews\x12\xaa\x02\n\x16UpdateMaterializedView\x12\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x32\n\x10MaterializedView\x12\x1eUpdateMaterializedViewMetadata\xda\x41\x1dmaterialized_view,update_mask\x82\xd3\xe4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xaf\x01\n\x16\x44\x65leteMaterializedView\x12\x37.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xdd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass + GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass + ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass + ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass + PartialUpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass + DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass + CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass + GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass + ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass + ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass + DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass + CreateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass + UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass + CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass + CreateClusterMetadata::TableProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress").msgclass + CreateClusterMetadata::TableProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State").enummodule + UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass + PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass + PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass + CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass + GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass + ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass + ListAppProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass + UpdateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass + DeleteAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass + UpdateAppProfileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass + ListHotTabletsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsRequest").msgclass + ListHotTabletsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsResponse").msgclass + CreateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewRequest").msgclass + CreateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewMetadata").msgclass + GetLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetLogicalViewRequest").msgclass + ListLogicalViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsRequest").msgclass + ListLogicalViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsResponse").msgclass + UpdateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewRequest").msgclass + UpdateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewMetadata").msgclass + DeleteLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteLogicalViewRequest").msgclass + CreateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewRequest").msgclass + CreateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewMetadata").msgclass + GetMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetMaterializedViewRequest").msgclass + ListMaterializedViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsRequest").msgclass + ListMaterializedViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsResponse").msgclass + UpdateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewRequest").msgclass + UpdateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewMetadata").msgclass + DeleteMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteMaterializedViewRequest").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb new file mode 100644 index 000000000000..5719dfcb7960 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb @@ -0,0 +1,142 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2' +# Original file comments: +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/bigtable/admin/v2/bigtable_instance_admin_pb' + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin' + + # Create an instance within a project. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation + # Gets information about an instance. + rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance + # Lists information about instances in a project. + rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse + # Updates an instance within a project. This method updates only the display + # name and type for an Instance. To update other Instance properties, such as + # labels, use PartialUpdateInstance. + rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance + # Partially updates an instance within a project. This method can modify all + # fields of an Instance and is the preferred way to update an Instance. + rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation + # Delete an instance from a project. + rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty + # Creates a cluster within an instance. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation + # Gets information about a cluster. + rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster + # Lists information about clusters in an instance. + rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse + # Updates a cluster within an instance. + # + # Note that UpdateCluster does not support updating + # cluster_config.cluster_autoscaling_config. In order to update it, you + # must use PartialUpdateCluster. + rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation + # Partially updates a cluster within a project. This method is the preferred + # way to update a Cluster. + # + # To enable and update autoscaling, set + # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + # are ignored. Note that an update cannot simultaneously set serve_nodes to + # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + # also specify both in the update_mask. + # + # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + # and explicitly set a serve_node count via the update_mask. + rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation + # Deletes a cluster from an instance. + rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty + # Creates an app profile within an instance. + rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile + # Gets information about an app profile. + rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile + # Lists information about app profiles in an instance. + rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse + # Updates an app profile within an instance. + rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation + # Deletes an app profile from an instance. + rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty + # Gets the access control policy for an instance resource. Returns an empty + # policy if an instance exists but does not have a policy set. + rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy + # Sets the access control policy on an instance resource. Replaces any + # existing policy. + rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy + # Returns permissions that the caller has on the specified instance resource. + rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse + # Lists hot tablets in a cluster, within the time range provided. Hot + # tablets are ordered based on CPU usage. + rpc :ListHotTablets, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse + # Creates a logical view within an instance. + rpc :CreateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Google::Longrunning::Operation + # Gets information about a logical view. + rpc :GetLogicalView, ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Google::Cloud::Bigtable::Admin::V2::LogicalView + # Lists information about logical views in an instance. + rpc :ListLogicalViews, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse + # Updates a logical view within an instance. + rpc :UpdateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Google::Longrunning::Operation + # Deletes a logical view from an instance. + rpc :DeleteLogicalView, ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Google::Protobuf::Empty + # Creates a materialized view within an instance. + rpc :CreateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Google::Longrunning::Operation + # Gets information about a materialized view. + rpc :GetMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Google::Cloud::Bigtable::Admin::V2::MaterializedView + # Lists information about materialized views in an instance. + rpc :ListMaterializedViews, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse + # Updates a materialized view within an instance. + rpc :UpdateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Google::Longrunning::Operation + # Deletes a materialized view from an instance. + rpc :DeleteMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Google::Protobuf::Empty + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb new file mode 100644 index 000000000000..52a9ea2d2e01 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb @@ -0,0 +1,91 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/bigtable_table_admin.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/common_pb' +require 'google/bigtable/admin/v2/table_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x13RestoreTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info\"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\n\x12\x43reateTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"\xbe\x01\n\x1e\x43reateTableFromSnapshotRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0fsource_snapshot\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\n\x13\x44ropRowRangeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"\xad\x01\n\x11ListTablesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\x9d\x01\n\x12UpdateTableRequest\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13UpdateTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n\x12\x44\x65leteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"P\n\x14UndeleteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"\x83\x01\n\x15UndeleteTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x03\n\x1bModifyColumnFamiliesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xdb\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x12\x34\n\x0bupdate_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x05\n\x03mod\"[\n\x1fGenerateConsistencyTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"\xb2\x02\n\x17\x43heckConsistencyRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1bstandard_read_remote_writes\x18\x03 \x01(\x0b\x32\x32.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\n\x1c\x64\x61ta_boost_read_local_writes\x18\x04 \x01(\x0b\x32\x32.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00\x42\x06\n\x04mode\"\x1a\n\x18StandardReadRemoteWrites\"\x1a\n\x18\x44\x61taBoostReadLocalWrites\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\xe6\x01\n\x14SnapshotTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12=\n\x07\x63luster\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"Q\n\x12GetSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"{\n\x14ListSnapshotsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15\x44\x65leteSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa2\x01\n\x13\x43reateBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"M\n\x10GetBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"P\n\x13\x44\x65leteBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"\x9b\x01\n\x12ListBackupsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe3\x01\n\x11\x43opyBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rsource_backup\x18\x03 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xcd\x01\n\x12\x43opyBackupMetadata\x12\x36\n\x04name\x18\x01 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12@\n\x12source_backup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfo\x12=\n\x08progress\x18\x03 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\xcb\x01\n\x1b\x43reateAuthorizedViewRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1f\n\x12\x61uthorized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0f\x61uthorized_view\x18\x03 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\"\xd2\x01\n\x1c\x43reateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x1aListAuthorizedViewsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x04view\x18\x04 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"z\n\x1bListAuthorizedViewsResponse\x12\x42\n\x10\x61uthorized_views\x18\x01 \x03(\x0b\x32(.google.bigtable.admin.v2.AuthorizedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x18GetAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"\xb9\x01\n\x1bUpdateAuthorizedViewRequest\x12\x46\n\x0f\x61uthorized_view\x18\x01 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x1cUpdateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x1b\x44\x65leteAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x19\x43reateSchemaBundleRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1d\n\x10schema_bundle_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rschema_bundle\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\"\x88\x01\n\x1a\x43reateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x01\n\x19UpdateSchemaBundleRequest\x12\x42\n\rschema_bundle\x18\x01 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x1aUpdateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x16GetSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\n\x18ListSchemaBundlesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x19ListSchemaBundlesResponse\x12>\n\x0eschema_bundles\x18\x01 \x03(\x0b\x32&.google.bigtable.admin.v2.SchemaBundle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x19\x44\x65leteSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\x92@\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\xda\x41\x15parent,table_id,table\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\xda\x41\x1fparent,table_id,source_snapshot\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xce\x01\n\x0bUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1c\n\x05Table\x12\x13UpdateTableMetadata\xda\x41\x11table,update_mask\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xca\x41\x1e\n\x05Table\x12\x15UndeleteTableMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xa1\x02\n\x14\x43reateAuthorizedView\x12\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41.\n\x0e\x41uthorizedView\x12\x1c\x43reateAuthorizedViewMetadata\xda\x41)parent,authorized_view,authorized_view_id\x82\xd3\xe4\x93\x02O\"\x12\x12*\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass + Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule + Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule + AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass + AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass + Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass + Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass + Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass + Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass + Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule + Cluster::NodeScalingFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.NodeScalingFactor").enummodule + AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass + AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass + AppProfile::MultiClusterRoutingUseAny::RowAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity").msgclass + AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass + AppProfile::StandardIsolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.StandardIsolation").msgclass + AppProfile::DataBoostIsolationReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly").msgclass + AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner").enummodule + AppProfile::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.Priority").enummodule + HotTablet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.HotTablet").msgclass + LogicalView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.LogicalView").msgclass + MaterializedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.MaterializedView").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb new file mode 100644 index 000000000000..4b069137666b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/table.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/types_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/timestamp_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass + ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass + Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass + Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass + Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule + Table::AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.AutomatedBackupPolicy").msgclass + Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule + Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule + AuthorizedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView").msgclass + AuthorizedView::FamilySubsets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.FamilySubsets").msgclass + AuthorizedView::SubsetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.SubsetView").msgclass + AuthorizedView::ResponseView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.ResponseView").enummodule + ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass + GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass + GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass + GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass + EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass + EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule + Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass + Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule + Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass + Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule + Backup::BackupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.BackupType").enummodule + BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass + TieredStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageConfig").msgclass + TieredStorageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageRule").msgclass + ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ProtoSchema").msgclass + SchemaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SchemaBundle").msgclass + RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb new file mode 100644 index 000000000000..7a9e1c6a0620 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/types.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc7\x19\n\x04Type\x12:\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\n\x0bstring_type\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StringH\x00\x12:\n\nint64_type\x18\x05 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float64H\x00\x12\x38\n\tbool_type\x18\x08 \x01(\x0b\x32#.google.bigtable.admin.v2.Type.BoolH\x00\x12\x42\n\x0etimestamp_type\x18\n \x01(\x0b\x32(.google.bigtable.admin.v2.Type.TimestampH\x00\x12\x38\n\tdate_type\x18\x0b \x01(\x0b\x32#.google.bigtable.admin.v2.Type.DateH\x00\x12\x42\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\n\x0bstruct_type\x18\x07 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StructH\x00\x12:\n\narray_type\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ArrayH\x00\x12\x36\n\x08map_type\x18\x04 \x01(\x0b\x32\".google.bigtable.admin.v2.Type.MapH\x00\x12:\n\nproto_type\x18\r \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ProtoH\x00\x12\x38\n\tenum_type\x18\x0e \x01(\x0b\x32#.google.bigtable.admin.v2.Type.EnumH\x00\x1a\xa9\x01\n\x05\x42ytes\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1a_\n\x08\x45ncoding\x12@\n\x03raw\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\x9f\x02\n\x06String\x12@\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.Type.String.Encoding\x1a\xd2\x01\n\x08\x45ncoding\x12N\n\x08utf8_raw\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\r\n\x07Utf8Raw:\x02\x18\x01\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xfd\x02\n\x05Int64\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.Encoding\x1a\xb2\x02\n\x08\x45ncoding\x12X\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\n\x12ordered_code_bytes\x18\x02 \x01(\x0b\x32>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1aN\n\x0e\x42igEndianBytes\x12<\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\xb4\x01\n\tTimestamp\x12\x43\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1a\x62\n\x08\x45ncoding\x12J\n\x11unix_micros_int64\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00\x42\n\n\x08\x65ncoding\x1a\x06\n\x04\x44\x61te\x1a\xb9\x04\n\x06Struct\x12;\n\x06\x66ields\x18\x01 \x03(\x0b\x32+.google.bigtable.admin.v2.Type.Struct.Field\x12@\n\x08\x65ncoding\x18\x02 \x01(\x0b\x32..google.bigtable.admin.v2.Type.Struct.Encoding\x1aI\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xe4\x02\n\x08\x45ncoding\x12M\n\tsingleton\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\n\x0f\x64\x65limited_bytes\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\n\x12ordered_code_bytes\x18\x03 \x01(\x0b\x32?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1a\x0b\n\tSingleton\x1a#\n\x0e\x44\x65limitedBytes\x12\x11\n\tdelimiter\x18\x01 \x01(\x0c\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x37\n\x05Proto\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x14\n\x0cmessage_name\x18\x02 \x01(\t\x1a\x33\n\x04\x45num\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x11\n\tenum_name\x18\x02 \x01(\t\x1a=\n\x05\x41rray\x12\x34\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1ak\n\x03Map\x12\x30\n\x08key_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x32\n\nvalue_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xdb\x03\n\tAggregate\x12\x32\n\ninput_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x37\n\nstate_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.TypeB\x03\xe0\x41\x03\x12;\n\x03sum\x18\x04 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12\x65\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\n\x03max\x18\x06 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\n\x03min\x18\x07 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xcd\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type").msgclass + Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes").msgclass + Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding").msgclass + Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding.Raw").msgclass + Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String").msgclass + Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding").msgclass + Type::String::Encoding::Utf8Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw").msgclass + Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes").msgclass + Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64").msgclass + Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding").msgclass + Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes").msgclass + Type::Int64::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes").msgclass + Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bool").msgclass + Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float32").msgclass + Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float64").msgclass + Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp").msgclass + Type::Timestamp::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp.Encoding").msgclass + Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Date").msgclass + Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct").msgclass + Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Field").msgclass + Type::Struct::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding").msgclass + Type::Struct::Encoding::Singleton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.Singleton").msgclass + Type::Struct::Encoding::DelimitedBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes").msgclass + Type::Struct::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes").msgclass + Type::Proto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Proto").msgclass + Type::Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Enum").msgclass + Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Array").msgclass + Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Map").msgclass + Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate").msgclass + Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Sum").msgclass + Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Max").msgclass + Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Min").msgclass + Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb new file mode 100644 index 000000000000..19a6f94a9e3e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" +require "google/cloud/bigtable/admin/v2/version" + +module Google + module Cloud + module Bigtable + module Admin + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + module V2 + end + end + end + end +end + +helper_path = ::File.join __dir__, "v2", "_helpers.rb" +require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb new file mode 100644 index 000000000000..aeb89a361209 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/bigtable/admin/v2/version" + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + ## + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + module BigtableInstanceAdmin + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb new file mode 100644 index 000000000000..4dbd45245ace --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb @@ -0,0 +1,3710 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + ## + # Client for the BigtableInstanceAdmin service. + # + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bigtable_instance_admin_stub + + ## + # Configure the BigtableInstanceAdmin Client class. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BigtableInstanceAdmin clients + # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.create_instance.timeout = 300.0 + + default_config.rpcs.get_instance.timeout = 60.0 + default_config.rpcs.get_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_instances.timeout = 60.0 + default_config.rpcs.list_instances.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_instance.timeout = 60.0 + default_config.rpcs.update_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.partial_update_instance.timeout = 60.0 + default_config.rpcs.partial_update_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_instance.timeout = 60.0 + + default_config.rpcs.create_cluster.timeout = 60.0 + + default_config.rpcs.get_cluster.timeout = 60.0 + default_config.rpcs.get_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_clusters.timeout = 60.0 + default_config.rpcs.list_clusters.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_cluster.timeout = 60.0 + default_config.rpcs.update_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_cluster.timeout = 60.0 + + default_config.rpcs.create_app_profile.timeout = 60.0 + + default_config.rpcs.get_app_profile.timeout = 60.0 + default_config.rpcs.get_app_profile.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_app_profiles.timeout = 60.0 + default_config.rpcs.list_app_profiles.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_app_profile.timeout = 60.0 + default_config.rpcs.update_app_profile.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_app_profile.timeout = 60.0 + + default_config.rpcs.get_iam_policy.timeout = 60.0 + default_config.rpcs.get_iam_policy.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.set_iam_policy.timeout = 60.0 + + default_config.rpcs.test_iam_permissions.timeout = 60.0 + default_config.rpcs.test_iam_permissions.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_hot_tablets.timeout = 60.0 + default_config.rpcs.list_hot_tablets.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableInstanceAdmin Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bigtable_instance_admin_stub.universe_domain + end + + ## + # Create a new BigtableInstanceAdmin client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BigtableInstanceAdmin client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @bigtable_instance_admin_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @bigtable_instance_admin_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations] + # + attr_reader :operations_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @bigtable_instance_admin_stub.logger + end + + # Service calls + + ## + # Create an instance within a project. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + # + # @overload create_instance(request, options = nil) + # Pass arguments to `create_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_instance(parent: nil, instance_id: nil, instance: nil, clusters: nil) + # Pass arguments to `create_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the project in which to create the new + # instance. Values are of the form `projects/{project}`. + # @param instance_id [::String] + # Required. The ID to be used when referring to the new instance within its + # project, e.g., just `myinstance` rather than + # `projects/myproject/instances/myinstance`. + # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # Required. The instance to create. + # Fields marked `OutputOnly` must be left blank. + # @param clusters [::Hash{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash}] + # Required. The clusters to be created within the instance, mapped by desired + # cluster ID, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # Fields marked `OutputOnly` must be left blank. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new + # + # # Call the create_instance method. + # result = client.create_instance request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an instance. + # + # @overload get_instance(request, options = nil) + # Pass arguments to `get_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_instance(name: nil) + # Pass arguments to `get_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested instance. Values are of the form + # `projects/{project}/instances/{instance}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new + # + # # Call the get_instance method. + # result = client.get_instance request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + # p result + # + def get_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about instances in a project. + # + # @overload list_instances(request, options = nil) + # Pass arguments to `list_instances` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_instances(parent: nil, page_token: nil) + # Pass arguments to `list_instances` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the project for which a list of instances is + # requested. Values are of the form `projects/{project}`. + # @param page_token [::String] + # DEPRECATED: This field is unused and ignored. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new + # + # # Call the list_instances method. + # result = client.list_instances request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. + # p result + # + def list_instances request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_instances.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_instances.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_instances.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an instance within a project. This method updates only the display + # name and type for an Instance. To update other Instance properties, such as + # labels, use PartialUpdateInstance. + # + # @overload update_instance(request, options = nil) + # Pass arguments to `update_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::Instance} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_instance(name: nil, display_name: nil, type: nil, labels: nil, tags: nil) + # Pass arguments to `update_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The unique name of the instance. Values are of the form + # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + # @param display_name [::String] + # Required. The descriptive name for this instance as it appears in UIs. + # Can be changed at any time, but should be kept globally unique + # to avoid confusion. + # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] + # The type of the instance. Defaults to `PRODUCTION`. + # @param labels [::Hash{::String => ::String}] + # Labels are a flexible and lightweight mechanism for organizing cloud + # resources into groups that reflect a customer's organizational needs and + # deployment strategies. They can be used to filter resources and aggregate + # metrics. + # + # * Label keys must be between 1 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + # * Label values must be between 0 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + # * No more than 64 labels can be associated with a given resource. + # * Keys and values must both be under 128 bytes. + # @param tags [::Hash{::String => ::String}] + # Optional. Input only. Immutable. Tag keys/values directly bound to this + # resource. For example: + # - "123/environment": "production", + # - "123/costCenter": "marketing" + # + # Tags and Labels (above) are both used to bind metadata to resources, with + # different use-cases. See + # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + # in-depth overview on the difference between tags and labels. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::Instance.new + # + # # Call the update_instance method. + # result = client.update_instance request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + # p result + # + def update_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Instance + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Partially updates an instance within a project. This method can modify all + # fields of an Instance and is the preferred way to update an Instance. + # + # @overload partial_update_instance(request, options = nil) + # Pass arguments to `partial_update_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload partial_update_instance(instance: nil, update_mask: nil) + # Pass arguments to `partial_update_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # Required. The Instance which will (partially) replace the current value. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of Instance fields which should be replaced. + # Must be explicitly set. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new + # + # # Call the partial_update_instance method. + # result = client.partial_update_instance request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def partial_update_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.partial_update_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.instance&.name + header_params["instance.name"] = request.instance.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.partial_update_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete an instance from a project. + # + # @overload delete_instance(request, options = nil) + # Pass arguments to `delete_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_instance(name: nil) + # Pass arguments to `delete_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the instance to be deleted. + # Values are of the form `projects/{project}/instances/{instance}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new + # + # # Call the delete_instance method. + # result = client.delete_instance request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a cluster within an instance. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + # + # @overload create_cluster(request, options = nil) + # Pass arguments to `create_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil) + # Pass arguments to `create_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the new + # cluster. Values are of the form `projects/{project}/instances/{instance}`. + # @param cluster_id [::String] + # Required. The ID to be used when referring to the new cluster within its + # instance, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # Required. The cluster to be created. + # Fields marked `OutputOnly` must be left blank. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new + # + # # Call the create_cluster method. + # result = client.create_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a cluster. + # + # @overload get_cluster(request, options = nil) + # Pass arguments to `get_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_cluster(name: nil) + # Pass arguments to `get_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new + # + # # Call the get_cluster method. + # result = client.get_cluster request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. + # p result + # + def get_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about clusters in an instance. + # + # @overload list_clusters(request, options = nil) + # Pass arguments to `list_clusters` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_clusters(parent: nil, page_token: nil) + # Pass arguments to `list_clusters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which a list of clusters is + # requested. Values are of the form + # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + # Clusters for all Instances in a project, e.g., + # `projects/myproject/instances/-`. + # @param page_token [::String] + # DEPRECATED: This field is unused and ignored. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new + # + # # Call the list_clusters method. + # result = client.list_clusters request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. + # p result + # + def list_clusters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_clusters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_clusters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_clusters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a cluster within an instance. + # + # Note that UpdateCluster does not support updating + # cluster_config.cluster_autoscaling_config. In order to update it, you + # must use PartialUpdateCluster. + # + # @overload update_cluster(request, options = nil) + # Pass arguments to `update_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_cluster(name: nil, location: nil, serve_nodes: nil, node_scaling_factor: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil) + # Pass arguments to `update_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The unique name of the cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + # @param location [::String] + # Immutable. The location where this cluster's nodes and storage reside. For + # best performance, clients should be located as close as possible to this + # cluster. Currently only zones are supported, so values should be of the + # form `projects/{project}/locations/{zone}`. + # @param serve_nodes [::Integer] + # The number of nodes in the cluster. If no value is set, + # Cloud Bigtable automatically allocates nodes based on your data footprint + # and optimized for 50% storage utilization. + # @param node_scaling_factor [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] + # Immutable. The node scaling factor of this cluster. + # @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash] + # Configuration for this cluster. + # @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType] + # Immutable. The type of storage used by this cluster to serve its + # parent instance's tables, unless explicitly overridden. + # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash] + # Immutable. The encryption configuration for CMEK-protected clusters. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::Cluster.new + # + # # Call the update_cluster method. + # result = client.update_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Partially updates a cluster within a project. This method is the preferred + # way to update a Cluster. + # + # To enable and update autoscaling, set + # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + # are ignored. Note that an update cannot simultaneously set serve_nodes to + # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + # also specify both in the update_mask. + # + # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + # and explicitly set a serve_node count via the update_mask. + # + # @overload partial_update_cluster(request, options = nil) + # Pass arguments to `partial_update_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload partial_update_cluster(cluster: nil, update_mask: nil) + # Pass arguments to `partial_update_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # Required. The Cluster which contains the partial updates to be applied, + # subject to the update_mask. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of Cluster fields which should be replaced. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new + # + # # Call the partial_update_cluster method. + # result = client.partial_update_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def partial_update_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.partial_update_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.cluster&.name + header_params["cluster.name"] = request.cluster.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.partial_update_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a cluster from an instance. + # + # @overload delete_cluster(request, options = nil) + # Pass arguments to `delete_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_cluster(name: nil) + # Pass arguments to `delete_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the cluster to be deleted. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new + # + # # Call the delete_cluster method. + # result = client.delete_cluster request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an app profile within an instance. + # + # @overload create_app_profile(request, options = nil) + # Pass arguments to `create_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_app_profile(parent: nil, app_profile_id: nil, app_profile: nil, ignore_warnings: nil) + # Pass arguments to `create_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the new app + # profile. Values are of the form `projects/{project}/instances/{instance}`. + # @param app_profile_id [::String] + # Required. The ID to be used when referring to the new app profile within + # its instance, e.g., just `myprofile` rather than + # `projects/myproject/instances/myinstance/appProfiles/myprofile`. + # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] + # Required. The app profile to be created. + # Fields marked `OutputOnly` will be ignored. + # @param ignore_warnings [::Boolean] + # If true, ignore safety checks when creating the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new + # + # # Call the create_app_profile method. + # result = client.create_app_profile request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p result + # + def create_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an app profile. + # + # @overload get_app_profile(request, options = nil) + # Pass arguments to `get_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_app_profile(name: nil) + # Pass arguments to `get_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested app profile. Values are of the + # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new + # + # # Call the get_app_profile method. + # result = client.get_app_profile request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p result + # + def get_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about app profiles in an instance. + # + # @overload list_app_profiles(request, options = nil) + # Pass arguments to `list_app_profiles` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_app_profiles(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_app_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which a list of app profiles + # is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + # e.g., `projects/myproject/instances/-`. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new + # + # # Call the list_app_profiles method. + # result = client.list_app_profiles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p item + # end + # + def list_app_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_app_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_app_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_app_profiles, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an app profile within an instance. + # + # @overload update_app_profile(request, options = nil) + # Pass arguments to `update_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_app_profile(app_profile: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] + # Required. The app profile which will (partially) replace the current value. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of app profile fields which should be replaced. + # If unset, all fields will be replaced. + # @param ignore_warnings [::Boolean] + # If true, ignore safety checks when updating the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new + # + # # Call the update_app_profile method. + # result = client.update_app_profile request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.app_profile&.name + header_params["app_profile.name"] = request.app_profile.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an app profile from an instance. + # + # @overload delete_app_profile(request, options = nil) + # Pass arguments to `delete_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_app_profile(name: nil, ignore_warnings: nil) + # Pass arguments to `delete_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the app profile to be deleted. Values are of + # the form + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # @param ignore_warnings [::Boolean] + # Required. If true, ignore safety checks when deleting the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new + # + # # Call the delete_app_profile method. + # result = client.delete_app_profile request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for an instance resource. Returns an empty + # policy if an instance exists but does not have a policy set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on an instance resource. Replaces any + # existing policy. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns permissions that the caller has on the specified instance resource. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists hot tablets in a cluster, within the time range provided. Hot + # tablets are ordered based on CPU usage. + # + # @overload list_hot_tablets(request, options = nil) + # Pass arguments to `list_hot_tablets` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_hot_tablets(parent: nil, start_time: nil, end_time: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_hot_tablets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The cluster name to list hot tablets. + # Value is in the following form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # The start time to list hot tablets. The hot tablets in the response will + # have start times between the requested start time and end time. Start time + # defaults to Now if it is unset, and end time defaults to Now - 24 hours if + # it is unset. The start time should be less than the end time, and the + # maximum allowed time range between start time and end time is 48 hours. + # Start time and end time should have values between Now and Now - 14 days. + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # The end time to list hot tablets. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size that is empty or zero lets the server choose the number of + # items to return. A page_size which is strictly positive will return at most + # that many items. A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls do not need a + # page_size field. If a page_size is set in subsequent calls, it must match + # the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new + # + # # Call the list_hot_tablets method. + # result = client.list_hot_tablets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. + # p item + # end + # + def list_hot_tablets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_hot_tablets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_hot_tablets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_hot_tablets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_hot_tablets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_hot_tablets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a logical view within an instance. + # + # @overload create_logical_view(request, options = nil) + # Pass arguments to `create_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_logical_view(parent: nil, logical_view_id: nil, logical_view: nil) + # Pass arguments to `create_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent instance where this logical view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @param logical_view_id [::String] + # Required. The ID to use for the logical view, which will become the final + # component of the logical view's resource name. + # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] + # Required. The logical view to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new + # + # # Call the create_logical_view method. + # result = client.create_logical_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_logical_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a logical view. + # + # @overload get_logical_view(request, options = nil) + # Pass arguments to `get_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_logical_view(name: nil) + # Pass arguments to `get_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested logical view. Values are of the + # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new + # + # # Call the get_logical_view method. + # result = client.get_logical_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. + # p result + # + def get_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_logical_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about logical views in an instance. + # + # @overload list_logical_views(request, options = nil) + # Pass arguments to `list_logical_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_logical_views(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_logical_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which the list of logical + # views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @param page_size [::Integer] + # Optional. The maximum number of logical views to return. The service may + # return fewer than this value + # @param page_token [::String] + # Optional. A page token, received from a previous `ListLogicalViews` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListLogicalViews` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new + # + # # Call the list_logical_views method. + # result = client.list_logical_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. + # p item + # end + # + def list_logical_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_logical_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_logical_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_logical_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_logical_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_logical_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a logical view within an instance. + # + # @overload update_logical_view(request, options = nil) + # Pass arguments to `update_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_logical_view(logical_view: nil, update_mask: nil) + # Pass arguments to `update_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] + # Required. The logical view to update. + # + # The logical view's `name` field is used to identify the view to update. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new + # + # # Call the update_logical_view method. + # result = client.update_logical_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.logical_view&.name + header_params["logical_view.name"] = request.logical_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_logical_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a logical view from an instance. + # + # @overload delete_logical_view(request, options = nil) + # Pass arguments to `delete_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_logical_view(name: nil, etag: nil) + # Pass arguments to `delete_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the logical view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @param etag [::String] + # Optional. The current etag of the logical view. + # If an etag is provided and does not match the current etag of the + # logical view, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new + # + # # Call the delete_logical_view method. + # result = client.delete_logical_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_logical_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a materialized view within an instance. + # + # @overload create_materialized_view(request, options = nil) + # Pass arguments to `create_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_materialized_view(parent: nil, materialized_view_id: nil, materialized_view: nil) + # Pass arguments to `create_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent instance where this materialized view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @param materialized_view_id [::String] + # Required. The ID to use for the materialized view, which will become the + # final component of the materialized view's resource name. + # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] + # Required. The materialized view to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new + # + # # Call the create_materialized_view method. + # result = client.create_materialized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_materialized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a materialized view. + # + # @overload get_materialized_view(request, options = nil) + # Pass arguments to `get_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_materialized_view(name: nil) + # Pass arguments to `get_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested materialized view. Values are of + # the form + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new + # + # # Call the get_materialized_view method. + # result = client.get_materialized_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. + # p result + # + def get_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_materialized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about materialized views in an instance. + # + # @overload list_materialized_views(request, options = nil) + # Pass arguments to `list_materialized_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_materialized_views(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_materialized_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which the list of + # materialized views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @param page_size [::Integer] + # Optional. The maximum number of materialized views to return. The service + # may return fewer than this value + # @param page_token [::String] + # Optional. A page token, received from a previous `ListMaterializedViews` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListMaterializedViews` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new + # + # # Call the list_materialized_views method. + # result = client.list_materialized_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. + # p item + # end + # + def list_materialized_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_materialized_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_materialized_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_materialized_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_materialized_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_materialized_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a materialized view within an instance. + # + # @overload update_materialized_view(request, options = nil) + # Pass arguments to `update_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_materialized_view(materialized_view: nil, update_mask: nil) + # Pass arguments to `update_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] + # Required. The materialized view to update. + # + # The materialized view's `name` field is used to identify the view to + # update. Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new + # + # # Call the update_materialized_view method. + # result = client.update_materialized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.materialized_view&.name + header_params["materialized_view.name"] = request.materialized_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_materialized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a materialized view from an instance. + # + # @overload delete_materialized_view(request, options = nil) + # Pass arguments to `delete_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_materialized_view(name: nil, etag: nil) + # Pass arguments to `delete_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the materialized view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @param etag [::String] + # Optional. The current etag of the materialized view. + # If an etag is provided and does not match the current etag of the + # materialized view, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new + # + # # Call the delete_materialized_view method. + # result = client.delete_materialized_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_materialized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the BigtableInstanceAdmin API. + # + # This class represents the configuration for BigtableInstanceAdmin, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_instance to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_instance.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_instance.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BigtableInstanceAdmin API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :create_instance + ## + # RPC-specific configuration for `get_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :get_instance + ## + # RPC-specific configuration for `list_instances` + # @return [::Gapic::Config::Method] + # + attr_reader :list_instances + ## + # RPC-specific configuration for `update_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :update_instance + ## + # RPC-specific configuration for `partial_update_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :partial_update_instance + ## + # RPC-specific configuration for `delete_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_instance + ## + # RPC-specific configuration for `create_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :create_cluster + ## + # RPC-specific configuration for `get_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :get_cluster + ## + # RPC-specific configuration for `list_clusters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_clusters + ## + # RPC-specific configuration for `update_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :update_cluster + ## + # RPC-specific configuration for `partial_update_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :partial_update_cluster + ## + # RPC-specific configuration for `delete_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_cluster + ## + # RPC-specific configuration for `create_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :create_app_profile + ## + # RPC-specific configuration for `get_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :get_app_profile + ## + # RPC-specific configuration for `list_app_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_app_profiles + ## + # RPC-specific configuration for `update_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :update_app_profile + ## + # RPC-specific configuration for `delete_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_app_profile + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + ## + # RPC-specific configuration for `list_hot_tablets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_hot_tablets + ## + # RPC-specific configuration for `create_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_logical_view + ## + # RPC-specific configuration for `get_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_logical_view + ## + # RPC-specific configuration for `list_logical_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_logical_views + ## + # RPC-specific configuration for `update_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_logical_view + ## + # RPC-specific configuration for `delete_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_logical_view + ## + # RPC-specific configuration for `create_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_materialized_view + ## + # RPC-specific configuration for `get_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_materialized_view + ## + # RPC-specific configuration for `list_materialized_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_materialized_views + ## + # RPC-specific configuration for `update_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_materialized_view + ## + # RPC-specific configuration for `delete_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_materialized_view + + # @private + def initialize parent_rpcs = nil + create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance + @create_instance = ::Gapic::Config::Method.new create_instance_config + get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance + @get_instance = ::Gapic::Config::Method.new get_instance_config + list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances + @list_instances = ::Gapic::Config::Method.new list_instances_config + update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance + @update_instance = ::Gapic::Config::Method.new update_instance_config + partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance + @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config + delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance + @delete_instance = ::Gapic::Config::Method.new delete_instance_config + create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster + @create_cluster = ::Gapic::Config::Method.new create_cluster_config + get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster + @get_cluster = ::Gapic::Config::Method.new get_cluster_config + list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters + @list_clusters = ::Gapic::Config::Method.new list_clusters_config + update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster + @update_cluster = ::Gapic::Config::Method.new update_cluster_config + partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster + @partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config + delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster + @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config + create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile + @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config + get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile + @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config + list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles + @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config + update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile + @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config + delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile + @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + list_hot_tablets_config = parent_rpcs.list_hot_tablets if parent_rpcs.respond_to? :list_hot_tablets + @list_hot_tablets = ::Gapic::Config::Method.new list_hot_tablets_config + create_logical_view_config = parent_rpcs.create_logical_view if parent_rpcs.respond_to? :create_logical_view + @create_logical_view = ::Gapic::Config::Method.new create_logical_view_config + get_logical_view_config = parent_rpcs.get_logical_view if parent_rpcs.respond_to? :get_logical_view + @get_logical_view = ::Gapic::Config::Method.new get_logical_view_config + list_logical_views_config = parent_rpcs.list_logical_views if parent_rpcs.respond_to? :list_logical_views + @list_logical_views = ::Gapic::Config::Method.new list_logical_views_config + update_logical_view_config = parent_rpcs.update_logical_view if parent_rpcs.respond_to? :update_logical_view + @update_logical_view = ::Gapic::Config::Method.new update_logical_view_config + delete_logical_view_config = parent_rpcs.delete_logical_view if parent_rpcs.respond_to? :delete_logical_view + @delete_logical_view = ::Gapic::Config::Method.new delete_logical_view_config + create_materialized_view_config = parent_rpcs.create_materialized_view if parent_rpcs.respond_to? :create_materialized_view + @create_materialized_view = ::Gapic::Config::Method.new create_materialized_view_config + get_materialized_view_config = parent_rpcs.get_materialized_view if parent_rpcs.respond_to? :get_materialized_view + @get_materialized_view = ::Gapic::Config::Method.new get_materialized_view_config + list_materialized_views_config = parent_rpcs.list_materialized_views if parent_rpcs.respond_to? :list_materialized_views + @list_materialized_views = ::Gapic::Config::Method.new list_materialized_views_config + update_materialized_view_config = parent_rpcs.update_materialized_view if parent_rpcs.respond_to? :update_materialized_view + @update_materialized_view = ::Gapic::Config::Method.new update_materialized_view_config + delete_materialized_view_config = parent_rpcs.delete_materialized_view if parent_rpcs.respond_to? :delete_materialized_view + @delete_materialized_view = ::Gapic::Config::Method.new delete_materialized_view_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb new file mode 100644 index 000000000000..4b166e3ac286 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Credentials for the BigtableInstanceAdmin API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.cluster", + "https://www.googleapis.com/auth/bigtable.admin.instance", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + self.env_vars = [ + "BIGTABLE_CREDENTIALS", + "BIGTABLE_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "BIGTABLE_CREDENTIALS_JSON", + "BIGTABLE_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb new file mode 100644 index 000000000000..d49308f480c1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb @@ -0,0 +1,843 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BigtableInstanceAdmin Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableInstanceAdmin Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb new file mode 100644 index 000000000000..8ee57571df69 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb @@ -0,0 +1,180 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Path helper methods for the BigtableInstanceAdmin API. + module Paths + ## + # Create a fully-qualified AppProfile resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}` + # + # @param project [String] + # @param instance [String] + # @param app_profile [String] + # + # @return [::String] + def app_profile_path project:, instance:, app_profile: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/appProfiles/#{app_profile}" + end + + ## + # Create a fully-qualified Cluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # + # @return [::String] + def cluster_path project:, instance:, cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}" + end + + ## + # Create a fully-qualified CryptoKey resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # + # @return [::String] + def crypto_key_path project:, location:, key_ring:, crypto_key: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" + end + + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}` + # + # @param project [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/instances/#{instance}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified LogicalView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + # + # @param project [String] + # @param instance [String] + # @param logical_view [String] + # + # @return [::String] + def logical_view_path project:, instance:, logical_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/logicalViews/#{logical_view}" + end + + ## + # Create a fully-qualified MaterializedView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + # + # @param project [String] + # @param instance [String] + # @param materialized_view [String] + # + # @return [::String] + def materialized_view_path project:, instance:, materialized_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/materializedViews/#{materialized_view}" + end + + ## + # Create a fully-qualified Project resource string. + # + # The resource will be in the following format: + # + # `projects/{project}` + # + # @param project [String] + # + # @return [::String] + def project_path project: + "projects/#{project}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb new file mode 100644 index 000000000000..cc08c6872c99 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/bigtable/admin/v2/version" + +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/paths" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/operations" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/client" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + ## + # Service for creating, configuring, and deleting Cloud Bigtable tables. + # + # + # Provides access to the table schemas only, not the data stored within + # the tables. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + module BigtableTableAdmin + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "bigtable_table_admin", "helpers.rb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb new file mode 100644 index 000000000000..a6a0d9ba05cd --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb @@ -0,0 +1,4266 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/bigtable/admin/v2/bigtable_table_admin_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + ## + # Client for the BigtableTableAdmin service. + # + # Service for creating, configuring, and deleting Cloud Bigtable tables. + # + # + # Provides access to the table schemas only, not the data stored within + # the tables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bigtable_table_admin_stub + + ## + # Configure the BigtableTableAdmin Client class. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BigtableTableAdmin clients + # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.create_table.timeout = 300.0 + + default_config.rpcs.list_tables.timeout = 60.0 + default_config.rpcs.list_tables.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.get_table.timeout = 60.0 + default_config.rpcs.get_table.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_table.timeout = 300.0 + + default_config.rpcs.modify_column_families.timeout = 300.0 + + default_config.rpcs.drop_row_range.timeout = 3600.0 + + default_config.rpcs.generate_consistency_token.timeout = 60.0 + default_config.rpcs.generate_consistency_token.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.check_consistency.timeout = 3600.0 + default_config.rpcs.check_consistency.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.get_snapshot.timeout = 60.0 + default_config.rpcs.get_snapshot.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_snapshots.timeout = 60.0 + default_config.rpcs.list_snapshots.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_snapshot.timeout = 300.0 + + default_config.rpcs.create_backup.timeout = 60.0 + + default_config.rpcs.get_backup.timeout = 60.0 + default_config.rpcs.get_backup.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_backup.timeout = 60.0 + + default_config.rpcs.delete_backup.timeout = 300.0 + + default_config.rpcs.list_backups.timeout = 60.0 + default_config.rpcs.list_backups.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.restore_table.timeout = 60.0 + + default_config.rpcs.get_iam_policy.timeout = 60.0 + default_config.rpcs.get_iam_policy.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.set_iam_policy.timeout = 60.0 + + default_config.rpcs.test_iam_permissions.timeout = 60.0 + default_config.rpcs.test_iam_permissions.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableTableAdmin Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bigtable_table_admin_stub.universe_domain + end + + ## + # Create a new BigtableTableAdmin client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BigtableTableAdmin client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @bigtable_table_admin_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @bigtable_table_admin_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations] + # + attr_reader :operations_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @bigtable_table_admin_stub.logger + end + + # Service calls + + ## + # Creates a new table in the specified instance. + # The table can be created with a full set of initial column families, + # specified in the request. + # + # @overload create_table(request, options = nil) + # Pass arguments to `create_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_table(parent: nil, table_id: nil, table: nil, initial_splits: nil) + # Pass arguments to `create_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @param table_id [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # Maximum 50 characters. + # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] + # Required. The Table to create. + # @param initial_splits [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, ::Hash>] + # The optional list of row keys that will be used to initially split the + # table into several tablets (tablets are similar to HBase regions). + # Given two split keys, `s1` and `s2`, three tablets will be created, + # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + # + # Example: + # + # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + # `"other", "zz"]` + # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + # * Key assignment: + # - Tablet 1 `[, apple) => {"a"}.` + # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + # - Tablet 4 `[customer_2, other) => {"customer_2"}.` + # - Tablet 5 `[other, ) => {"other", "zz"}.` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new + # + # # Call the create_table method. + # result = client.create_table request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def create_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new table from the specified snapshot. The target table must + # not exist. The snapshot and the table must be in the same instance. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload create_table_from_snapshot(request, options = nil) + # Pass arguments to `create_table_from_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_table_from_snapshot(parent: nil, table_id: nil, source_snapshot: nil) + # Pass arguments to `create_table_from_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @param table_id [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # @param source_snapshot [::String] + # Required. The unique name of the snapshot from which to restore the table. + # The snapshot and the table must be in the same instance. Values are of the + # form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new + # + # # Call the create_table_from_snapshot method. + # result = client.create_table_from_snapshot request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_table_from_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_table_from_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all tables served from a specified instance. + # + # @overload list_tables(request, options = nil) + # Pass arguments to `list_tables` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_tables(parent: nil, view: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_tables` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which tables should be + # listed. Values are of the form `projects/{project}/instances/{instance}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned tables' fields. + # NAME_ONLY view (default) and REPLICATION_VIEW are supported. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new + # + # # Call the list_tables method. + # result = client.list_tables request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. + # p item + # end + # + def list_tables request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_tables.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_tables.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_tables.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_tables, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified table. + # + # @overload get_table(request, options = nil) + # Pass arguments to `get_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_table(name: nil, view: nil) + # Pass arguments to `get_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested table. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned table's fields. + # Defaults to `SCHEMA_VIEW` if unspecified. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new + # + # # Call the get_table method. + # result = client.get_table request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def get_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a specified table. + # + # @overload update_table(request, options = nil) + # Pass arguments to `update_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_table(table: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] + # Required. The table to update. + # The table's `name` field is used to identify the table to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to update. + # A mask specifying which fields (e.g. `change_stream_config`) in the `table` + # field should be updated. This mask is relative to the `table` field, not to + # the request message. The wildcard (*) path is currently not supported. + # Currently UpdateTable is only supported for the following fields: + # + # * `change_stream_config` + # * `change_stream_config.retention_period` + # * `deletion_protection` + # * `row_key_schema` + # + # If `column_families` is set in `update_mask`, it will return an + # UNIMPLEMENTED error. + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore safety checks when updating the table. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new + # + # # Call the update_table method. + # result = client.update_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.table&.name + header_params["table.name"] = request.table.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes a specified table and all of its data. + # + # @overload delete_table(request, options = nil) + # Pass arguments to `delete_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_table(name: nil) + # Pass arguments to `delete_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new + # + # # Call the delete_table method. + # result = client.delete_table request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Restores a specified table which was accidentally deleted. + # + # @overload undelete_table(request, options = nil) + # Pass arguments to `undelete_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload undelete_table(name: nil) + # Pass arguments to `undelete_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to be restored. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new + # + # # Call the undelete_table method. + # result = client.undelete_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def undelete_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.undelete_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.undelete_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.undelete_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new AuthorizedView in a table. + # + # @overload create_authorized_view(request, options = nil) + # Pass arguments to `create_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_authorized_view(parent: nil, authorized_view_id: nil, authorized_view: nil) + # Pass arguments to `create_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. This is the name of the table the AuthorizedView belongs to. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param authorized_view_id [::String] + # Required. The id of the AuthorizedView to create. This AuthorizedView must + # not already exist. The `authorized_view_id` appended to `parent` forms the + # full AuthorizedView name of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] + # Required. The AuthorizedView to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new + # + # # Call the create_authorized_view method. + # result = client.create_authorized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_authorized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all AuthorizedViews from a specific table. + # + # @overload list_authorized_views(request, options = nil) + # Pass arguments to `list_authorized_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_authorized_views(parent: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `list_authorized_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the table for which AuthorizedViews should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param page_size [::Integer] + # Optional. Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # Optional. The value of `next_page_token` returned by a previous call. + # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedViews' + # fields. Default to NAME_ONLY. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new + # + # # Call the list_authorized_views method. + # result = client.list_authorized_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + # p item + # end + # + def list_authorized_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_authorized_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_authorized_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_authorized_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_authorized_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_authorized_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information from a specified AuthorizedView. + # + # @overload get_authorized_view(request, options = nil) + # Pass arguments to `get_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_authorized_view(name: nil, view: nil) + # Pass arguments to `get_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedView's + # fields. Default to BASIC. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new + # + # # Call the get_authorized_view method. + # result = client.get_authorized_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + # p result + # + def get_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_authorized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an AuthorizedView in a table. + # + # @overload update_authorized_view(request, options = nil) + # Pass arguments to `update_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_authorized_view(authorized_view: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] + # Required. The AuthorizedView to update. The `name` in `authorized_view` is + # used to identify the AuthorizedView. AuthorizedView name must in this + # format: + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # A mask specifying which fields in the AuthorizedView resource should be + # updated. This mask is relative to the AuthorizedView resource, not to the + # request message. A field will be overwritten if it is in the mask. If + # empty, all fields set in the request will be overwritten. A special value + # `*` means to overwrite all fields (including fields not set in the + # request). + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore the safety checks when updating the + # AuthorizedView. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new + # + # # Call the update_authorized_view method. + # result = client.update_authorized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.authorized_view&.name + header_params["authorized_view.name"] = request.authorized_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_authorized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes a specified AuthorizedView. + # + # @overload delete_authorized_view(request, options = nil) + # Pass arguments to `delete_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_authorized_view(name: nil, etag: nil) + # Pass arguments to `delete_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the AuthorizedView to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param etag [::String] + # Optional. The current etag of the AuthorizedView. + # If an etag is provided and does not match the current etag of the + # AuthorizedView, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new + # + # # Call the delete_authorized_view method. + # result = client.delete_authorized_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_authorized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a series of column family modifications on the specified table. + # Either all or none of the modifications will occur before this method + # returns, but data requests received prior to that point may see a table + # where only some modifications have taken effect. + # + # @overload modify_column_families(request, options = nil) + # Pass arguments to `modify_column_families` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload modify_column_families(name: nil, modifications: nil, ignore_warnings: nil) + # Pass arguments to `modify_column_families` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table whose families should be modified. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param modifications [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, ::Hash>] + # Required. Modifications to be atomically applied to the specified table's + # families. Entries are applied in order, meaning that earlier modifications + # can be masked by later ones (in the case of repeated updates to the same + # family, for example). + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore safety checks when modifying the column families. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new + # + # # Call the modify_column_families method. + # result = client.modify_column_families request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def modify_column_families request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.modify_column_families.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout, + metadata: metadata, + retry_policy: @config.rpcs.modify_column_families.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently drop/delete a row range from a specified table. The request can + # specify whether to delete all rows in a table, or only those that match a + # particular prefix. + # + # @overload drop_row_range(request, options = nil) + # Pass arguments to `drop_row_range` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload drop_row_range(name: nil, row_key_prefix: nil, delete_all_data_from_table: nil) + # Pass arguments to `drop_row_range` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table on which to drop a range of rows. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param row_key_prefix [::String] + # Delete all rows that start with this row key prefix. Prefix cannot be + # zero length. + # + # Note: The following parameters are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param delete_all_data_from_table [::Boolean] + # Delete all rows in the table. Setting this to false is a no-op. + # + # Note: The following parameters are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new + # + # # Call the drop_row_range method. + # result = client.drop_row_range request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def drop_row_range request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.drop_row_range.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout, + metadata: metadata, + retry_policy: @config.rpcs.drop_row_range.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Generates a consistency token for a Table, which can be used in + # CheckConsistency to check whether mutations to the table that finished + # before this call started have been replicated. The tokens will be available + # for 90 days. + # + # @overload generate_consistency_token(request, options = nil) + # Pass arguments to `generate_consistency_token` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_consistency_token(name: nil) + # Pass arguments to `generate_consistency_token` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the Table for which to create a consistency + # token. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new + # + # # Call the generate_consistency_token method. + # result = client.generate_consistency_token request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. + # p result + # + def generate_consistency_token request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_consistency_token.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_consistency_token.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Checks replication consistency based on a consistency token, that is, if + # replication has caught up based on the conditions specified in the token + # and the check request. + # + # @overload check_consistency(request, options = nil) + # Pass arguments to `check_consistency` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload check_consistency(name: nil, consistency_token: nil, standard_read_remote_writes: nil, data_boost_read_local_writes: nil) + # Pass arguments to `check_consistency` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the Table for which to check replication + # consistency. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param consistency_token [::String] + # Required. The token created using GenerateConsistencyToken for the Table. + # @param standard_read_remote_writes [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites, ::Hash] + # Checks that reads using an app profile with `StandardIsolation` can + # see all writes committed before the token was created, even if the + # read and write target different clusters. + # + # Note: The following parameters are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param data_boost_read_local_writes [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites, ::Hash] + # Checks that reads using an app profile with `DataBoostIsolationReadOnly` + # can see all writes committed before the token was created, but only if + # the read and write target the same cluster. + # + # Note: The following parameters are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new + # + # # Call the check_consistency method. + # result = client.check_consistency request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. + # p result + # + def check_consistency request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.check_consistency.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.check_consistency.timeout, + metadata: metadata, + retry_policy: @config.rpcs.check_consistency.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new snapshot in the specified cluster from the specified + # source table. The cluster and the table must be in the same instance. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload snapshot_table(request, options = nil) + # Pass arguments to `snapshot_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload snapshot_table(name: nil, cluster: nil, snapshot_id: nil, ttl: nil, description: nil) + # Pass arguments to `snapshot_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to have the snapshot taken. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param cluster [::String] + # Required. The name of the cluster where the snapshot will be created in. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param snapshot_id [::String] + # Required. The ID by which the new snapshot should be referred to within the + # parent cluster, e.g., `mysnapshot` of the form: + # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + # @param ttl [::Google::Protobuf::Duration, ::Hash] + # The amount of time that the new snapshot can stay active after it is + # created. Once 'ttl' expires, the snapshot will get deleted. The maximum + # amount of time a snapshot can stay active is 7 days. If 'ttl' is not + # specified, the default value of 24 hours will be used. + # @param description [::String] + # Description of the snapshot. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new + # + # # Call the snapshot_table method. + # result = client.snapshot_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def snapshot_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.snapshot_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.snapshot_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified snapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload get_snapshot(request, options = nil) + # Pass arguments to `get_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_snapshot(name: nil) + # Pass arguments to `get_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Snapshot] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new + # + # # Call the get_snapshot method. + # result = client.get_snapshot request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. + # p result + # + def get_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all snapshots associated with the specified cluster. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload list_snapshots(request, options = nil) + # Pass arguments to `list_snapshots` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_snapshots(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_snapshots` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the cluster for which snapshots should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @param page_size [::Integer] + # The maximum number of snapshots to return per page. + # CURRENTLY UNIMPLEMENTED AND IGNORED. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new + # + # # Call the list_snapshots method. + # result = client.list_snapshots request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. + # p item + # end + # + def list_snapshots request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_snapshots.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_snapshots.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_snapshots, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes the specified snapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload delete_snapshot(request, options = nil) + # Pass arguments to `delete_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_snapshot(name: nil) + # Pass arguments to `delete_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the snapshot to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new + # + # # Call the delete_snapshot method. + # result = client.delete_snapshot request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts creating a new Cloud Bigtable Backup. The returned backup + # {::Google::Longrunning::Operation long-running operation} can be used to + # track creation of the backup. The + # {::Google::Longrunning::Operation#metadata metadata} field type is + # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupMetadata CreateBackupMetadata}. The + # {::Google::Longrunning::Operation#response response} field type is + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}, if successful. Cancelling the + # returned operation will stop the creation and delete the backup. + # + # @overload create_backup(request, options = nil) + # Pass arguments to `create_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_backup(parent: nil, backup_id: nil, backup: nil) + # Pass arguments to `create_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. This must be one of the clusters in the instance in which this + # table is located. The backup will be stored in this cluster. Values are + # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param backup_id [::String] + # Required. The id of the backup to be created. The `backup_id` along with + # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create + # the full backup name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] + # Required. The backup to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new + # + # # Call the create_backup method. + # result = client.create_backup request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata on a pending or completed Cloud Bigtable Backup. + # + # @overload get_backup(request, options = nil) + # Pass arguments to `get_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_backup(name: nil) + # Pass arguments to `get_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the backup. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new + # + # # Call the get_backup method. + # result = client.get_backup request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + # p result + # + def get_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a pending or completed Cloud Bigtable Backup. + # + # @overload update_backup(request, options = nil) + # Pass arguments to `update_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_backup(backup: nil, update_mask: nil) + # Pass arguments to `update_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] + # Required. The backup to update. `backup.name`, and the fields to be updated + # as specified by `update_mask` are required. Other fields are ignored. + # Update is only supported for the following fields: + # + # * `backup.expire_time`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. A mask specifying which fields (e.g. `expire_time`) in the + # Backup resource should be updated. This mask is relative to the Backup + # resource, not to the request message. The field mask must always be + # specified; this prevents any future fields from being erased accidentally + # by clients that do not know about them. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new + # + # # Call the update_backup method. + # result = client.update_backup request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + # p result + # + def update_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.backup&.name + header_params["backup.name"] = request.backup.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a pending or completed Cloud Bigtable backup. + # + # @overload delete_backup(request, options = nil) + # Pass arguments to `delete_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_backup(name: nil) + # Pass arguments to `delete_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the backup to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new + # + # # Call the delete_backup method. + # result = client.delete_backup request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Cloud Bigtable backups. Returns both completed and pending + # backups. + # + # @overload list_backups(request, options = nil) + # Pass arguments to `list_backups` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_backups(parent: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_backups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The cluster to list backups from. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list backups for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @param filter [::String] + # A filter expression that filters backups listed in the response. + # The expression must specify the field name, a comparison operator, + # and the value that you want to use for filtering. The value must be a + # string, a number, or a boolean. The comparison operator must be + # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + # roughly synonymous with equality. Filter rules are case insensitive. + # + # The fields eligible for filtering are: + # + # * `name` + # * `source_table` + # * `state` + # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `size_bytes` + # + # To filter on multiple expressions, provide each separate expression within + # parentheses. By default, each expression is an AND expression. However, + # you can include AND, OR, and NOT expressions explicitly. + # + # Some examples of using filters are: + # + # * `name:"exact"` --> The backup's name is the string "exact". + # * `name:howl` --> The backup's name contains the string "howl". + # * `source_table:prod` + # --> The source_table's name contains the string "prod". + # * `state:CREATING` --> The backup is pending creation. + # * `state:READY` --> The backup is fully created and ready for use. + # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + # --> The backup name contains the string "howl" and start_time + # of the backup is before 2018-03-28T14:50:00Z. + # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + # @param order_by [::String] + # An expression for specifying the sort order of the results of the request. + # The string value should specify one or more fields in + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at + # https://aip.dev/132#ordering. + # + # Fields supported are: + # + # * name + # * source_table + # * expire_time + # * start_time + # * end_time + # * size_bytes + # * state + # + # For example, "start_time". The default sorting order is ascending. + # To specify descending order for the field, a suffix " desc" should + # be appended to the field name. For example, "start_time desc". + # Redundant space characters in the syntax are insigificant. + # + # If order_by is empty, results will be sorted by `start_time` in descending + # order starting from the most recently created backup. + # @param page_size [::Integer] + # Number of backups to be returned in the response. If 0 or + # less, defaults to the server's maximum allowed page size. + # @param page_token [::String] + # If non-empty, `page_token` should contain a + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} + # from a previous + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the + # same `parent` and with the same `filter`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new + # + # # Call the list_backups method. + # result = client.list_backups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. + # p item + # end + # + def list_backups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_backups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_backups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_backups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_backups, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new table by restoring from a completed backup. The + # returned table {::Google::Longrunning::Operation long-running operation} can + # be used to track the progress of the operation, and to cancel it. The + # {::Google::Longrunning::Operation#metadata metadata} field type is + # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableMetadata RestoreTableMetadata}. The + # {::Google::Longrunning::Operation#response response} type is + # {::Google::Cloud::Bigtable::Admin::V2::Table Table}, if successful. + # + # @overload restore_table(request, options = nil) + # Pass arguments to `restore_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload restore_table(parent: nil, table_id: nil, backup: nil) + # Pass arguments to `restore_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the instance in which to create the restored + # table. Values are of the form `projects//instances/`. + # @param table_id [::String] + # Required. The id of the table to create and restore to. This + # table must not already exist. The `table_id` appended to + # `parent` forms the full table name of the form + # `projects//instances//tables/`. + # @param backup [::String] + # Name of the backup from which to restore. Values are of the form + # `projects//instances//clusters//backups/`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new + # + # # Call the restore_table method. + # result = client.restore_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def restore_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.restore_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.restore_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.restore_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Copy a Cloud Bigtable backup to a new backup in the destination cluster + # located in the destination instance and project. + # + # @overload copy_backup(request, options = nil) + # Pass arguments to `copy_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload copy_backup(parent: nil, backup_id: nil, source_backup: nil, expire_time: nil) + # Pass arguments to `copy_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the destination cluster that will contain the backup + # copy. The cluster must already exist. Values are of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param backup_id [::String] + # Required. The id of the new backup. The `backup_id` along with `parent` + # are combined as \\{parent}/backups/\\{backup_id} to create the full backup + # name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @param source_backup [::String] + # Required. The source backup to be copied from. + # The source backup needs to be in READY state for it to be copied. + # Copying a copied backup is not allowed. + # Once CopyBackup is in progress, the source backup cannot be deleted or + # cleaned up on expiration until CopyBackup is finished. + # Values are of the form: + # `projects//instances//clusters//backups/`. + # @param expire_time [::Google::Protobuf::Timestamp, ::Hash] + # Required. Required. The expiration time of the copied backup with + # microsecond granularity that must be at least 6 hours and at most 30 days + # from the time the request is received. Once the `expire_time` has + # passed, Cloud Bigtable will delete the backup and free the resources used + # by the backup. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new + # + # # Call the copy_backup method. + # result = client.copy_backup request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def copy_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.copy_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.copy_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.copy_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :copy_backup, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a Bigtable resource. + # Returns an empty policy if the resource exists but does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on a Bigtable resource. + # Replaces any existing policy. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns permissions that the caller has on the specified Bigtable + # resource. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new schema bundle in the specified table. + # + # @overload create_schema_bundle(request, options = nil) + # Pass arguments to `create_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_schema_bundle(parent: nil, schema_bundle_id: nil, schema_bundle: nil) + # Pass arguments to `create_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this schema bundle will be created. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param schema_bundle_id [::String] + # Required. The unique ID to use for the schema bundle, which will become the + # final component of the schema bundle's resource name. + # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] + # Required. The schema bundle to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new + # + # # Call the create_schema_bundle method. + # result = client.create_schema_bundle request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_schema_bundle, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a schema bundle in the specified table. + # + # @overload update_schema_bundle(request, options = nil) + # Pass arguments to `update_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_schema_bundle(schema_bundle: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] + # Required. The schema bundle to update. + # + # The schema bundle's `name` field is used to identify the schema bundle to + # update. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @param ignore_warnings [::Boolean] + # Optional. If set, ignore the safety checks when updating the Schema Bundle. + # The safety checks are: + # - The new Schema Bundle is backwards compatible with the existing Schema + # Bundle. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new + # + # # Call the update_schema_bundle method. + # result = client.update_schema_bundle request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.schema_bundle&.name + header_params["schema_bundle.name"] = request.schema_bundle.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_schema_bundle, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified schema bundle. + # + # @overload get_schema_bundle(request, options = nil) + # Pass arguments to `get_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_schema_bundle(name: nil) + # Pass arguments to `get_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the schema bundle to retrieve. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new + # + # # Call the get_schema_bundle method. + # result = client.get_schema_bundle request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + # p result + # + def get_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_schema_bundle, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all schema bundles associated with the specified table. + # + # @overload list_schema_bundles(request, options = nil) + # Pass arguments to `list_schema_bundles` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_schema_bundles(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_schema_bundles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of schema bundles. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param page_size [::Integer] + # The maximum number of schema bundles to return. If the value is positive, + # the server may return at most this value. If unspecified, the server will + # return the maximum allowed page size. + # @param page_token [::String] + # A page token, received from a previous `ListSchemaBundles` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListSchemaBundles` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new + # + # # Call the list_schema_bundles method. + # result = client.list_schema_bundles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + # p item + # end + # + def list_schema_bundles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_schema_bundles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_schema_bundles.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_schema_bundles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_schema_bundles, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_schema_bundles, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a schema bundle in the specified table. + # + # @overload delete_schema_bundle(request, options = nil) + # Pass arguments to `delete_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_schema_bundle(name: nil, etag: nil) + # Pass arguments to `delete_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the schema bundle to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @param etag [::String] + # Optional. The etag of the schema bundle. + # If this is provided, it must match the server's etag. The server + # returns an ABORTED error on a mismatched etag. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new + # + # # Call the delete_schema_bundle method. + # result = client.delete_schema_bundle request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_schema_bundle, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the BigtableTableAdmin API. + # + # This class represents the configuration for BigtableTableAdmin, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_table to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_table.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_table.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BigtableTableAdmin API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_table` + # @return [::Gapic::Config::Method] + # + attr_reader :create_table + ## + # RPC-specific configuration for `create_table_from_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :create_table_from_snapshot + ## + # RPC-specific configuration for `list_tables` + # @return [::Gapic::Config::Method] + # + attr_reader :list_tables + ## + # RPC-specific configuration for `get_table` + # @return [::Gapic::Config::Method] + # + attr_reader :get_table + ## + # RPC-specific configuration for `update_table` + # @return [::Gapic::Config::Method] + # + attr_reader :update_table + ## + # RPC-specific configuration for `delete_table` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_table + ## + # RPC-specific configuration for `undelete_table` + # @return [::Gapic::Config::Method] + # + attr_reader :undelete_table + ## + # RPC-specific configuration for `create_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_authorized_view + ## + # RPC-specific configuration for `list_authorized_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_authorized_views + ## + # RPC-specific configuration for `get_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_authorized_view + ## + # RPC-specific configuration for `update_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_authorized_view + ## + # RPC-specific configuration for `delete_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_authorized_view + ## + # RPC-specific configuration for `modify_column_families` + # @return [::Gapic::Config::Method] + # + attr_reader :modify_column_families + ## + # RPC-specific configuration for `drop_row_range` + # @return [::Gapic::Config::Method] + # + attr_reader :drop_row_range + ## + # RPC-specific configuration for `generate_consistency_token` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_consistency_token + ## + # RPC-specific configuration for `check_consistency` + # @return [::Gapic::Config::Method] + # + attr_reader :check_consistency + ## + # RPC-specific configuration for `snapshot_table` + # @return [::Gapic::Config::Method] + # + attr_reader :snapshot_table + ## + # RPC-specific configuration for `get_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :get_snapshot + ## + # RPC-specific configuration for `list_snapshots` + # @return [::Gapic::Config::Method] + # + attr_reader :list_snapshots + ## + # RPC-specific configuration for `delete_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_snapshot + ## + # RPC-specific configuration for `create_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :create_backup + ## + # RPC-specific configuration for `get_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :get_backup + ## + # RPC-specific configuration for `update_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :update_backup + ## + # RPC-specific configuration for `delete_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_backup + ## + # RPC-specific configuration for `list_backups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_backups + ## + # RPC-specific configuration for `restore_table` + # @return [::Gapic::Config::Method] + # + attr_reader :restore_table + ## + # RPC-specific configuration for `copy_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :copy_backup + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + ## + # RPC-specific configuration for `create_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :create_schema_bundle + ## + # RPC-specific configuration for `update_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :update_schema_bundle + ## + # RPC-specific configuration for `get_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :get_schema_bundle + ## + # RPC-specific configuration for `list_schema_bundles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_schema_bundles + ## + # RPC-specific configuration for `delete_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_schema_bundle + + # @private + def initialize parent_rpcs = nil + create_table_config = parent_rpcs.create_table if parent_rpcs.respond_to? :create_table + @create_table = ::Gapic::Config::Method.new create_table_config + create_table_from_snapshot_config = parent_rpcs.create_table_from_snapshot if parent_rpcs.respond_to? :create_table_from_snapshot + @create_table_from_snapshot = ::Gapic::Config::Method.new create_table_from_snapshot_config + list_tables_config = parent_rpcs.list_tables if parent_rpcs.respond_to? :list_tables + @list_tables = ::Gapic::Config::Method.new list_tables_config + get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table + @get_table = ::Gapic::Config::Method.new get_table_config + update_table_config = parent_rpcs.update_table if parent_rpcs.respond_to? :update_table + @update_table = ::Gapic::Config::Method.new update_table_config + delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table + @delete_table = ::Gapic::Config::Method.new delete_table_config + undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table + @undelete_table = ::Gapic::Config::Method.new undelete_table_config + create_authorized_view_config = parent_rpcs.create_authorized_view if parent_rpcs.respond_to? :create_authorized_view + @create_authorized_view = ::Gapic::Config::Method.new create_authorized_view_config + list_authorized_views_config = parent_rpcs.list_authorized_views if parent_rpcs.respond_to? :list_authorized_views + @list_authorized_views = ::Gapic::Config::Method.new list_authorized_views_config + get_authorized_view_config = parent_rpcs.get_authorized_view if parent_rpcs.respond_to? :get_authorized_view + @get_authorized_view = ::Gapic::Config::Method.new get_authorized_view_config + update_authorized_view_config = parent_rpcs.update_authorized_view if parent_rpcs.respond_to? :update_authorized_view + @update_authorized_view = ::Gapic::Config::Method.new update_authorized_view_config + delete_authorized_view_config = parent_rpcs.delete_authorized_view if parent_rpcs.respond_to? :delete_authorized_view + @delete_authorized_view = ::Gapic::Config::Method.new delete_authorized_view_config + modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families + @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config + drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range + @drop_row_range = ::Gapic::Config::Method.new drop_row_range_config + generate_consistency_token_config = parent_rpcs.generate_consistency_token if parent_rpcs.respond_to? :generate_consistency_token + @generate_consistency_token = ::Gapic::Config::Method.new generate_consistency_token_config + check_consistency_config = parent_rpcs.check_consistency if parent_rpcs.respond_to? :check_consistency + @check_consistency = ::Gapic::Config::Method.new check_consistency_config + snapshot_table_config = parent_rpcs.snapshot_table if parent_rpcs.respond_to? :snapshot_table + @snapshot_table = ::Gapic::Config::Method.new snapshot_table_config + get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot + @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config + list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots + @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config + delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot + @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config + create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup + @create_backup = ::Gapic::Config::Method.new create_backup_config + get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup + @get_backup = ::Gapic::Config::Method.new get_backup_config + update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup + @update_backup = ::Gapic::Config::Method.new update_backup_config + delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup + @delete_backup = ::Gapic::Config::Method.new delete_backup_config + list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups + @list_backups = ::Gapic::Config::Method.new list_backups_config + restore_table_config = parent_rpcs.restore_table if parent_rpcs.respond_to? :restore_table + @restore_table = ::Gapic::Config::Method.new restore_table_config + copy_backup_config = parent_rpcs.copy_backup if parent_rpcs.respond_to? :copy_backup + @copy_backup = ::Gapic::Config::Method.new copy_backup_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + create_schema_bundle_config = parent_rpcs.create_schema_bundle if parent_rpcs.respond_to? :create_schema_bundle + @create_schema_bundle = ::Gapic::Config::Method.new create_schema_bundle_config + update_schema_bundle_config = parent_rpcs.update_schema_bundle if parent_rpcs.respond_to? :update_schema_bundle + @update_schema_bundle = ::Gapic::Config::Method.new update_schema_bundle_config + get_schema_bundle_config = parent_rpcs.get_schema_bundle if parent_rpcs.respond_to? :get_schema_bundle + @get_schema_bundle = ::Gapic::Config::Method.new get_schema_bundle_config + list_schema_bundles_config = parent_rpcs.list_schema_bundles if parent_rpcs.respond_to? :list_schema_bundles + @list_schema_bundles = ::Gapic::Config::Method.new list_schema_bundles_config + delete_schema_bundle_config = parent_rpcs.delete_schema_bundle if parent_rpcs.respond_to? :delete_schema_bundle + @delete_schema_bundle = ::Gapic::Config::Method.new delete_schema_bundle_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb new file mode 100644 index 000000000000..b13ab97ad469 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Credentials for the BigtableTableAdmin API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + self.env_vars = [ + "BIGTABLE_CREDENTIALS", + "BIGTABLE_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "BIGTABLE_CREDENTIALS_JSON", + "BIGTABLE_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb new file mode 100644 index 000000000000..ad9957f0f690 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb @@ -0,0 +1,843 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BigtableTableAdmin Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableTableAdmin Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb new file mode 100644 index 000000000000..c10bcef1999e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb @@ -0,0 +1,214 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Path helper methods for the BigtableTableAdmin API. + module Paths + ## + # Create a fully-qualified AuthorizedView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # @param authorized_view [String] + # + # @return [::String] + def authorized_view_path project:, instance:, table:, authorized_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}/authorizedViews/#{authorized_view}" + end + + ## + # Create a fully-qualified Backup resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # @param backup [String] + # + # @return [::String] + def backup_path project:, instance:, cluster:, backup: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}" + end + + ## + # Create a fully-qualified Cluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # + # @return [::String] + def cluster_path project:, instance:, cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}" + end + + ## + # Create a fully-qualified CryptoKeyVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # @param crypto_key_version [String] + # + # @return [::String] + def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" + end + + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}` + # + # @param project [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/instances/#{instance}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified SchemaBundle resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # @param schema_bundle [String] + # + # @return [::String] + def schema_bundle_path project:, instance:, table:, schema_bundle: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}/schemaBundles/#{schema_bundle}" + end + + ## + # Create a fully-qualified Snapshot resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # @param snapshot [String] + # + # @return [::String] + def snapshot_path project:, instance:, cluster:, snapshot: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}" + end + + ## + # Create a fully-qualified Table resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # + # @return [::String] + def table_path project:, instance:, table: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb new file mode 100644 index 000000000000..b19e81c131f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + VERSION = "0.0.1" + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md new file mode 100644 index 000000000000..2968913b938d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md @@ -0,0 +1,4 @@ +# Cloud Bigtable Admin V2 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..5089551e9ea4 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb @@ -0,0 +1,589 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb new file mode 100644 index 000000000000..a39e72495e1c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb @@ -0,0 +1,767 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Request message for BigtableInstanceAdmin.CreateInstance. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the project in which to create the new + # instance. Values are of the form `projects/{project}`. + # @!attribute [rw] instance_id + # @return [::String] + # Required. The ID to be used when referring to the new instance within its + # project, e.g., just `myinstance` rather than + # `projects/myproject/instances/myinstance`. + # @!attribute [rw] instance + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # Required. The instance to create. + # Fields marked `OutputOnly` must be left blank. + # @!attribute [rw] clusters + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster}] + # Required. The clusters to be created within the instance, mapped by desired + # cluster ID, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # Fields marked `OutputOnly` must be left blank. + class CreateInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + class ClustersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for BigtableInstanceAdmin.GetInstance. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested instance. Values are of the form + # `projects/{project}/instances/{instance}`. + class GetInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListInstances. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the project for which a list of instances is + # requested. Values are of the form `projects/{project}`. + # @!attribute [rw] page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListInstancesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListInstances. + # @!attribute [rw] instances + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Instance>] + # The list of requested instances. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which Instance information could not be retrieved, + # due to an outage or some other transient condition. + # Instances whose Clusters are all in one of the failed locations + # may be missing from `instances`, and Instances with at least one + # Cluster in a failed location may only have partial information returned. + # Values are of the form `projects//locations/` + # @!attribute [rw] next_page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListInstancesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.PartialUpdateInstance. + # @!attribute [rw] instance + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # Required. The Instance which will (partially) replace the current value. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of Instance fields which should be replaced. + # Must be explicitly set. + class PartialUpdateInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteInstance. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the instance to be deleted. + # Values are of the form `projects/{project}/instances/{instance}`. + class DeleteInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateCluster. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the new + # cluster. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] cluster_id + # @return [::String] + # Required. The ID to be used when referring to the new cluster within its + # instance, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # @!attribute [rw] cluster + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # Required. The cluster to be created. + # Fields marked `OutputOnly` must be left blank. + class CreateClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetCluster. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + class GetClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListClusters. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which a list of clusters is + # requested. Values are of the form + # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + # Clusters for all Instances in a project, e.g., + # `projects/myproject/instances/-`. + # @!attribute [rw] page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListClustersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListClusters. + # @!attribute [rw] clusters + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Cluster>] + # The list of requested clusters. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which Cluster information could not be retrieved, + # due to an outage or some other transient condition. + # Clusters from these locations may be missing from `clusters`, + # or may only have partial information returned. + # Values are of the form `projects//locations/` + # @!attribute [rw] next_page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListClustersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteCluster. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the cluster to be deleted. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + class DeleteClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateInstance. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest] + # The request that prompted the initiation of this CreateInstance operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateInstanceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateInstance. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest] + # The request that prompted the initiation of this UpdateInstance operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateInstanceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateCluster. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest] + # The request that prompted the initiation of this CreateCluster operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + # @!attribute [rw] tables + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress}] + # Keys: the full `name` of each table that existed in the instance when + # CreateCluster was first called, i.e. + # `projects//instances//tables/
`. Any table added + # to the instance by a later API call will be created in the new cluster by + # that API call, not this one. + # + # Values: information on how much of a table's data has been copied to the + # newly-created cluster so far. + class CreateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Progress info for copying a table's data to the new cluster. + # @!attribute [rw] estimated_size_bytes + # @return [::Integer] + # Estimate of the size of the table to be copied. + # @!attribute [rw] estimated_copied_bytes + # @return [::Integer] + # Estimate of the number of bytes copied so far for this table. + # This will eventually reach 'estimated_size_bytes' unless the table copy + # is CANCELLED. + # @!attribute [rw] state + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress::State] + class TableProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + module State + STATE_UNSPECIFIED = 0 + + # The table has not yet begun copying to the new cluster. + PENDING = 1 + + # The table is actively being copied to the new cluster. + COPYING = 2 + + # The table has been fully copied to the new cluster. + COMPLETED = 3 + + # The table was deleted before it finished copying to the new cluster. + # Note that tables deleted after completion will stay marked as + # COMPLETED, not CANCELLED. + CANCELLED = 4 + end + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress] + class TablesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The metadata for the Operation returned by UpdateCluster. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # The request that prompted the initiation of this UpdateCluster operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by PartialUpdateCluster. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest] + # The original request for PartialUpdateCluster. + class PartialUpdateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.PartialUpdateCluster. + # @!attribute [rw] cluster + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # Required. The Cluster which contains the partial updates to be applied, + # subject to the update_mask. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of Cluster fields which should be replaced. + class PartialUpdateClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateAppProfile. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the new app + # profile. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] app_profile_id + # @return [::String] + # Required. The ID to be used when referring to the new app profile within + # its instance, e.g., just `myprofile` rather than + # `projects/myproject/instances/myinstance/appProfiles/myprofile`. + # @!attribute [rw] app_profile + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # Required. The app profile to be created. + # Fields marked `OutputOnly` will be ignored. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # If true, ignore safety checks when creating the app profile. + class CreateAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetAppProfile. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested app profile. Values are of the + # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + class GetAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListAppProfiles. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which a list of app profiles + # is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + # e.g., `projects/myproject/instances/-`. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListAppProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListAppProfiles. + # @!attribute [rw] app_profiles + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # The list of requested app profiles. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all app profiles could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which AppProfile information could not be retrieved, + # due to an outage or some other transient condition. + # AppProfiles from these locations may be missing from `app_profiles`. + # Values are of the form `projects//locations/` + class ListAppProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateAppProfile. + # @!attribute [rw] app_profile + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # Required. The app profile which will (partially) replace the current value. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of app profile fields which should be replaced. + # If unset, all fields will be replaced. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # If true, ignore safety checks when updating the app profile. + class UpdateAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteAppProfile. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the app profile to be deleted. Values are of + # the form + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Required. If true, ignore safety checks when deleting the app profile. + class DeleteAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateAppProfile. + class UpdateAppProfileMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListHotTablets. + # @!attribute [rw] parent + # @return [::String] + # Required. The cluster name to list hot tablets. + # Value is in the following form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The start time to list hot tablets. The hot tablets in the response will + # have start times between the requested start time and end time. Start time + # defaults to Now if it is unset, and end time defaults to Now - 24 hours if + # it is unset. The start time should be less than the end time, and the + # maximum allowed time range between start time and end time is 48 hours. + # Start time and end time should have values between Now and Now - 14 days. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # The end time to list hot tablets. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size that is empty or zero lets the server choose the number of + # items to return. A page_size which is strictly positive will return at most + # that many items. A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls do not need a + # page_size field. If a page_size is set in subsequent calls, it must match + # the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListHotTabletsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListHotTablets. + # @!attribute [rw] hot_tablets + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # List of hot tablets in the tables of the requested cluster that fall + # within the requested time range. Hot tablets are ordered by node cpu usage + # percent. If there are multiple hot tablets that correspond to the same + # tablet within a 15-minute interval, only the hot tablet with the highest + # node cpu usage will be included in the response. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all hot tablets could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListHotTabletsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateLogicalView. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent instance where this logical view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @!attribute [rw] logical_view_id + # @return [::String] + # Required. The ID to use for the logical view, which will become the final + # component of the logical view's resource name. + # @!attribute [rw] logical_view + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # Required. The logical view to create. + class CreateLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateLogicalView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest] + # The request that prompted the initiation of this CreateLogicalView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateLogicalViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetLogicalView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested logical view. Values are of the + # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + class GetLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListLogicalViews. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which the list of logical + # views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of logical views to return. The service may + # return fewer than this value + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListLogicalViews` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListLogicalViews` must + # match the call that provided the page token. + class ListLogicalViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListLogicalViews. + # @!attribute [rw] logical_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # The list of requested logical views. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListLogicalViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateLogicalView. + # @!attribute [rw] logical_view + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # Required. The logical view to update. + # + # The logical view's `name` field is used to identify the view to update. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateLogicalView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest] + # The request that prompted the initiation of this UpdateLogicalView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation was started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateLogicalViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteLogicalView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the logical view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the logical view. + # If an etag is provided and does not match the current etag of the + # logical view, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateMaterializedView. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent instance where this materialized view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @!attribute [rw] materialized_view_id + # @return [::String] + # Required. The ID to use for the materialized view, which will become the + # final component of the materialized view's resource name. + # @!attribute [rw] materialized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # Required. The materialized view to create. + class CreateMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateMaterializedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest] + # The request that prompted the initiation of this CreateMaterializedView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateMaterializedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetMaterializedView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested materialized view. Values are of + # the form + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + class GetMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListMaterializedViews. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which the list of + # materialized views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of materialized views to return. The service + # may return fewer than this value + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListMaterializedViews` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListMaterializedViews` + # must match the call that provided the page token. + class ListMaterializedViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListMaterializedViews. + # @!attribute [rw] materialized_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # The list of requested materialized views. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListMaterializedViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateMaterializedView. + # @!attribute [rw] materialized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # Required. The materialized view to update. + # + # The materialized view's `name` field is used to identify the view to + # update. Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateMaterializedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest] + # The request that prompted the initiation of this UpdateMaterializedView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation was started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateMaterializedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteMaterializedView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the materialized view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the materialized view. + # If an etag is provided and does not match the current etag of the + # materialized view, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb new file mode 100644 index 000000000000..cde156ec6152 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb @@ -0,0 +1,1167 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the instance in which to create the restored + # table. Values are of the form `projects//instances/`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The id of the table to create and restore to. This + # table must not already exist. The `table_id` appended to + # `parent` forms the full table name of the form + # `projects//instances//tables/`. + # @!attribute [rw] backup + # @return [::String] + # Name of the backup from which to restore. Values are of the form + # `projects//instances//clusters//backups/`. + class RestoreTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the long-running operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. + # @!attribute [rw] name + # @return [::String] + # Name of the table being created and restored to. + # @!attribute [rw] source_type + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] + # The type of the restore source. + # @!attribute [rw] backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # @!attribute [rw] optimize_table_operation_name + # @return [::String] + # If exists, the name of the long-running operation that will be used to + # track the post-restore optimization process to optimize the performance of + # the restored table. The metadata type of the long-running operation is + # [OptimizeRestoreTableMetadata][]. The response type is + # {::Google::Protobuf::Empty Empty}. This long-running operation may be + # automatically created by the system if applicable after the + # RestoreTable long-running operation completes successfully. This operation + # may not be created if the table is already optimized or the restore was + # not successful. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable} + # operation. + class RestoreTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the long-running operation used to track the progress + # of optimizations performed on a newly restored table. This long-running + # operation is automatically created by the system after the successful + # completion of a table restore, and cannot be cancelled. + # @!attribute [rw] name + # @return [::String] + # Name of the restored table being optimized. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the post-restore optimizations. + class OptimizeRestoredTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table google.bigtable.admin.v2.BigtableTableAdmin.CreateTable} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # Maximum 50 characters. + # @!attribute [rw] table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Required. The Table to create. + # @!attribute [rw] initial_splits + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>] + # The optional list of row keys that will be used to initially split the + # table into several tablets (tablets are similar to HBase regions). + # Given two split keys, `s1` and `s2`, three tablets will be created, + # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + # + # Example: + # + # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + # `"other", "zz"]` + # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + # * Key assignment: + # - Tablet 1 `[, apple) => {"a"}.` + # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + # - Tablet 4 `[customer_2, other) => {"customer_2"}.` + # - Tablet 5 `[other, ) => {"other", "zz"}.` + class CreateTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # An initial split point for a newly created table. + # @!attribute [rw] key + # @return [::String] + # Row key to use as an initial tablet boundary. + class Split + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # @!attribute [rw] source_snapshot + # @return [::String] + # Required. The unique name of the snapshot from which to restore the table. + # The snapshot and the table must be in the same instance. Values are of the + # form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class CreateTableFromSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table on which to drop a range of rows. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] row_key_prefix + # @return [::String] + # Delete all rows that start with this row key prefix. Prefix cannot be + # zero length. + # + # Note: The following fields are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delete_all_data_from_table + # @return [::Boolean] + # Delete all rows in the table. Setting this to false is a no-op. + # + # Note: The following fields are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class DropRowRangeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which tables should be + # listed. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned tables' fields. + # NAME_ONLY view (default) and REPLICATION_VIEW are supported. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListTablesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} + # @!attribute [rw] tables + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Table>] + # The tables present in the requested instance. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all tables could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListTablesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table google.bigtable.admin.v2.BigtableTableAdmin.GetTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested table. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned table's fields. + # Defaults to `SCHEMA_VIEW` if unspecified. + class GetTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. + # @!attribute [rw] table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Required. The table to update. + # The table's `name` field is used to identify the table to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to update. + # A mask specifying which fields (e.g. `change_stream_config`) in the `table` + # field should be updated. This mask is relative to the `table` field, not to + # the request message. The wildcard (*) path is currently not supported. + # Currently UpdateTable is only supported for the following fields: + # + # * `change_stream_config` + # * `change_stream_config.retention_period` + # * `deletion_protection` + # * `row_key_schema` + # + # If `column_families` is set in `update_mask`, it will return an + # UNIMPLEMENTED error. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore safety checks when updating the table. + class UpdateTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. + # @!attribute [rw] name + # @return [::String] + # The name of the table being updated. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class DeleteTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to be restored. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class UndeleteTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}. + # @!attribute [rw] name + # @return [::String] + # The name of the table being restored. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was cancelled. + class UndeleteTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table whose families should be modified. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] modifications + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>] + # Required. Modifications to be atomically applied to the specified table's + # families. Entries are applied in order, meaning that earlier modifications + # can be masked by later ones (in the case of repeated updates to the same + # family, for example). + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore safety checks when modifying the column families. + class ModifyColumnFamiliesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A create, update, or delete of a particular column family. + # @!attribute [rw] id + # @return [::String] + # The ID of the column family to be modified. + # @!attribute [rw] create + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + # Create a new column family with the specified schema, or fail if + # one already exists with the given ID. + # + # Note: The following fields are mutually exclusive: `create`, `update`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] update + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + # Update an existing column family to the specified schema, or fail + # if no column family exists with the given ID. + # + # Note: The following fields are mutually exclusive: `update`, `create`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] drop + # @return [::Boolean] + # Drop (delete) the column family with the given ID, or fail if no such + # family exists. + # + # Note: The following fields are mutually exclusive: `drop`, `create`, `update`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` + # mod should be updated, ignored for other modification types. If unset or + # empty, we treat it as updating `gc_rule` to be backward compatible. + class Modification + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the Table for which to create a consistency + # token. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class GenerateConsistencyTokenRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} + # @!attribute [rw] consistency_token + # @return [::String] + # The generated consistency token. + class GenerateConsistencyTokenResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the Table for which to check replication + # consistency. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] consistency_token + # @return [::String] + # Required. The token created using GenerateConsistencyToken for the Table. + # @!attribute [rw] standard_read_remote_writes + # @return [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites] + # Checks that reads using an app profile with `StandardIsolation` can + # see all writes committed before the token was created, even if the + # read and write target different clusters. + # + # Note: The following fields are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_boost_read_local_writes + # @return [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites] + # Checks that reads using an app profile with `DataBoostIsolationReadOnly` + # can see all writes committed before the token was created, but only if + # the read and write target the same cluster. + # + # Note: The following fields are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class CheckConsistencyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Checks that all writes before the consistency token was generated are + # replicated in every cluster and readable. + class StandardReadRemoteWrites + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Checks that all writes before the consistency token was generated in the same + # cluster are readable by Databoost. + class DataBoostReadLocalWrites + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} + # @!attribute [rw] consistent + # @return [::Boolean] + # True only if the token is consistent. A token is consistent if replication + # has caught up with the restrictions specified in the request. + class CheckConsistencyResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to have the snapshot taken. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] cluster + # @return [::String] + # Required. The name of the cluster where the snapshot will be created in. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] snapshot_id + # @return [::String] + # Required. The ID by which the new snapshot should be referred to within the + # parent cluster, e.g., `mysnapshot` of the form: + # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + # @!attribute [rw] ttl + # @return [::Google::Protobuf::Duration] + # The amount of time that the new snapshot can stay active after it is + # created. Once 'ttl' expires, the snapshot will get deleted. The maximum + # amount of time a snapshot can stay active is 7 days. If 'ttl' is not + # specified, the default value of 24 hours will be used. + # @!attribute [rw] description + # @return [::String] + # Description of the snapshot. + class SnapshotTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class GetSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the cluster for which snapshots should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of snapshots to return per page. + # CURRENTLY UNIMPLEMENTED AND IGNORED. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListSnapshotsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] snapshots + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # The snapshots present in the requested cluster. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all snapshots could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListSnapshotsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the snapshot to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class DeleteSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by SnapshotTable. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest] + # The request that prompted the initiation of this SnapshotTable operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class SnapshotTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateTableFromSnapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest] + # The request that prompted the initiation of this CreateTableFromSnapshot + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateTableFromSnapshotMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. + # @!attribute [rw] parent + # @return [::String] + # Required. This must be one of the clusters in the instance in which this + # table is located. The backup will be stored in this cluster. Values are + # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] backup_id + # @return [::String] + # Required. The id of the backup to be created. The `backup_id` along with + # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create + # the full backup name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @!attribute [rw] backup + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # Required. The backup to create. + class CreateBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. + # @!attribute [rw] name + # @return [::String] + # The name of the backup being created. + # @!attribute [rw] source_table + # @return [::String] + # The name of the table the backup is created from. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was cancelled. + class CreateBackupMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup UpdateBackup}. + # @!attribute [rw] backup + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # Required. The backup to update. `backup.name`, and the fields to be updated + # as specified by `update_mask` are required. Other fields are ignored. + # Update is only supported for the following fields: + # + # * `backup.expire_time`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. A mask specifying which fields (e.g. `expire_time`) in the + # Backup resource should be updated. This mask is relative to the Backup + # resource, not to the request message. The field mask must always be + # specified; this prevents any future fields from being erased accidentally + # by clients that do not know about them. + class UpdateBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup GetBackup}. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the backup. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + class GetBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup DeleteBackup}. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the backup to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + class DeleteBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. + # @!attribute [rw] parent + # @return [::String] + # Required. The cluster to list backups from. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list backups for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @!attribute [rw] filter + # @return [::String] + # A filter expression that filters backups listed in the response. + # The expression must specify the field name, a comparison operator, + # and the value that you want to use for filtering. The value must be a + # string, a number, or a boolean. The comparison operator must be + # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + # roughly synonymous with equality. Filter rules are case insensitive. + # + # The fields eligible for filtering are: + # + # * `name` + # * `source_table` + # * `state` + # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `size_bytes` + # + # To filter on multiple expressions, provide each separate expression within + # parentheses. By default, each expression is an AND expression. However, + # you can include AND, OR, and NOT expressions explicitly. + # + # Some examples of using filters are: + # + # * `name:"exact"` --> The backup's name is the string "exact". + # * `name:howl` --> The backup's name contains the string "howl". + # * `source_table:prod` + # --> The source_table's name contains the string "prod". + # * `state:CREATING` --> The backup is pending creation. + # * `state:READY` --> The backup is fully created and ready for use. + # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + # --> The backup name contains the string "howl" and start_time + # of the backup is before 2018-03-28T14:50:00Z. + # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + # @!attribute [rw] order_by + # @return [::String] + # An expression for specifying the sort order of the results of the request. + # The string value should specify one or more fields in + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at + # https://aip.dev/132#ordering. + # + # Fields supported are: + # + # * name + # * source_table + # * expire_time + # * start_time + # * end_time + # * size_bytes + # * state + # + # For example, "start_time". The default sorting order is ascending. + # To specify descending order for the field, a suffix " desc" should + # be appended to the field name. For example, "start_time desc". + # Redundant space characters in the syntax are insigificant. + # + # If order_by is empty, results will be sorted by `start_time` in descending + # order starting from the most recently created backup. + # @!attribute [rw] page_size + # @return [::Integer] + # Number of backups to be returned in the response. If 0 or + # less, defaults to the server's maximum allowed page size. + # @!attribute [rw] page_token + # @return [::String] + # If non-empty, `page_token` should contain a + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} + # from a previous + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the + # same `parent` and with the same `filter`. + class ListBackupsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. + # @!attribute [rw] backups + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # The list of matching backups. + # @!attribute [rw] next_page_token + # @return [::String] + # `next_page_token` can be sent in a subsequent + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups} call + # to fetch more of the matching backups. + class ListBackupsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the destination cluster that will contain the backup + # copy. The cluster must already exist. Values are of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] backup_id + # @return [::String] + # Required. The id of the new backup. The `backup_id` along with `parent` + # are combined as \\{parent}/backups/\\{backup_id} to create the full backup + # name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @!attribute [rw] source_backup + # @return [::String] + # Required. The source backup to be copied from. + # The source backup needs to be in READY state for it to be copied. + # Copying a copied backup is not allowed. + # Once CopyBackup is in progress, the source backup cannot be deleted or + # cleaned up on expiration until CopyBackup is finished. + # Values are of the form: + # `projects//instances//clusters//backups/`. + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # Required. Required. The expiration time of the copied backup with + # microsecond granularity that must be at least 6 hours and at most 30 days + # from the time the request is received. Once the `expire_time` has + # passed, Cloud Bigtable will delete the backup and free the resources used + # by the backup. + class CopyBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the google.longrunning.Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. + # @!attribute [rw] name + # @return [::String] + # The name of the backup being created through the copy operation. + # Values are of the form + # `projects//instances//clusters//backups/`. + # @!attribute [rw] source_backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # Information about the source backup that is being copied from. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup} + # operation. + class CopyBackupMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view CreateAuthorizedView} + # @!attribute [rw] parent + # @return [::String] + # Required. This is the name of the table the AuthorizedView belongs to. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] authorized_view_id + # @return [::String] + # Required. The id of the AuthorizedView to create. This AuthorizedView must + # not already exist. The `authorized_view_id` appended to `parent` forms the + # full AuthorizedView name of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + # @!attribute [rw] authorized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # Required. The AuthorizedView to create. + class CreateAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateAuthorizedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest] + # The request that prompted the initiation of this CreateAuthorizedView + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateAuthorizedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the table for which AuthorizedViews should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # Optional. The value of `next_page_token` returned by a previous call. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedViews' + # fields. Default to NAME_ONLY. + class ListAuthorizedViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} + # @!attribute [rw] authorized_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # The AuthorizedViews present in the requested table. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all tables could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListAuthorizedViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedView's + # fields. Default to BASIC. + class GetAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. + # @!attribute [rw] authorized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # Required. The AuthorizedView to update. The `name` in `authorized_view` is + # used to identify the AuthorizedView. AuthorizedView name must in this + # format: + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + # A mask specifying which fields in the AuthorizedView resource should be + # updated. This mask is relative to the AuthorizedView resource, not to the + # request message. A field will be overwritten if it is in the mask. If + # empty, all fields set in the request will be overwritten. A special value + # `*` means to overwrite all fields (including fields not set in the + # request). + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore the safety checks when updating the + # AuthorizedView. + class UpdateAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for the google.longrunning.Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest] + # The request that prompted the initiation of this UpdateAuthorizedView + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateAuthorizedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the AuthorizedView to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the AuthorizedView. + # If an etag is provided and does not match the current etag of the + # AuthorizedView, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this schema bundle will be created. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # Required. The unique ID to use for the schema bundle, which will become the + # final component of the schema bundle's resource name. + # @!attribute [rw] schema_bundle + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # Required. The schema bundle to create. + class CreateSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateSchemaBundleMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. + # @!attribute [rw] schema_bundle + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # Required. The schema bundle to update. + # + # The schema bundle's `name` field is used to identify the schema bundle to + # update. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If set, ignore the safety checks when updating the Schema Bundle. + # The safety checks are: + # - The new Schema Bundle is backwards compatible with the existing Schema + # Bundle. + class UpdateSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateSchemaBundleMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle GetSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the schema bundle to retrieve. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + class GetSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of schema bundles. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of schema bundles to return. If the value is positive, + # the server may return at most this value. If unspecified, the server will + # return the maximum allowed page size. + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListSchemaBundles` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListSchemaBundles` must + # match the call that provided the page token. + class ListSchemaBundlesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. + # @!attribute [rw] schema_bundles + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # The schema bundles from the specified table. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListSchemaBundlesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle DeleteSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the schema bundle to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag of the schema bundle. + # If this is provided, it must match the server's etag. The server + # returns an ABORTED error on a mismatched etag. + class DeleteSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb new file mode 100644 index 000000000000..09fe845b5e8c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Encapsulates progress related information for a Cloud Bigtable long + # running operation. + # @!attribute [rw] progress_percent + # @return [::Integer] + # Percent completion of the operation. + # Values are between 0 and 100 inclusive. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Time the request was received. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation failed or was completed + # successfully. + class OperationProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Storage media types for persisting Bigtable data. + module StorageType + # The user did not specify a storage type. + STORAGE_TYPE_UNSPECIFIED = 0 + + # Flash (SSD) storage should be used. + SSD = 1 + + # Magnetic drive (HDD) storage should be used. + HDD = 2 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb new file mode 100644 index 000000000000..3915a0a92c55 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb @@ -0,0 +1,519 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # A collection of Bigtable {::Google::Cloud::Bigtable::Admin::V2::Table Tables} and + # the resources that serve them. + # All tables in an instance are served from all + # {::Google::Cloud::Bigtable::Admin::V2::Cluster Clusters} in the instance. + # @!attribute [rw] name + # @return [::String] + # The unique name of the instance. Values are of the form + # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + # @!attribute [rw] display_name + # @return [::String] + # Required. The descriptive name for this instance as it appears in UIs. + # Can be changed at any time, but should be kept globally unique + # to avoid confusion. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::State] + # Output only. The current state of the instance. + # @!attribute [rw] type + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] + # The type of the instance. Defaults to `PRODUCTION`. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Labels are a flexible and lightweight mechanism for organizing cloud + # resources into groups that reflect a customer's organizational needs and + # deployment strategies. They can be used to filter resources and aggregate + # metrics. + # + # * Label keys must be between 1 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + # * Label values must be between 0 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + # * No more than 64 labels can be associated with a given resource. + # * Keys and values must both be under 128 bytes. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. A commit timestamp representing when this Instance was + # created. For instances created before this field was added (August 2021), + # this value is `seconds: 0, nanos: 1`. + # @!attribute [r] satisfies_pzs + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [r] satisfies_pzi + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [rw] tags + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Input only. Immutable. Tag keys/values directly bound to this + # resource. For example: + # - "123/environment": "production", + # - "123/costCenter": "marketing" + # + # Tags and Labels (above) are both used to bind metadata to resources, with + # different use-cases. See + # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + # in-depth overview on the difference between tags and labels. + class Instance + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TagsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of an instance. + module State + # The state of the instance could not be determined. + STATE_NOT_KNOWN = 0 + + # The instance has been successfully created and can serve requests + # to its tables. + READY = 1 + + # The instance is currently being created, and may be destroyed + # if the creation process encounters an error. + CREATING = 2 + end + + # The type of the instance. + module Type + # The type of the instance is unspecified. If set when creating an + # instance, a `PRODUCTION` instance will be created. If set when updating + # an instance, the type will be left unchanged. + TYPE_UNSPECIFIED = 0 + + # An instance meant for production use. `serve_nodes` must be set + # on the cluster. + PRODUCTION = 1 + + # DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces + # a higher minimum node count than DEVELOPMENT. + DEVELOPMENT = 2 + end + end + + # The Autoscaling targets for a Cluster. These determine the recommended nodes. + # @!attribute [rw] cpu_utilization_percent + # @return [::Integer] + # The cpu utilization that the Autoscaler should be trying to achieve. + # This number is on a scale from 0 (no utilization) to + # 100 (total utilization), and is limited between 10 and 80, otherwise it + # will return INVALID_ARGUMENT error. + # @!attribute [rw] storage_utilization_gib_per_node + # @return [::Integer] + # The storage utilization that the Autoscaler should be trying to achieve. + # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, + # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + # it will be treated as if it were set to the default value: 2560 for SSD, + # 8192 for HDD. + class AutoscalingTargets + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Limits for the number of nodes a Cluster can autoscale up/down to. + # @!attribute [rw] min_serve_nodes + # @return [::Integer] + # Required. Minimum number of nodes to scale down to. + # @!attribute [rw] max_serve_nodes + # @return [::Integer] + # Required. Maximum number of nodes to scale up to. + class AutoscalingLimits + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resizable group of nodes in a particular cloud location, capable + # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent + # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}. + # @!attribute [rw] name + # @return [::String] + # The unique name of the cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + # @!attribute [rw] location + # @return [::String] + # Immutable. The location where this cluster's nodes and storage reside. For + # best performance, clients should be located as close as possible to this + # cluster. Currently only zones are supported, so values should be of the + # form `projects/{project}/locations/{zone}`. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::State] + # Output only. The current state of the cluster. + # @!attribute [rw] serve_nodes + # @return [::Integer] + # The number of nodes in the cluster. If no value is set, + # Cloud Bigtable automatically allocates nodes based on your data footprint + # and optimized for 50% storage utilization. + # @!attribute [rw] node_scaling_factor + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] + # Immutable. The node scaling factor of this cluster. + # @!attribute [rw] cluster_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig] + # Configuration for this cluster. + # @!attribute [rw] default_storage_type + # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType] + # Immutable. The type of storage used by this cluster to serve its + # parent instance's tables, unless explicitly overridden. + # @!attribute [rw] encryption_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig] + # Immutable. The encryption configuration for CMEK-protected clusters. + class Cluster + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Autoscaling config for a cluster. + # @!attribute [rw] autoscaling_limits + # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits] + # Required. Autoscaling limits for this cluster. + # @!attribute [rw] autoscaling_targets + # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets] + # Required. Autoscaling targets for this cluster. + class ClusterAutoscalingConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for a cluster. + # @!attribute [rw] cluster_autoscaling_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig] + # Autoscaling configuration for this cluster. + class ClusterConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected + # cluster. + # @!attribute [rw] kms_key_name + # @return [::String] + # Describes the Cloud KMS encryption key that will be used to protect the + # destination Bigtable cluster. The requirements for this key are: + # 1) The Cloud Bigtable service account associated with the project that + # contains this cluster must be granted the + # `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + # 2) Only regional keys can be used and the region of the CMEK key must + # match the region of the cluster. + # Values are of the form + # `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + class EncryptionConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of a cluster. + module State + # The state of the cluster could not be determined. + STATE_NOT_KNOWN = 0 + + # The cluster has been successfully created and is ready to serve requests. + READY = 1 + + # The cluster is currently being created, and may be destroyed + # if the creation process encounters an error. + # A cluster may not be able to serve requests while being created. + CREATING = 2 + + # The cluster is currently being resized, and may revert to its previous + # node count if the process encounters an error. + # A cluster is still capable of serving requests while being resized, + # but may exhibit performance as if its number of allocated nodes is + # between the starting and requested states. + RESIZING = 3 + + # The cluster has no backing nodes. The data (tables) still + # exist, but no operations can be performed on the cluster. + DISABLED = 4 + end + + # Possible node scaling factors of the clusters. Node scaling delivers better + # latency and more throughput by removing node boundaries. + module NodeScalingFactor + # No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. + NODE_SCALING_FACTOR_UNSPECIFIED = 0 + + # The cluster is running with a scaling factor of 1. + NODE_SCALING_FACTOR_1X = 1 + + # The cluster is running with a scaling factor of 2. + # All node count values must be in increments of 2 with this scaling factor + # enabled, otherwise an INVALID_ARGUMENT error will be returned. + NODE_SCALING_FACTOR_2X = 2 + end + end + + # A configuration object describing how Cloud Bigtable should treat traffic + # from a particular end user application. + # @!attribute [rw] name + # @return [::String] + # The unique name of the app profile. Values are of the form + # `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # @!attribute [rw] etag + # @return [::String] + # Strongly validated etag for optimistic concurrency control. Preserve the + # value returned from `GetAppProfile` when calling `UpdateAppProfile` to + # fail the request if there has been a modification in the mean time. The + # `update_mask` of the request need not include `etag` for this protection + # to apply. + # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + # [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + # details. + # @!attribute [rw] description + # @return [::String] + # Long form description of the use case for this AppProfile. + # @!attribute [rw] multi_cluster_routing_use_any + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny] + # Use a multi-cluster routing policy. + # + # Note: The following fields are mutually exclusive: `multi_cluster_routing_use_any`, `single_cluster_routing`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] single_cluster_routing + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting] + # Use a single-cluster routing policy. + # + # Note: The following fields are mutually exclusive: `single_cluster_routing`, `multi_cluster_routing_use_any`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] priority + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] + # This field has been deprecated in favor of `standard_isolation.priority`. + # If you set this field, `standard_isolation.priority` will be set instead. + # + # The priority of requests sent using this app profile. + # + # Note: The following fields are mutually exclusive: `priority`, `standard_isolation`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] standard_isolation + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::StandardIsolation] + # The standard options used for isolating this app profile's traffic from + # other use cases. + # + # Note: The following fields are mutually exclusive: `standard_isolation`, `priority`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_boost_isolation_read_only + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly] + # Specifies that this app profile is intended for read-only usage via the + # Data Boost feature. + # + # Note: The following fields are mutually exclusive: `data_boost_isolation_read_only`, `priority`, `standard_isolation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class AppProfile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Read/write requests are routed to the nearest cluster in the instance, and + # will fail over to the nearest cluster that is available in the event of + # transient errors or delays. Clusters in a region are considered + # equidistant. Choosing this option sacrifices read-your-writes consistency + # to improve availability. + # @!attribute [rw] cluster_ids + # @return [::Array<::String>] + # The set of clusters to route to. The order is ignored; clusters will be + # tried in order of distance. If left empty, all clusters are eligible. + # @!attribute [rw] row_affinity + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity] + # Row affinity sticky routing based on the row key of the request. + # Requests that span multiple rows are routed non-deterministically. + class MultiClusterRoutingUseAny + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # If enabled, Bigtable will route the request based on the row key of the + # request, rather than randomly. Instead, each row key will be assigned + # to a cluster, and will stick to that cluster. If clusters are added or + # removed, then this may affect which row keys stick to which clusters. + # To avoid this, users can use a cluster group to specify which clusters + # are to be used. In this case, new clusters that are not a part of the + # cluster group will not be routed to, and routing will be unaffected by + # the new cluster. Moreover, clusters specified in the cluster group cannot + # be deleted unless removed from the cluster group. + class RowAffinity + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Unconditionally routes all read/write requests to a specific cluster. + # This option preserves read-your-writes consistency but does not improve + # availability. + # @!attribute [rw] cluster_id + # @return [::String] + # The cluster to which read/write requests should be routed. + # @!attribute [rw] allow_transactional_writes + # @return [::Boolean] + # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + # allowed by this app profile. It is unsafe to send these requests to + # the same table/row/column in multiple clusters. + class SingleClusterRouting + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Standard options for isolating this app profile's traffic from other use + # cases. + # @!attribute [rw] priority + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] + # The priority of requests sent using this app profile. + class StandardIsolation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data Boost is a serverless compute capability that lets you run + # high-throughput read jobs and queries on your Bigtable data, without + # impacting the performance of the clusters that handle your application + # traffic. Data Boost supports read-only use cases with single-cluster + # routing. + # @!attribute [rw] compute_billing_owner + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner] + # The Compute Billing Owner for this Data Boost App Profile. + class DataBoostIsolationReadOnly + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Compute Billing Owner specifies how usage should be accounted when using + # Data Boost. Compute Billing Owner also configures which Cloud Project is + # charged for relevant quota. + module ComputeBillingOwner + # Unspecified value. + COMPUTE_BILLING_OWNER_UNSPECIFIED = 0 + + # The host Cloud Project containing the targeted Bigtable Instance / + # Table pays for compute. + HOST_PAYS = 1 + end + end + + # Possible priorities for an app profile. Note that higher priority writes + # can sometimes queue behind lower priority writes to the same tablet, as + # writes must be strictly sequenced in the durability log. + module Priority + # Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. + PRIORITY_UNSPECIFIED = 0 + + PRIORITY_LOW = 1 + + PRIORITY_MEDIUM = 2 + + PRIORITY_HIGH = 3 + end + end + + # A tablet is a defined by a start and end key and is explained in + # https://cloud.google.com/bigtable/docs/overview#architecture and + # https://cloud.google.com/bigtable/docs/performance#optimization. + # A Hot tablet is a tablet that exhibits high average cpu usage during the time + # interval from start time to end time. + # @!attribute [rw] name + # @return [::String] + # The unique name of the hot tablet. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. + # @!attribute [rw] table_name + # @return [::String] + # Name of the table that contains the tablet. Values are of the form + # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The start time of the hot tablet. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The end time of the hot tablet. + # @!attribute [rw] start_key + # @return [::String] + # Tablet Start Key (inclusive). + # @!attribute [rw] end_key + # @return [::String] + # Tablet End Key (inclusive). + # @!attribute [r] node_cpu_usage_percent + # @return [::Float] + # Output only. The average CPU usage spent by a node on this tablet over the + # start_time to end_time time range. The percentage is the amount of CPU used + # by the node to serve the tablet, from 0% (tablet was not interacted with) + # to 100% (the node spent all cycles serving the hot tablet). + class HotTablet + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A SQL logical view object that can be referenced in SQL queries. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name of the logical view. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + # @!attribute [rw] query + # @return [::String] + # Required. The logical view's select query. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this logical view. + # This may be sent on update requests to ensure that the client has an + # up-to-date value before proceeding. The server returns an ABORTED error on + # a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Optional. Set to true to make the LogicalView protected against deletion. + class LogicalView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A materialized view object that can be referenced in SQL queries. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name of the materialized view. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + # @!attribute [rw] query + # @return [::String] + # Required. Immutable. The materialized view's select query. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this materialized view. + # This may be sent on update requests to ensure that the client has an + # up-to-date value before proceeding. The server returns an ABORTED error on + # a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the MaterializedView protected against deletion. + class MaterializedView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb new file mode 100644 index 000000000000..a0aaeed8b974 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb @@ -0,0 +1,741 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Information about a table restore. + # @!attribute [rw] source_type + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] + # The type of the restore source. + # @!attribute [rw] backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # Information about the backup used to restore the table. The backup + # may no longer exist. + class RestoreInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Change stream configuration. + # @!attribute [rw] retention_period + # @return [::Google::Protobuf::Duration] + # How long the change stream should be retained. Change stream data older + # than the retention period will not be returned when reading the change + # stream from the table. + # Values must be at least 1 day and at most 7 days, and will be truncated to + # microsecond granularity. + class ChangeStreamConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A collection of user data indexed by row, column, and timestamp. + # Each table is served using the resources of its parent cluster. + # @!attribute [rw] name + # @return [::String] + # The unique name of the table. Values are of the form + # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + # @!attribute [r] cluster_states + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState}] + # Output only. Map from cluster ID to per-cluster table state. + # If it could not be determined whether or not the table has data in a + # particular cluster (for example, if its zone is unavailable), then + # there will be an entry for the cluster with UNKNOWN `replication_status`. + # Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` + # @!attribute [rw] column_families + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::ColumnFamily}] + # The column families configured for this table, mapped by column family ID. + # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + # @!attribute [rw] granularity + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::TimestampGranularity] + # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + # in this table. Timestamps not matching the granularity will be rejected. If + # unspecified at creation time, the value will be set to `MILLIS`. Views: + # `SCHEMA_VIEW`, `FULL`. + # @!attribute [r] restore_info + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreInfo] + # Output only. If this table was restored from another data source (e.g. a + # backup), this field will be populated with information about the restore. + # @!attribute [rw] change_stream_config + # @return [::Google::Cloud::Bigtable::Admin::V2::ChangeStreamConfig] + # If specified, enable the change stream on this table. + # Otherwise, the change stream is disabled and the change stream is not + # retained. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the table protected against data loss. i.e. deleting + # the following resources through Admin APIs are prohibited: + # + # * The table. + # * The column families in the table. + # * The instance containing the table. + # + # Note one can still delete the data stored in the table through Data APIs. + # @!attribute [rw] automated_backup_policy + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::AutomatedBackupPolicy] + # If specified, automated backups are enabled for this table. + # Otherwise, automated backups are disabled. + # @!attribute [rw] tiered_storage_config + # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageConfig] + # Rules to specify what data is stored in each storage tier. + # Different tiers store data differently, providing different trade-offs + # between cost and performance. Different parts of a table can be stored + # separately on different tiers. + # If a config is specified, tiered storage is enabled for this table. + # Otherwise, tiered storage is disabled. + # Only SSD instances can configure tiered storage. + # @!attribute [rw] row_key_schema + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] + # The row key schema for this table. The schema is used to decode the raw row + # key bytes into a structured format. The order of field declarations in this + # schema is important, as it reflects how the raw row key bytes are + # structured. Currently, this only affects how the key is read via a + # GoogleSQL query from the ExecuteQuery API. + # + # For a SQL query, the _key column is still read as raw bytes. But queries + # can reference the key fields by name, which will be decoded from _key using + # provided type and encoding. Queries that reference key fields will fail if + # they encounter an invalid row key. + # + # For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + # following schema: + # { + # fields { + # field_name: "id" + # type { string { encoding: utf8_bytes \\{} } } + # } + # fields { + # field_name: "date" + # type { string { encoding: utf8_bytes \\{} } } + # } + # fields { + # field_name: "product_code" + # type { int64 { encoding: big_endian_bytes \\{} } } + # } + # encoding { delimited_bytes { delimiter: "#" } } + # } + # + # The decoded key parts would be: + # id = "some_id", date = "2024-04-30", product_code = 1245427 + # The query "SELECT _key, product_code FROM table" will return two columns: + # /------------------------------------------------------\ + # | _key | product_code | + # | --------------------------------------|--------------| + # | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + # \------------------------------------------------------/ + # + # The schema has the following invariants: + # (1) The decoded field values are order-preserved. For read, the field + # values will be decoded in sorted mode from the raw bytes. + # (2) Every field in the schema must specify a non-empty name. + # (3) Every field must specify a type with an associated encoding. The type + # is limited to scalar types only: Array, Map, Aggregate, and Struct are not + # allowed. + # (4) The field names must not collide with existing column family + # names and reserved keywords "_key" and "_timestamp". + # + # The following update operations are allowed for row_key_schema: + # - Update from an empty schema to a new schema. + # - Remove the existing schema. This operation requires setting the + # `ignore_warnings` flag to `true`, since it might be a backward + # incompatible change. Without the flag, the update request will fail with + # an INVALID_ARGUMENT error. + # Any other row key schema update operation (e.g. update existing schema + # columns names or types) is currently unsupported. + class Table + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The state of a table's data in a particular cluster. + # @!attribute [r] replication_state + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState::ReplicationState] + # Output only. The state of replication for the table in this cluster. + # @!attribute [r] encryption_info + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo>] + # Output only. The encryption information for the table in this cluster. + # If the encryption key protecting this resource is customer managed, then + # its version can be rotated in Cloud Key Management Service (Cloud KMS). + # The primary version of the key and its status will be reflected here when + # changes propagate from Cloud KMS. + class ClusterState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Table replication states. + module ReplicationState + # The replication state of the table is unknown in this cluster. + STATE_NOT_KNOWN = 0 + + # The cluster was recently created, and the table must finish copying + # over pre-existing data from other clusters before it can begin + # receiving live replication updates and serving Data API requests. + INITIALIZING = 1 + + # The table is temporarily unable to serve Data API requests from this + # cluster due to planned internal maintenance. + PLANNED_MAINTENANCE = 2 + + # The table is temporarily unable to serve Data API requests from this + # cluster due to unplanned or emergency maintenance. + UNPLANNED_MAINTENANCE = 3 + + # The table can serve Data API requests from this cluster. Depending on + # replication delay, reads may not immediately reflect the state of the + # table in other clusters. + READY = 4 + + # The table is fully created and ready for use after a restore, and is + # being optimized for performance. When optimizations are complete, the + # table will transition to `READY` state. + READY_OPTIMIZING = 5 + end + end + + # Defines an automated backup policy for a table + # @!attribute [rw] retention_period + # @return [::Google::Protobuf::Duration] + # Required. How long the automated backups should be retained. Values must + # be at least 3 days and at most 90 days. + # @!attribute [rw] frequency + # @return [::Google::Protobuf::Duration] + # How frequently automated backups should occur. The only supported value + # at this time is 24 hours. An undefined frequency is treated as 24 hours. + # @!attribute [rw] locations + # @return [::Array<::String>] + # Optional. A list of Cloud Bigtable zones where automated backups are + # allowed to be created. If empty, automated backups will be created in all + # zones of the instance. Locations are in the format + # `projects/{project}/locations/{zone}`. + # This field can only set for tables in Enterprise Plus instances. + class AutomatedBackupPolicy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState] + class ClusterStatesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + class ColumnFamiliesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible timestamp granularities to use when keeping multiple versions + # of data in a table. + module TimestampGranularity + # The user did not specify a granularity. Should not be returned. + # When specified during table creation, MILLIS will be used. + TIMESTAMP_GRANULARITY_UNSPECIFIED = 0 + + # The table keeps data versioned at a granularity of 1ms. + MILLIS = 1 + end + + # Defines a view over a table's fields. + module View + # Uses the default view for each method as documented in its request. + VIEW_UNSPECIFIED = 0 + + # Only populates `name`. + NAME_ONLY = 1 + + # Only populates `name` and fields related to the table's schema. + SCHEMA_VIEW = 2 + + # Only populates `name` and fields related to the table's replication + # state. + REPLICATION_VIEW = 3 + + # Only populates `name` and fields related to the table's encryption state. + ENCRYPTION_VIEW = 5 + + # Populates all fields. + FULL = 4 + end + end + + # AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users + # can configure access to each Authorized View independently from the table and + # use the existing Data APIs to access the subset of data. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of this AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + # @!attribute [rw] subset_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::SubsetView] + # An AuthorizedView permitting access to an explicit subset of a Table. + # @!attribute [rw] etag + # @return [::String] + # The etag for this AuthorizedView. + # If this is provided on update, it must match the server's etag. The server + # returns ABORTED error on a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the AuthorizedView protected against deletion. + # The parent Table and containing Instance cannot be deleted if an + # AuthorizedView has this bit set. + class AuthorizedView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Subsets of a column family that are included in this AuthorizedView. + # @!attribute [rw] qualifiers + # @return [::Array<::String>] + # Individual exact column qualifiers to be included in the AuthorizedView. + # @!attribute [rw] qualifier_prefixes + # @return [::Array<::String>] + # Prefixes for qualifiers to be included in the AuthorizedView. Every + # qualifier starting with one of these prefixes is included in the + # AuthorizedView. To provide access to all qualifiers, include the empty + # string as a prefix + # (""). + class FamilySubsets + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a simple AuthorizedView that is a subset of the underlying Table. + # @!attribute [rw] row_prefixes + # @return [::Array<::String>] + # Row prefixes to be included in the AuthorizedView. + # To provide access to all rows, include the empty string as a prefix (""). + # @!attribute [rw] family_subsets + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets}] + # Map from column family name to the columns in this family to be included + # in the AuthorizedView. + class SubsetView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets] + class FamilySubsetsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Defines a subset of an AuthorizedView's fields. + module ResponseView + # Uses the default view for each method as documented in the request. + RESPONSE_VIEW_UNSPECIFIED = 0 + + # Only populates `name`. + NAME_ONLY = 1 + + # Only populates the AuthorizedView's basic metadata. This includes: + # name, deletion_protection, etag. + BASIC = 2 + + # Populates every fields. + FULL = 3 + end + end + + # A set of columns within a table which share a common configuration. + # @!attribute [rw] gc_rule + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule] + # Garbage collection rule specified as a protobuf. + # Must serialize to at most 500 bytes. + # + # NOTE: Garbage collection executes opportunistically in the background, and + # so it's possible for reads to return a cell even if it matches the active + # GC expression for its family. + # @!attribute [rw] value_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of data stored in each of this family's cell values, including its + # full encoding. If omitted, the family only serves raw untyped bytes. + # + # For now, only the `Aggregate` type is supported. + # + # `Aggregate` can only be set at family creation and is immutable afterwards. + # + # + # If `value_type` is `Aggregate`, written data must be compatible with: + # * `value_type.input_type` for `AddInput` mutations + class ColumnFamily + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rule for determining which cells to delete during garbage collection. + # @!attribute [rw] max_num_versions + # @return [::Integer] + # Delete all cells in a column except the most recent N. + # + # Note: The following fields are mutually exclusive: `max_num_versions`, `max_age`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] max_age + # @return [::Google::Protobuf::Duration] + # Delete cells in a column older than the given age. + # Values must be at least one millisecond, and will be truncated to + # microsecond granularity. + # + # Note: The following fields are mutually exclusive: `max_age`, `max_num_versions`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] intersection + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Intersection] + # Delete cells that would be deleted by every nested rule. + # + # Note: The following fields are mutually exclusive: `intersection`, `max_num_versions`, `max_age`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] union + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Union] + # Delete cells that would be deleted by any nested rule. + # + # Note: The following fields are mutually exclusive: `union`, `max_num_versions`, `max_age`, `intersection`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class GcRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A GcRule which deletes cells matching all of the given rules. + # @!attribute [rw] rules + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] + # Only delete cells which would be deleted by every element of `rules`. + class Intersection + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A GcRule which deletes cells matching any of the given rules. + # @!attribute [rw] rules + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] + # Delete cells which would be deleted by any element of `rules`. + class Union + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Encryption information for a given resource. + # If this resource is protected with customer managed encryption, the in-use + # Cloud Key Management Service (Cloud KMS) key version is specified along with + # its status. + # @!attribute [r] encryption_type + # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo::EncryptionType] + # Output only. The type of encryption used to protect this resource. + # @!attribute [r] encryption_status + # @return [::Google::Rpc::Status] + # Output only. The status of encrypt/decrypt calls on underlying data for + # this resource. Regardless of status, the existing data is always encrypted + # at rest. + # @!attribute [r] kms_key_version + # @return [::String] + # Output only. The version of the Cloud KMS key specified in the parent + # cluster that is in use for the data underlying this table. + class EncryptionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible encryption types for a resource. + module EncryptionType + # Encryption type was not specified, though data at rest remains encrypted. + ENCRYPTION_TYPE_UNSPECIFIED = 0 + + # The data backing this resource is encrypted at rest with a key that is + # fully managed by Google. No key version or status will be populated. + # This is the default state. + GOOGLE_DEFAULT_ENCRYPTION = 1 + + # The data backing this resource is encrypted at rest with a key that is + # managed by the customer. + # The in-use version of the key and its status are populated for + # CMEK-protected tables. + # CMEK-protected backups are pinned to the key version that was in use at + # the time the backup was taken. This key version is populated but its + # status is not tracked and is reported as `UNKNOWN`. + CUSTOMER_MANAGED_ENCRYPTION = 2 + end + end + + # A snapshot of a table at a particular time. A snapshot can be used as a + # checkpoint for data restoration or a data source for a new table. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # The unique name of the snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # @!attribute [r] source_table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Output only. The source table at the time the snapshot was taken. + # @!attribute [r] data_size_bytes + # @return [::Integer] + # Output only. The size of the data in the source table at the time the + # snapshot was taken. In some cases, this value may be computed + # asynchronously via a background process and a placeholder of 0 will be used + # in the meantime. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time when the snapshot is created. + # @!attribute [rw] delete_time + # @return [::Google::Protobuf::Timestamp] + # The time when the snapshot will be deleted. The maximum amount of time a + # snapshot can stay active is 365 days. If 'ttl' is not specified, + # the default maximum of 365 days will be used. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot::State] + # Output only. The current state of the snapshot. + # @!attribute [rw] description + # @return [::String] + # Description of the snapshot. + class Snapshot + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible states of a snapshot. + module State + # The state of the snapshot could not be determined. + STATE_NOT_KNOWN = 0 + + # The snapshot has been successfully created and can serve all requests. + READY = 1 + + # The snapshot is currently being created, and may be destroyed if the + # creation process encounters an error. A snapshot may not be restored to a + # table while it is being created. + CREATING = 2 + end + end + + # A backup of a Cloud Bigtable table. + # @!attribute [rw] name + # @return [::String] + # A globally unique identifier for the backup which cannot be + # changed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/ + # backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + # The final segment of the name must be between 1 and 50 characters + # in length. + # + # The backup is stored in the cluster identified by the prefix of the backup + # name of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] source_table + # @return [::String] + # Required. Immutable. Name of the table from which this backup was created. + # This needs to be in the same instance as the backup. Values are of the form + # `projects/{project}/instances/{instance}/tables/{source_table}`. + # @!attribute [r] source_backup + # @return [::String] + # Output only. Name of the backup from which this backup was copied. If a + # backup is not created by copying a backup, this field will be empty. Values + # are of the form: + # projects//instances//clusters//backups/ + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # Required. The expiration time of the backup. + # When creating a backup or updating its `expire_time`, the value must be + # greater than the backup creation time by: + # - At least 6 hours + # - At most 90 days + # + # Once the `expire_time` has passed, Cloud Bigtable will delete the backup. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. `start_time` is the time that the backup was started + # (i.e. approximately the time the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup} + # request is received). The row data in this backup will be no older than + # this timestamp. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. `end_time` is the time that the backup was finished. The row + # data in the backup will be no newer than this timestamp. + # @!attribute [r] size_bytes + # @return [::Integer] + # Output only. Size of the backup in bytes. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State] + # Output only. The current state of the backup. + # @!attribute [r] encryption_info + # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo] + # Output only. The encryption information for the backup. + # @!attribute [rw] backup_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType] + # Indicates the backup type of the backup. + # @!attribute [rw] hot_to_standard_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the hot backup will be converted to a standard backup. + # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the + # hot backup to a standard backup. This value must be greater than the backup + # creation time by: + # - At least 24 hours + # + # This field only applies for hot backups. When creating or updating a + # standard backup, attempting to set this field will fail the request. + class Backup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the current state of the backup. + module State + # Not specified. + STATE_UNSPECIFIED = 0 + + # The pending backup is still being created. Operations on the + # backup may fail with `FAILED_PRECONDITION` in this state. + CREATING = 1 + + # The backup is complete and ready for use. + READY = 2 + end + + # The type of the backup. + module BackupType + # Not specified. + BACKUP_TYPE_UNSPECIFIED = 0 + + # The default type for Cloud Bigtable managed backups. Supported for + # backups created in both HDD and SSD instances. Requires optimization when + # restored to a table in an SSD instance. + STANDARD = 1 + + # A backup type with faster restore to SSD performance. Only supported for + # backups created in SSD instances. A new SSD table restored from a hot + # backup reaches production performance more quickly than a standard + # backup. + HOT = 2 + end + end + + # Information about a backup. + # @!attribute [r] backup + # @return [::String] + # Output only. Name of the backup. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time that the backup was started. Row data in the backup + # will be no older than this timestamp. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. This time that the backup was finished. Row data in the + # backup will be no newer than this timestamp. + # @!attribute [r] source_table + # @return [::String] + # Output only. Name of the table the backup was created from. + # @!attribute [r] source_backup + # @return [::String] + # Output only. Name of the backup from which this backup was copied. If a + # backup is not created by copying a backup, this field will be empty. Values + # are of the form: + # projects//instances//clusters//backups/ + class BackupInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Config for tiered storage. + # A valid config must have a valid TieredStorageRule. Otherwise the whole + # TieredStorageConfig must be unset. + # By default all data is stored in the SSD tier (only SSD instances can + # configure tiered storage). + # @!attribute [rw] infrequent_access + # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageRule] + # Rule to specify what data is stored in the infrequent access(IA) tier. + # The IA tier allows storing more data per node with reduced performance. + class TieredStorageConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rule to specify what data is stored in a storage tier. + # @!attribute [rw] include_if_older_than + # @return [::Google::Protobuf::Duration] + # Include cells older than the given age. + # For the infrequent access tier, this value must be at least 30 days. + class TieredStorageRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a protobuf schema. + # @!attribute [rw] proto_descriptors + # @return [::String] + # Required. Contains a protobuf-serialized + # [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + # which could include multiple proto files. + # To generate it, [install](https://grpc.io/docs/protoc-installation/) and + # run `protoc` with + # `--include_imports` and `--descriptor_set_out`. For example, to generate + # for moon/shot/app.proto, run + # ``` + # $protoc --proto_path=/app_path --proto_path=/lib_path \ + # --include_imports \ + # --descriptor_set_out=descriptors.pb \ + # moon/shot/app.proto + # ``` + # For more details, see protobuffer [self + # description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + class ProtoSchema + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A named collection of related schemas. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] proto_schema + # @return [::Google::Cloud::Bigtable::Admin::V2::ProtoSchema] + # Schema for Protobufs. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this schema bundle. + # This may be sent on update and delete requests to ensure the + # client has an up-to-date value before proceeding. The server + # returns an ABORTED error on a mismatched etag. + class SchemaBundle + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the type of the restore source. + module RestoreSourceType + # No restore associated. + RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 + + # A backup was used as the source of the restore. + BACKUP = 1 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb new file mode 100644 index 000000000000..8a598f02b9ff --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb @@ -0,0 +1,575 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # `Type` represents the type of data that is written to, read from, or stored + # in Bigtable. It is heavily based on the GoogleSQL standard to help maintain + # familiarity and consistency across products and features. + # + # For compatibility with Bigtable's existing untyped APIs, each `Type` includes + # an `Encoding` which describes how to convert to or from the underlying data. + # + # Each encoding can operate in one of two modes: + # + # - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` + # if and only if `X <= Y`. This is useful anywhere sort order is important, + # for example when encoding keys. + # - Distinct: In this mode, Bigtable guarantees that if `X != Y` then + # `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For + # example, both "\\{'foo': '1', 'bar': '2'}" and "\\{'bar': '2', 'foo': '1'}" + # are valid encodings of the same JSON value. + # + # The API clearly documents which mode is used wherever an encoding can be + # configured. Each encoding also documents which values are supported in which + # modes. For example, when encoding INT64 as a numeric STRING, negative numbers + # cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but + # `STRING("-00001") > STRING("00001")`. + # @!attribute [rw] bytes_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] + # Bytes + # + # Note: The following fields are mutually exclusive: `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] string_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String] + # String + # + # Note: The following fields are mutually exclusive: `string_type`, `bytes_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] int64_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64] + # Int64 + # + # Note: The following fields are mutually exclusive: `int64_type`, `bytes_type`, `string_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float32_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float32] + # Float32 + # + # Note: The following fields are mutually exclusive: `float32_type`, `bytes_type`, `string_type`, `int64_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float64_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float64] + # Float64 + # + # Note: The following fields are mutually exclusive: `float64_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bool] + # Bool + # + # Note: The following fields are mutually exclusive: `bool_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] timestamp_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp] + # Timestamp + # + # Note: The following fields are mutually exclusive: `timestamp_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] date_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Date] + # Date + # + # Note: The following fields are mutually exclusive: `date_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] aggregate_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate] + # Aggregate + # + # Note: The following fields are mutually exclusive: `aggregate_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] struct_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] + # Struct + # + # Note: The following fields are mutually exclusive: `struct_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] array_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Array] + # Array + # + # Note: The following fields are mutually exclusive: `array_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] map_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Map] + # Map + # + # Note: The following fields are mutually exclusive: `map_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] proto_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Proto] + # Proto + # + # Note: The following fields are mutually exclusive: `proto_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] enum_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Enum] + # Enum + # + # Note: The following fields are mutually exclusive: `enum_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Type + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Bytes + # Values of type `Bytes` are stored in `Value.bytes_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding] + # The encoding to use when converting to or from lower level types. + class Bytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] raw + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding::Raw] + # Use `Raw` encoding. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Leaves the value as-is. + # + # Sorted mode: all values are supported. + # + # Distinct mode: all values are supported. + class Raw + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # String + # Values of type `String` are stored in `Value.string_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding] + # The encoding to use when converting to or from lower level types. + class String + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] utf8_raw + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Raw] + # Deprecated: if set, converts to an empty `utf8_bytes`. + # + # Note: The following fields are mutually exclusive: `utf8_raw`, `utf8_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] utf8_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Bytes] + # Use `Utf8Bytes` encoding. + # + # Note: The following fields are mutually exclusive: `utf8_bytes`, `utf8_raw`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Deprecated: prefer the equivalent `Utf8Bytes`. + # @deprecated This message is deprecated and may be removed in the next major version update. + class Utf8Raw + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UTF-8 encoding. + # + # Sorted mode: + # - All values are supported. + # - Code point order is preserved. + # + # Distinct mode: all values are supported. + # + # Compatible with: + # + # - BigQuery `TEXT` encoding + # - HBase `Bytes.toBytes` + # - Java `String#getBytes(StandardCharsets.UTF_8)` + class Utf8Bytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # Int64 + # Values of type `Int64` are stored in `Value.int_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] + # The encoding to use when converting to or from lower level types. + class Int64 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] big_endian_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::BigEndianBytes] + # Use `BigEndianBytes` encoding. + # + # Note: The following fields are mutually exclusive: `big_endian_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ordered_code_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::OrderedCodeBytes] + # Use `OrderedCodeBytes` encoding. + # + # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `big_endian_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Encodes the value as an 8-byte big-endian two's complement value. + # + # Sorted mode: non-negative values are supported. + # + # Distinct mode: all values are supported. + # + # Compatible with: + # + # - BigQuery `BINARY` encoding + # - HBase `Bytes.toBytes` + # - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` + # @!attribute [rw] bytes_type + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] + # Deprecated: ignored if set. + class BigEndianBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Encodes the value in a variable length binary format of up to 10 bytes. + # Values that are closer to zero use fewer bytes. + # + # Sorted mode: all values are supported. + # + # Distinct mode: all values are supported. + class OrderedCodeBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # bool + # Values of type `Bool` are stored in `Value.bool_value`. + class Bool + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Float32 + # Values of type `Float32` are stored in `Value.float_value`. + class Float32 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Float64 + # Values of type `Float64` are stored in `Value.float_value`. + class Float64 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Timestamp + # Values of type `Timestamp` are stored in `Value.timestamp_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp::Encoding] + # The encoding to use when converting to or from lower level types. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] unix_micros_int64 + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] + # Encodes the number of microseconds since the Unix epoch using the + # given `Int64` encoding. Values must be microsecond-aligned. + # + # Compatible with: + # + # - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Date + # Values of type `Date` are stored in `Value.date_value`. + class Date + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A structured data value, consisting of fields which map to dynamically + # typed values. + # Values of type `Struct` are stored in `Value.array_value` where entries are + # in the same order and number as `field_types`. + # @!attribute [rw] fields + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Field>] + # The names and types of the fields in this struct. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding] + # The encoding to use when converting to or from lower level types. + class Struct + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A struct field and its type. + # @!attribute [rw] field_name + # @return [::String] + # The field name (optional). Fields without a `field_name` are considered + # anonymous and cannot be referenced by name. + # @!attribute [rw] type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of values in this field. + class Field + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rules used to convert to or from lower level types. + # @!attribute [rw] singleton + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::Singleton] + # Use `Singleton` encoding. + # + # Note: The following fields are mutually exclusive: `singleton`, `delimited_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delimited_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::DelimitedBytes] + # Use `DelimitedBytes` encoding. + # + # Note: The following fields are mutually exclusive: `delimited_bytes`, `singleton`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ordered_code_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::OrderedCodeBytes] + # User `OrderedCodeBytes` encoding. + # + # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `singleton`, `delimited_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Uses the encoding of `fields[0].type` as-is. + # Only valid if `fields.size == 1`. + class Singleton + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Fields are encoded independently and concatenated with a configurable + # `delimiter` in between. + # + # A struct with no fields defined is encoded as a single `delimiter`. + # + # Sorted mode: + # + # - Fields are encoded in sorted mode. + # - Encoded field values must not contain any bytes <= `delimiter[0]` + # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + # + # Distinct mode: + # + # - Fields are encoded in distinct mode. + # - Encoded field values must not contain `delimiter[0]`. + # @!attribute [rw] delimiter + # @return [::String] + # Byte sequence used to delimit concatenated fields. The delimiter must + # contain at least 1 character and at most 50 characters. + class DelimitedBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Fields are encoded independently and concatenated with the fixed byte + # pair \\{0x00, 0x01} in between. + # + # Any null (0x00) byte in an encoded field is replaced by the fixed byte + # pair \\{0x00, 0xFF}. + # + # Fields that encode to the empty string "" have special handling: + # + # - If *every* field encodes to "", or if the STRUCT has no fields + # defined, then the STRUCT is encoded as the fixed byte pair + # \\{0x00, 0x00}. + # - Otherwise, the STRUCT only encodes until the last non-empty field, + # omitting any trailing empty fields. Any empty fields that aren't + # omitted are replaced with the fixed byte pair \\{0x00, 0x00}. + # + # Examples: + # + # - STRUCT() -> "\00\00" + # - STRUCT("") -> "\00\00" + # - STRUCT("", "") -> "\00\00" + # - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" + # - STRUCT("A", "") -> "A" + # - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" + # - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" + # + # + # Since null bytes are always escaped, this encoding can cause size + # blowup for encodings like `Int64.BigEndianBytes` that are likely to + # produce many such bytes. + # + # Sorted mode: + # + # - Fields are encoded in sorted mode. + # - All values supported by the field encodings are allowed + # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + # + # Distinct mode: + # + # - Fields are encoded in distinct mode. + # - All values supported by the field encodings are allowed. + class OrderedCodeBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # A protobuf message type. + # Values of type `Proto` are stored in `Value.bytes_value`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # The ID of the schema bundle that this proto is defined in. + # @!attribute [rw] message_name + # @return [::String] + # The fully qualified name of the protobuf message, including package. In + # the format of "foo.bar.Message". + class Proto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A protobuf enum type. + # Values of type `Enum` are stored in `Value.int_value`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # The ID of the schema bundle that this enum is defined in. + # @!attribute [rw] enum_name + # @return [::String] + # The fully qualified name of the protobuf enum message, including package. + # In the format of "foo.bar.EnumMessage". + class Enum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # An ordered list of elements of a given type. + # Values of type `Array` are stored in `Value.array_value`. + # @!attribute [rw] element_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of the elements in the array. This must not be `Array`. + class Array + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A mapping of keys to values of a given type. + # Values of type `Map` are stored in a `Value.array_value` where each entry + # is another `Value.array_value` with two elements (the key and the value, + # in that order). + # Normally encoded Map values won't have repeated keys, however, clients are + # expected to handle the case in which they do. If the same key appears + # multiple times, the _last_ value takes precedence. + # @!attribute [rw] key_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of a map key. + # Only `Bytes`, `String`, and `Int64` are allowed as key types. + # @!attribute [rw] value_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of the values in a map. + class Map + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A value that combines incremental updates into a summarized value. + # + # Data is never directly written or read using type `Aggregate`. Writes will + # provide either the `input_type` or `state_type`, and reads will always + # return the `state_type` . + # @!attribute [rw] input_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # Type of the inputs that are accumulated by this `Aggregate`, which must + # specify a full encoding. + # Use `AddInput` mutations to accumulate new inputs. + # @!attribute [r] state_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # Output only. Type that holds the internal accumulator state for the + # `Aggregate`. This is a function of the `input_type` and `aggregator` + # chosen, and will always specify a full encoding. + # @!attribute [rw] sum + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Sum] + # Sum aggregator. + # + # Note: The following fields are mutually exclusive: `sum`, `hllpp_unique_count`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] hllpp_unique_count + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount] + # HyperLogLogPlusPlusUniqueCount aggregator. + # + # Note: The following fields are mutually exclusive: `hllpp_unique_count`, `sum`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] max + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Max] + # Max aggregator. + # + # Note: The following fields are mutually exclusive: `max`, `sum`, `hllpp_unique_count`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] min + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Min] + # Min aggregator. + # + # Note: The following fields are mutually exclusive: `min`, `sum`, `hllpp_unique_count`, `max`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Aggregate + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Computes the sum of the input values. + # Allowed input: `Int64` + # State: same as input + class Sum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes the max of the input values. + # Allowed input: `Int64` + # State: same as input + class Max + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes the min of the input values. + # Allowed input: `Int64` + # State: same as input + class Min + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes an approximate unique count over the input values. When using + # raw data as input, be careful to use a consistent encoding. Otherwise + # the same value encoded differently could count more than once, or two + # distinct values could count as identical. + # Input: Any, or omit for Raw + # State: TBD + # Special state conversions: `Int64` (the unique count estimate) + class HyperLogLogPlusPlusUniqueCount + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb new file mode 100644 index 000000000000..5445c77f8258 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb @@ -0,0 +1,87 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # Request message for `SetIamPolicy` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] policy + # @return [::Google::Iam::V1::Policy] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + class SetIamPolicyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `GetIamPolicy` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] options + # @return [::Google::Iam::V1::GetPolicyOptions] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + class GetIamPolicyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `TestIamPermissions` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] permissions + # @return [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + class TestIamPermissionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `TestIamPermissions` method. + # @!attribute [rw] permissions + # @return [::Array<::String>] + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + class TestIamPermissionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb new file mode 100644 index 000000000000..60713d995b86 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # Encapsulates settings provided to GetIamPolicy. + # @!attribute [rw] requested_policy_version + # @return [::Integer] + # Optional. The maximum policy version that will be used to format the + # policy. + # + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # + # Requests for policies with any conditional role bindings must specify + # version 3. Policies with no conditional role bindings may specify any valid + # value or leave the field unset. + # + # The policy in the response might use the policy version that you specified, + # or it might use a lower policy version. For example, if you specify version + # 3, but the policy has no conditional role bindings, the response uses + # version 1. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + class GetPolicyOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb new file mode 100644 index 000000000000..999575b797df --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb @@ -0,0 +1,426 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # + # + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members`, or principals, to a single `role`. Principals can be user + # accounts, service accounts, Google groups, and domains (such as G Suite). A + # `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. + # + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # + # **JSON example:** + # + # ``` + # { + # "bindings": [ + # { + # "role": "roles/resourcemanager.organizationAdmin", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" + # ] + # }, + # { + # "role": "roles/resourcemanager.organizationViewer", + # "members": [ + # "user:eve@example.com" + # ], + # "condition": { + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # } + # } + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 + # } + # ``` + # + # **YAML example:** + # + # ``` + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin + # - members: + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # etag: BwWWja0YfJA= + # version: 3 + # ``` + # + # For a description of IAM and its features, see the + # [IAM documentation](https://cloud.google.com/iam/docs/). + # @!attribute [rw] version + # @return [::Integer] + # Specifies the format of the policy. + # + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # @!attribute [rw] bindings + # @return [::Array<::Google::Iam::V1::Binding>] + # Associates a list of `members`, or principals, with a `role`. Optionally, + # may specify a `condition` that determines how and when the `bindings` are + # applied. Each of the `bindings` must contain at least one principal. + # + # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + # of these principals can be Google groups. Each occurrence of a principal + # counts towards these limits. For example, if the `bindings` grant 50 + # different roles to `user:alice@example.com`, and not to any other + # principal, then you can add another 1,450 principals to the `bindings` in + # the `Policy`. + # @!attribute [rw] audit_configs + # @return [::Array<::Google::Iam::V1::AuditConfig>] + # Specifies cloud audit logging configuration for this policy. + # @!attribute [rw] etag + # @return [::String] + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + class Policy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Associates `members`, or principals, with a `role`. + # @!attribute [rw] role + # @return [::String] + # Role that is assigned to the list of `members`, or principals. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # @!attribute [rw] members + # @return [::Array<::String>] + # Specifies the principals requesting access for a Google Cloud resource. + # `members` can have the following values: + # + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # + # * `user:{emailid}`: An email address that represents a specific Google + # account. For example, `alice@example.com` . + # + # + # * `serviceAccount:{emailid}`: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # + # * `group:{emailid}`: An email address that represents a Google group. + # For example, `admins@example.com`. + # + # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:{emailid}` and the recovered user + # retains the role in the binding. + # + # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:{emailid}` and the undeleted service account retains the + # role in the binding. + # + # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:{emailid}` and the + # recovered group retains the role in the binding. + # + # + # * `domain:{domain}`: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # @!attribute [rw] condition + # @return [::Google::Type::Expr] + # The condition that is associated with this binding. + # + # If the condition evaluates to `true`, then this binding applies to the + # current request. + # + # If the condition evaluates to `false`, then this binding does not apply to + # the current request. However, a different role binding might grant the same + # role to one or more of the principals in this binding. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + class Binding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # + # Example Policy with multiple AuditConfigs: + # + # { + # "audit_configs": [ + # { + # "service": "allServices", + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # }, + # { + # "log_type": "DATA_WRITE" + # }, + # { + # "log_type": "ADMIN_READ" + # } + # ] + # }, + # { + # "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ" + # }, + # { + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:aliya@example.com" + # ] + # } + # ] + # } + # ] + # } + # + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts `jose@example.com` from DATA_READ logging, and + # `aliya@example.com` from DATA_WRITE logging. + # @!attribute [rw] service + # @return [::String] + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # @!attribute [rw] audit_log_configs + # @return [::Array<::Google::Iam::V1::AuditLogConfig>] + # The configuration for logging of each type of permission. + class AuditConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Provides the configuration for logging a type of permissions. + # Example: + # + # { + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # }, + # { + # "log_type": "DATA_WRITE" + # } + # ] + # } + # + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # jose@example.com from DATA_READ logging. + # @!attribute [rw] log_type + # @return [::Google::Iam::V1::AuditLogConfig::LogType] + # The log type that this config enables. + # @!attribute [rw] exempted_members + # @return [::Array<::String>] + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of + # [Binding.members][google.iam.v1.Binding.members]. + class AuditLogConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The list of valid permission types for which logging can be configured. + # Admin writes are always logged, and are not configurable. + module LogType + # Default case. Should never be this. + LOG_TYPE_UNSPECIFIED = 0 + + # Admin reads. Example: CloudIAM getIamPolicy + ADMIN_READ = 1 + + # Data writes. Example: CloudSQL Users create + DATA_WRITE = 2 + + # Data reads. Example: CloudSQL Users list + DATA_READ = 3 + end + end + + # The difference delta between two policies. + # @!attribute [rw] binding_deltas + # @return [::Array<::Google::Iam::V1::BindingDelta>] + # The delta for Bindings between two policies. + # @!attribute [rw] audit_config_deltas + # @return [::Array<::Google::Iam::V1::AuditConfigDelta>] + # The delta for AuditConfigs between two policies. + class PolicyDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # One delta entry for Binding. Each individual change (only one member in each + # entry) to a binding will be a separate entry. + # @!attribute [rw] action + # @return [::Google::Iam::V1::BindingDelta::Action] + # The action that was performed on a Binding. + # Required + # @!attribute [rw] role + # @return [::String] + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Required + # @!attribute [rw] member + # @return [::String] + # A single identity requesting access for a Google Cloud resource. + # Follows the same format of Binding.members. + # Required + # @!attribute [rw] condition + # @return [::Google::Type::Expr] + # The condition that is associated with this binding. + class BindingDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of action performed on a Binding in a policy. + module Action + # Unspecified. + ACTION_UNSPECIFIED = 0 + + # Addition of a Binding. + ADD = 1 + + # Removal of a Binding. + REMOVE = 2 + end + end + + # One delta entry for AuditConfig. Each individual change (only one + # exempted_member in each entry) to a AuditConfig will be a separate entry. + # @!attribute [rw] action + # @return [::Google::Iam::V1::AuditConfigDelta::Action] + # The action that was performed on an audit configuration in a policy. + # Required + # @!attribute [rw] service + # @return [::String] + # Specifies a service that was configured for Cloud Audit Logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Required + # @!attribute [rw] exempted_member + # @return [::String] + # A single identity that is exempted from "data access" audit + # logging for the `service` specified above. + # Follows the same format of Binding.members. + # @!attribute [rw] log_type + # @return [::String] + # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + # enabled, and cannot be configured. + # Required + class AuditConfigDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of action performed on an audit configuration in a policy. + module Action + # Unspecified. + ACTION_UNSPECIFIED = 0 + + # Addition of an audit configuration. + ADD = 1 + + # Removal of an audit configuration. + REMOVE = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb new file mode 100644 index 000000000000..7a757f512165 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb @@ -0,0 +1,191 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Longrunning + # This resource represents a long-running operation that is the result of a + # network API call. + # @!attribute [rw] name + # @return [::String] + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/{unique_id}`. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Any] + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # @!attribute [rw] done + # @return [::Boolean] + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # @!attribute [rw] error + # @return [::Google::Rpc::Status] + # The error result of the operation in case of failure or cancellation. + # + # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] response + # @return [::Google::Protobuf::Any] + # The normal, successful response of the operation. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # + # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Operation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.GetOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource. + class GetOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.ListOperations. + # @!attribute [rw] name + # @return [::String] + # The name of the operation's parent resource. + # @!attribute [rw] filter + # @return [::String] + # The standard list filter. + # @!attribute [rw] page_size + # @return [::Integer] + # The standard list page size. + # @!attribute [rw] page_token + # @return [::String] + # The standard list page token. + # @!attribute [rw] return_partial_success + # @return [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + class ListOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for + # Operations.ListOperations. + # @!attribute [rw] operations + # @return [::Array<::Google::Longrunning::Operation>] + # A list of operations that matches the specified filter in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # The standard List next-page token. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Unreachable resources. Populated when the request sets + # `ListOperationsRequest.return_partial_success` and reads across + # collections e.g. when attempting to list all resources across all supported + # locations. + class ListOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.CancelOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be cancelled. + class CancelOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.DeleteOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be deleted. + class DeleteOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.WaitOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to wait on. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + class WaitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A message representing the message types used by a long-running operation. + # + # Example: + # + # rpc Export(ExportRequest) returns (google.longrunning.Operation) { + # option (google.longrunning.operation_info) = { + # response_type: "ExportResponse" + # metadata_type: "ExportMetadata" + # }; + # } + # @!attribute [rw] response_type + # @return [::String] + # Required. The message name of the primary return type for this + # long-running operation. + # This type will be used to deserialize the LRO's response. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + # @!attribute [rw] metadata_type + # @return [::String] + # Required. The message name of the metadata type for this long-running + # operation. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + class OperationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb new file mode 100644 index 000000000000..53e7733b6592 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # + # Example (Comparison): + # + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # + # Example (Equality): + # + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # + # Example (Logic): + # + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # + # Example (Data Manipulation): + # + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # @!attribute [rw] expression + # @return [::String] + # Textual representation of an expression in Common Expression Language + # syntax. + # @!attribute [rw] title + # @return [::String] + # Optional. Title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # @!attribute [rw] description + # @return [::String] + # Optional. Description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # @!attribute [rw] location + # @return [::String] + # Optional. String indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + class Expr + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile new file mode 100644 index 000000000000..f88d2bf31b17 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-bigtable-admin-v2", path: "../" +else + gem "google-cloud-bigtable-admin-v2" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb new file mode 100644 index 000000000000..60b0e44dae42 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile. +# +def create_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new + + # Call the create_app_profile method. + result = client.create_app_profile request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb new file mode 100644 index 000000000000..1923dfa3b593 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster. +# +def create_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new + + # Call the create_cluster method. + result = client.create_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb new file mode 100644 index 000000000000..9bfb53227c80 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance. +# +def create_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new + + # Call the create_instance method. + result = client.create_instance request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb new file mode 100644 index 000000000000..7523e3a3df7f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view. +# +def create_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new + + # Call the create_logical_view method. + result = client.create_logical_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb new file mode 100644 index 000000000000..99be7f04ca20 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view. +# +def create_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new + + # Call the create_materialized_view method. + result = client.create_materialized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb new file mode 100644 index 000000000000..be07699500ed --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile. +# +def delete_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new + + # Call the delete_app_profile method. + result = client.delete_app_profile request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb new file mode 100644 index 000000000000..ad008ded7e08 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster. +# +def delete_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new + + # Call the delete_cluster method. + result = client.delete_cluster request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb new file mode 100644 index 000000000000..f161dc0445dd --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance. +# +def delete_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new + + # Call the delete_instance method. + result = client.delete_instance request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb new file mode 100644 index 000000000000..f486e799a373 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view. +# +def delete_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new + + # Call the delete_logical_view method. + result = client.delete_logical_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb new file mode 100644 index 000000000000..1e869b43c09d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view. +# +def delete_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new + + # Call the delete_materialized_view method. + result = client.delete_materialized_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb new file mode 100644 index 000000000000..a6b51fecf7b8 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile. +# +def get_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new + + # Call the get_app_profile method. + result = client.get_app_profile request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb new file mode 100644 index 000000000000..e3a302d2fe21 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster. +# +def get_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new + + # Call the get_cluster method. + result = client.get_cluster request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb new file mode 100644 index 000000000000..69ab829b07a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_iam_policy call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb new file mode 100644 index 000000000000..ccd0595fe780 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance. +# +def get_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new + + # Call the get_instance method. + result = client.get_instance request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb new file mode 100644 index 000000000000..adfe7a736595 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view. +# +def get_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new + + # Call the get_logical_view method. + result = client.get_logical_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb new file mode 100644 index 000000000000..6233ab496c0f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view. +# +def get_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new + + # Call the get_materialized_view method. + result = client.get_materialized_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb new file mode 100644 index 000000000000..57b0097b3518 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_app_profiles call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles. +# +def list_app_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new + + # Call the list_app_profiles method. + result = client.list_app_profiles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb new file mode 100644 index 000000000000..8545983eb3a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_clusters call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters. +# +def list_clusters + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new + + # Call the list_clusters method. + result = client.list_clusters request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb new file mode 100644 index 000000000000..5090d8624697 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets. +# +def list_hot_tablets + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new + + # Call the list_hot_tablets method. + result = client.list_hot_tablets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb new file mode 100644 index 000000000000..a4038642c51f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_instances call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances. +# +def list_instances + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new + + # Call the list_instances method. + result = client.list_instances request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb new file mode 100644 index 000000000000..09e85d564f89 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_logical_views call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views. +# +def list_logical_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new + + # Call the list_logical_views method. + result = client.list_logical_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb new file mode 100644 index 000000000000..37d40ffb913e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_materialized_views call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views. +# +def list_materialized_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new + + # Call the list_materialized_views method. + result = client.list_materialized_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb new file mode 100644 index 000000000000..3923f7ae400d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster. +# +def partial_update_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new + + # Call the partial_update_cluster method. + result = client.partial_update_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb new file mode 100644 index 000000000000..1630801fd676 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the partial_update_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance. +# +def partial_update_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new + + # Call the partial_update_instance method. + result = client.partial_update_instance request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb new file mode 100644 index 000000000000..834fab5b6899 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the set_iam_policy call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb new file mode 100644 index 000000000000..1e00c002ab00 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb new file mode 100644 index 000000000000..30f88f2bf050 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile. +# +def update_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new + + # Call the update_app_profile method. + result = client.update_app_profile request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb new file mode 100644 index 000000000000..da1c506529be --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster. +# +def update_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::Cluster.new + + # Call the update_cluster method. + result = client.update_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb new file mode 100644 index 000000000000..2aeb910c78ba --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance. +# +def update_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::Instance.new + + # Call the update_instance method. + result = client.update_instance request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb new file mode 100644 index 000000000000..1cb0d166a85e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view. +# +def update_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new + + # Call the update_logical_view method. + result = client.update_logical_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb new file mode 100644 index 000000000000..da78d73ca450 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view. +# +def update_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new + + # Call the update_materialized_view method. + result = client.update_materialized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb new file mode 100644 index 000000000000..56bd26ccebc2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the check_consistency call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency. +# +def check_consistency + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new + + # Call the check_consistency method. + result = client.check_consistency request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb new file mode 100644 index 000000000000..32e9e991b2e0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the copy_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup. +# +def copy_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new + + # Call the copy_backup method. + result = client.copy_backup request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb new file mode 100644 index 000000000000..93ca1b05050a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view. +# +def create_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new + + # Call the create_authorized_view method. + result = client.create_authorized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb new file mode 100644 index 000000000000..bbd26b8f605e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup. +# +def create_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new + + # Call the create_backup method. + result = client.create_backup request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb new file mode 100644 index 000000000000..3cf630415459 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle. +# +def create_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new + + # Call the create_schema_bundle method. + result = client.create_schema_bundle request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb new file mode 100644 index 000000000000..8d98a8471082 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table. +# +def create_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new + + # Call the create_table method. + result = client.create_table request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb new file mode 100644 index 000000000000..3cf2e7283166 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot. +# +def create_table_from_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new + + # Call the create_table_from_snapshot method. + result = client.create_table_from_snapshot request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb new file mode 100644 index 000000000000..c5937706f326 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view. +# +def delete_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new + + # Call the delete_authorized_view method. + result = client.delete_authorized_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb new file mode 100644 index 000000000000..d710addca48c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup. +# +def delete_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new + + # Call the delete_backup method. + result = client.delete_backup request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb new file mode 100644 index 000000000000..3b07c8b887f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle. +# +def delete_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new + + # Call the delete_schema_bundle method. + result = client.delete_schema_bundle request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb new file mode 100644 index 000000000000..c7ab27d40147 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot. +# +def delete_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new + + # Call the delete_snapshot method. + result = client.delete_snapshot request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb new file mode 100644 index 000000000000..315ff9367627 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table. +# +def delete_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new + + # Call the delete_table method. + result = client.delete_table request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb new file mode 100644 index 000000000000..2b6cd7d2303a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the drop_row_range call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range. +# +def drop_row_range + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new + + # Call the drop_row_range method. + result = client.drop_row_range request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb new file mode 100644 index 000000000000..88734d55318b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the generate_consistency_token call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token. +# +def generate_consistency_token + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new + + # Call the generate_consistency_token method. + result = client.generate_consistency_token request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb new file mode 100644 index 000000000000..79ae8f10cc46 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view. +# +def get_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new + + # Call the get_authorized_view method. + result = client.get_authorized_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb new file mode 100644 index 000000000000..6c0f68dd6078 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup. +# +def get_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new + + # Call the get_backup method. + result = client.get_backup request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb new file mode 100644 index 000000000000..33969bfecb74 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_iam_policy call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb new file mode 100644 index 000000000000..108356d532d0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle. +# +def get_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new + + # Call the get_schema_bundle method. + result = client.get_schema_bundle request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb new file mode 100644 index 000000000000..da9903b816ee --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot. +# +def get_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new + + # Call the get_snapshot method. + result = client.get_snapshot request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb new file mode 100644 index 000000000000..de73a71a944b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table. +# +def get_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new + + # Call the get_table method. + result = client.get_table request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb new file mode 100644 index 000000000000..975edad00358 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_authorized_views call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views. +# +def list_authorized_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new + + # Call the list_authorized_views method. + result = client.list_authorized_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb new file mode 100644 index 000000000000..113b0761aba0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_backups call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups. +# +def list_backups + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new + + # Call the list_backups method. + result = client.list_backups request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb new file mode 100644 index 000000000000..03b8c6193c5a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_schema_bundles call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles. +# +def list_schema_bundles + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new + + # Call the list_schema_bundles method. + result = client.list_schema_bundles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb new file mode 100644 index 000000000000..1c34195822a7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_snapshots call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots. +# +def list_snapshots + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new + + # Call the list_snapshots method. + result = client.list_snapshots request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb new file mode 100644 index 000000000000..3c482ff03261 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_tables call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables. +# +def list_tables + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new + + # Call the list_tables method. + result = client.list_tables request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb new file mode 100644 index 000000000000..e711d7477c88 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the modify_column_families call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families. +# +def modify_column_families + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new + + # Call the modify_column_families method. + result = client.modify_column_families request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb new file mode 100644 index 000000000000..3c28d6009330 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the restore_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table. +# +def restore_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new + + # Call the restore_table method. + result = client.restore_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb new file mode 100644 index 000000000000..ff5fff58358d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the set_iam_policy call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb new file mode 100644 index 000000000000..4d171700843e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the snapshot_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table. +# +def snapshot_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new + + # Call the snapshot_table method. + result = client.snapshot_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb new file mode 100644 index 000000000000..abe2e3451d02 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the test_iam_permissions call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb new file mode 100644 index 000000000000..00c9558cd83c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the undelete_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table. +# +def undelete_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new + + # Call the undelete_table method. + result = client.undelete_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb new file mode 100644 index 000000000000..383be6ce0938 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view. +# +def update_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new + + # Call the update_authorized_view method. + result = client.update_authorized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb new file mode 100644 index 000000000000..32aa9d456b3a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup. +# +def update_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new + + # Call the update_backup method. + result = client.update_backup request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb new file mode 100644 index 000000000000..c33e873f5e7d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle. +# +def update_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new + + # Call the update_schema_bundle method. + result = client.update_schema_bundle request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb new file mode 100644 index 000000000000..d49e5c04deca --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table. +# +def update_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new + + # Call the update_table method. + result = client.update_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json new file mode 100644 index 000000000000..307c646525b1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json @@ -0,0 +1,2655 @@ +{ + "client_library": { + "name": "google-cloud-bigtable-admin-v2", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.bigtable.admin.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", + "title": "Snippet for the create_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance.", + "file": "bigtable_instance_admin/create_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", + "title": "Snippet for the get_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance.", + "file": "bigtable_instance_admin/get_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", + "title": "Snippet for the list_instances call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances.", + "file": "bigtable_instance_admin/list_instances.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_instances", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListInstances", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", + "title": "Snippet for the update_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance.", + "file": "bigtable_instance_admin/update_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", + "title": "Snippet for the partial_update_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance.", + "file": "bigtable_instance_admin/partial_update_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "partial_update_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "PartialUpdateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", + "title": "Snippet for the delete_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance.", + "file": "bigtable_instance_admin/delete_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", + "title": "Snippet for the create_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster.", + "file": "bigtable_instance_admin/create_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", + "title": "Snippet for the get_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster.", + "file": "bigtable_instance_admin/get_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", + "title": "Snippet for the list_clusters call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters.", + "file": "bigtable_instance_admin/list_clusters.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_clusters", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListClusters", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", + "title": "Snippet for the update_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster.", + "file": "bigtable_instance_admin/update_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", + "title": "Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster.", + "file": "bigtable_instance_admin/partial_update_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "partial_update_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "PartialUpdateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", + "title": "Snippet for the delete_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster.", + "file": "bigtable_instance_admin/delete_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", + "title": "Snippet for the create_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile.", + "file": "bigtable_instance_admin/create_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", + "title": "Snippet for the get_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile.", + "file": "bigtable_instance_admin/get_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", + "title": "Snippet for the list_app_profiles call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles.", + "file": "bigtable_instance_admin/list_app_profiles.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_app_profiles", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListAppProfiles", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", + "title": "Snippet for the update_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile.", + "file": "bigtable_instance_admin/update_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", + "title": "Snippet for the delete_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile.", + "file": "bigtable_instance_admin/delete_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy.", + "file": "bigtable_instance_admin/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy.", + "file": "bigtable_instance_admin/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions.", + "file": "bigtable_instance_admin/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", + "title": "Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets.", + "file": "bigtable_instance_admin/list_hot_tablets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_hot_tablets", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListHotTablets", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync", + "title": "Snippet for the create_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view.", + "file": "bigtable_instance_admin/create_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync", + "title": "Snippet for the get_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view.", + "file": "bigtable_instance_admin/get_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::LogicalView", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync", + "title": "Snippet for the list_logical_views call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views.", + "file": "bigtable_instance_admin/list_logical_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_logical_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListLogicalViews", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync", + "title": "Snippet for the update_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view.", + "file": "bigtable_instance_admin/update_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync", + "title": "Snippet for the delete_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view.", + "file": "bigtable_instance_admin/delete_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync", + "title": "Snippet for the create_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view.", + "file": "bigtable_instance_admin/create_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync", + "title": "Snippet for the get_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view.", + "file": "bigtable_instance_admin/get_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::MaterializedView", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync", + "title": "Snippet for the list_materialized_views call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views.", + "file": "bigtable_instance_admin/list_materialized_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_materialized_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListMaterializedViews", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync", + "title": "Snippet for the update_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view.", + "file": "bigtable_instance_admin/update_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync", + "title": "Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view.", + "file": "bigtable_instance_admin/delete_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", + "title": "Snippet for the create_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table.", + "file": "bigtable_table_admin/create_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", + "title": "Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot.", + "file": "bigtable_table_admin/create_table_from_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_table_from_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateTableFromSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", + "title": "Snippet for the list_tables call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables.", + "file": "bigtable_table_admin/list_tables.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_tables", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListTables", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", + "title": "Snippet for the get_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table.", + "file": "bigtable_table_admin/get_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", + "title": "Snippet for the update_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table.", + "file": "bigtable_table_admin/update_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", + "title": "Snippet for the delete_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table.", + "file": "bigtable_table_admin/delete_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", + "title": "Snippet for the undelete_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table.", + "file": "bigtable_table_admin/undelete_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "undelete_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UndeleteTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", + "title": "Snippet for the create_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view.", + "file": "bigtable_table_admin/create_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", + "title": "Snippet for the list_authorized_views call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views.", + "file": "bigtable_table_admin/list_authorized_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_authorized_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListAuthorizedViews", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", + "title": "Snippet for the get_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view.", + "file": "bigtable_table_admin/get_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AuthorizedView", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", + "title": "Snippet for the update_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view.", + "file": "bigtable_table_admin/update_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", + "title": "Snippet for the delete_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view.", + "file": "bigtable_table_admin/delete_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", + "title": "Snippet for the modify_column_families call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families.", + "file": "bigtable_table_admin/modify_column_families.rb", + "language": "RUBY", + "client_method": { + "short_name": "modify_column_families", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ModifyColumnFamilies", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", + "title": "Snippet for the drop_row_range call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range.", + "file": "bigtable_table_admin/drop_row_range.rb", + "language": "RUBY", + "client_method": { + "short_name": "drop_row_range", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DropRowRange", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", + "title": "Snippet for the generate_consistency_token call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token.", + "file": "bigtable_table_admin/generate_consistency_token.rb", + "language": "RUBY", + "client_method": { + "short_name": "generate_consistency_token", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GenerateConsistencyToken", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", + "title": "Snippet for the check_consistency call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency.", + "file": "bigtable_table_admin/check_consistency.rb", + "language": "RUBY", + "client_method": { + "short_name": "check_consistency", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CheckConsistency", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", + "title": "Snippet for the snapshot_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table.", + "file": "bigtable_table_admin/snapshot_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "snapshot_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "SnapshotTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", + "title": "Snippet for the get_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot.", + "file": "bigtable_table_admin/get_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Snapshot", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", + "title": "Snippet for the list_snapshots call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots.", + "file": "bigtable_table_admin/list_snapshots.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_snapshots", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListSnapshots", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", + "title": "Snippet for the delete_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot.", + "file": "bigtable_table_admin/delete_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", + "title": "Snippet for the create_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup.", + "file": "bigtable_table_admin/create_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", + "title": "Snippet for the get_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup.", + "file": "bigtable_table_admin/get_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", + "title": "Snippet for the update_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup.", + "file": "bigtable_table_admin/update_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", + "title": "Snippet for the delete_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup.", + "file": "bigtable_table_admin/delete_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", + "title": "Snippet for the list_backups call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups.", + "file": "bigtable_table_admin/list_backups.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_backups", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListBackups", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", + "title": "Snippet for the restore_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table.", + "file": "bigtable_table_admin/restore_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "restore_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "RestoreTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", + "title": "Snippet for the copy_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup.", + "file": "bigtable_table_admin/copy_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "copy_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CopyBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy.", + "file": "bigtable_table_admin/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy.", + "file": "bigtable_table_admin/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions.", + "file": "bigtable_table_admin/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync", + "title": "Snippet for the create_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle.", + "file": "bigtable_table_admin/create_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync", + "title": "Snippet for the update_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle.", + "file": "bigtable_table_admin/update_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync", + "title": "Snippet for the get_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle.", + "file": "bigtable_table_admin/get_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::SchemaBundle", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync", + "title": "Snippet for the list_schema_bundles call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles.", + "file": "bigtable_table_admin/list_schema_bundles.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_schema_bundles", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListSchemaBundles", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync", + "title": "Snippet for the delete_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle.", + "file": "bigtable_table_admin/delete_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb new file mode 100644 index 000000000000..d7820c4ab5a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" +require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb new file mode 100644 index 000000000000..2454f9a7005c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb @@ -0,0 +1,139 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_app_profile_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.app_profile_path project: "value0", instance: "value1", app_profile: "value2" + assert_equal "projects/value0/instances/value1/appProfiles/value2", path + end + end + + def test_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" + assert_equal "projects/value0/instances/value1/clusters/value2", path + end + end + + def test_crypto_key_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path + end + end + + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", instance: "value1" + assert_equal "projects/value0/instances/value1", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_logical_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.logical_view_path project: "value0", instance: "value1", logical_view: "value2" + assert_equal "projects/value0/instances/value1/logicalViews/value2", path + end + end + + def test_materialized_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.materialized_view_path project: "value0", instance: "value1", materialized_view: "value2" + assert_equal "projects/value0/instances/value1/materializedViews/value2", path + end + end + + def test_project_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.project_path project: "value0" + assert_equal "projects/value0", path + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb new file mode 100644 index 000000000000..9ff63d5bec0c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb @@ -0,0 +1,2093 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_instance + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + instance_id = "hello world" + instance = {} + clusters = {} + + create_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["instance_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] + assert_equal({}, request["clusters"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_instance parent: parent, instance_id: instance_id, instance: instance, clusters: clusters do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_instance ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_instance(::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_instance_client_stub.call_rpc_count + end + end + + def test_get_instance + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_instance({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_instance name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_instance ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_instance({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_instance(::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_instance_client_stub.call_rpc_count + end + end + + def test_list_instances + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_token = "hello world" + + list_instances_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_instances, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_instances_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_instances({ parent: parent, page_token: page_token }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_instances parent: parent, page_token: page_token do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_instances ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_instances({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_instances(::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_instances_client_stub.call_rpc_count + end + end + + def test_update_instance + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + display_name = "hello world" + state = :STATE_NOT_KNOWN + type = :TYPE_UNSPECIFIED + labels = {} + create_time = {} + satisfies_pzs = true + satisfies_pzi = true + tags = {} + + update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Instance, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["display_name"] + assert_equal :STATE_NOT_KNOWN, request["state"] + assert_equal :TYPE_UNSPECIFIED, request["type"] + assert_equal({}, request["labels"].to_h) + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] + assert_equal true, request["satisfies_pzs"] + assert request.has_satisfies_pzs? + assert_equal true, request["satisfies_pzi"] + assert request.has_satisfies_pzi? + assert_equal({}, request["tags"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_instance name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_instance_client_stub.call_rpc_count + end + end + + def test_partial_update_instance + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + instance = {} + update_mask = {} + + partial_update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :partial_update_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, partial_update_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.partial_update_instance({ instance: instance, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.partial_update_instance instance: instance, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.partial_update_instance ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.partial_update_instance({ instance: instance, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.partial_update_instance(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, partial_update_instance_client_stub.call_rpc_count + end + end + + def test_delete_instance + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_instance({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_instance name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_instance ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_instance({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_instance(::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_instance_client_stub.call_rpc_count + end + end + + def test_create_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + cluster_id = "hello world" + cluster = {} + + create_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["cluster_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_cluster parent: parent, cluster_id: cluster_id, cluster: cluster do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_cluster ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_cluster(::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_cluster_client_stub.call_rpc_count + end + end + + def test_get_cluster + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Cluster.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_cluster ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_cluster(::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_cluster_client_stub.call_rpc_count + end + end + + def test_list_clusters + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_token = "hello world" + + list_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_clusters, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_clusters_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_clusters({ parent: parent, page_token: page_token }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_clusters parent: parent, page_token: page_token do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_clusters ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_clusters({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_clusters(::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_clusters_client_stub.call_rpc_count + end + end + + def test_update_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + location = "hello world" + state = :STATE_NOT_KNOWN + serve_nodes = 42 + node_scaling_factor = :NODE_SCALING_FACTOR_UNSPECIFIED + cluster_config = {} + default_storage_type = :STORAGE_TYPE_UNSPECIFIED + encryption_config = {} + + update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Cluster, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["location"] + assert_equal :STATE_NOT_KNOWN, request["state"] + assert_equal 42, request["serve_nodes"] + assert_equal :NODE_SCALING_FACTOR_UNSPECIFIED, request["node_scaling_factor"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig), request["cluster_config"] + assert_equal :cluster_config, request.config + assert_equal :STORAGE_TYPE_UNSPECIFIED, request["default_storage_type"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig), request["encryption_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_cluster name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_cluster ::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_cluster(::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_cluster_client_stub.call_rpc_count + end + end + + def test_partial_update_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + cluster = {} + update_mask = {} + + partial_update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :partial_update_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, partial_update_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.partial_update_cluster cluster: cluster, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.partial_update_cluster ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.partial_update_cluster(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, partial_update_cluster_client_stub.call_rpc_count + end + end + + def test_delete_cluster + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_cluster ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_cluster(::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_cluster_client_stub.call_rpc_count + end + end + + def test_create_app_profile + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + app_profile_id = "hello world" + app_profile = {} + ignore_warnings = true + + create_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["app_profile_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_app_profile parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_app_profile ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_app_profile(::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_app_profile_client_stub.call_rpc_count + end + end + + def test_get_app_profile + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_app_profile({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_app_profile name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_app_profile ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_app_profile({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_app_profile(::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_app_profile_client_stub.call_rpc_count + end + end + + def test_list_app_profiles + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_app_profiles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_app_profiles, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_app_profiles_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_app_profiles parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_app_profiles ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_app_profiles(::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_app_profiles_client_stub.call_rpc_count + end + end + + def test_update_app_profile + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + app_profile = {} + update_mask = {} + ignore_warnings = true + + update_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_app_profile app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_app_profile ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_app_profile(::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_app_profile_client_stub.call_rpc_count + end + end + + def test_delete_app_profile + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + ignore_warnings = true + + delete_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_app_profile name: name, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_app_profile ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_app_profile(::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_app_profile_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_list_hot_tablets + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + start_time = {} + end_time = {} + page_size = 42 + page_token = "hello world" + + list_hot_tablets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_hot_tablets, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_hot_tablets_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_hot_tablets parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_hot_tablets ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_hot_tablets(::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_hot_tablets_client_stub.call_rpc_count + end + end + + def test_create_logical_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + logical_view_id = "hello world" + logical_view = {} + + create_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["logical_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_logical_view parent: parent, logical_view_id: logical_view_id, logical_view: logical_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_logical_view ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_logical_view(::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_logical_view_client_stub.call_rpc_count + end + end + + def test_get_logical_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::LogicalView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_logical_view({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_logical_view name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_logical_view ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_logical_view({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_logical_view(::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_logical_view_client_stub.call_rpc_count + end + end + + def test_list_logical_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_logical_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_logical_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_logical_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_logical_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_logical_views ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_logical_views(::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_logical_views_client_stub.call_rpc_count + end + end + + def test_update_logical_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + logical_view = {} + update_mask = {} + + update_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_logical_view logical_view: logical_view, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_logical_view ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_logical_view(::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_logical_view_client_stub.call_rpc_count + end + end + + def test_delete_logical_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_logical_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_logical_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_logical_view ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_logical_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_logical_view(::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_logical_view_client_stub.call_rpc_count + end + end + + def test_create_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + materialized_view_id = "hello world" + materialized_view = {} + + create_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["materialized_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_materialized_view parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_materialized_view ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_materialized_view(::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_materialized_view_client_stub.call_rpc_count + end + end + + def test_get_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::MaterializedView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_materialized_view({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_materialized_view name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_materialized_view ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_materialized_view({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_materialized_view(::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_materialized_view_client_stub.call_rpc_count + end + end + + def test_list_materialized_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_materialized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_materialized_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_materialized_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_materialized_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_materialized_views ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_materialized_views(::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_materialized_views_client_stub.call_rpc_count + end + end + + def test_update_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + materialized_view = {} + update_mask = {} + + update_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_materialized_view materialized_view: materialized_view, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_materialized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_materialized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_materialized_view_client_stub.call_rpc_count + end + end + + def test_delete_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_materialized_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_materialized_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_materialized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_materialized_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_materialized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_materialized_view_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb new file mode 100644 index 000000000000..b4858530f9ca --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_table_admin_pb" +require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb new file mode 100644 index 000000000000..f660e3430c6e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb @@ -0,0 +1,151 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_authorized_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.authorized_view_path project: "value0", instance: "value1", table: "value2", authorized_view: "value3" + assert_equal "projects/value0/instances/value1/tables/value2/authorizedViews/value3", path + end + end + + def test_backup_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.backup_path project: "value0", instance: "value1", cluster: "value2", backup: "value3" + assert_equal "projects/value0/instances/value1/clusters/value2/backups/value3", path + end + end + + def test_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" + assert_equal "projects/value0/instances/value1/clusters/value2", path + end + end + + def test_crypto_key_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path + end + end + + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", instance: "value1" + assert_equal "projects/value0/instances/value1", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_schema_bundle_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.schema_bundle_path project: "value0", instance: "value1", table: "value2", schema_bundle: "value3" + assert_equal "projects/value0/instances/value1/tables/value2/schemaBundles/value3", path + end + end + + def test_snapshot_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.snapshot_path project: "value0", instance: "value1", cluster: "value2", snapshot: "value3" + assert_equal "projects/value0/instances/value1/clusters/value2/snapshots/value3", path + end + end + + def test_table_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.table_path project: "value0", instance: "value1", table: "value2" + assert_equal "projects/value0/instances/value1/tables/value2", path + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb new file mode 100644 index 000000000000..44ea7cd17fc5 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb @@ -0,0 +1,2339 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_table_admin_pb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_table + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + table = {} + initial_splits = [{}] + + create_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, request["initial_splits"].first + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_table parent: parent, table_id: table_id, table: table, initial_splits: initial_splits do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_table ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_table(::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_table_client_stub.call_rpc_count + end + end + + def test_create_table_from_snapshot + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + source_snapshot = "hello world" + + create_table_from_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_table_from_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal "hello world", request["source_snapshot"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_table_from_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_table_from_snapshot parent: parent, table_id: table_id, source_snapshot: source_snapshot do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_table_from_snapshot ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_table_from_snapshot(::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_table_from_snapshot_client_stub.call_rpc_count + end + end + + def test_list_tables + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + view = :VIEW_UNSPECIFIED + page_size = 42 + page_token = "hello world" + + list_tables_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_tables, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, request + assert_equal "hello world", request["parent"] + assert_equal :VIEW_UNSPECIFIED, request["view"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_tables_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_tables parent: parent, view: view, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_tables ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_tables(::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_tables_client_stub.call_rpc_count + end + end + + def test_get_table + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + view = :VIEW_UNSPECIFIED + + get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, request + assert_equal "hello world", request["name"] + assert_equal :VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_table({ name: name, view: view }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_table name: name, view: view do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_table ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_table({ name: name, view: view }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_table(::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_table_client_stub.call_rpc_count + end + end + + def test_update_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + table = {} + update_mask = {} + ignore_warnings = true + + update_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_table table: table, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_table ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_table(::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_table_client_stub.call_rpc_count + end + end + + def test_delete_table + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_table({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_table name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_table ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_table({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_table(::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_table_client_stub.call_rpc_count + end + end + + def test_undelete_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + undelete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :undelete_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, undelete_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.undelete_table({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.undelete_table name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.undelete_table ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.undelete_table({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.undelete_table(::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, undelete_table_client_stub.call_rpc_count + end + end + + def test_create_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + authorized_view_id = "hello world" + authorized_view = {} + + create_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["authorized_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_authorized_view parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_authorized_view ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_authorized_view(::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_authorized_view_client_stub.call_rpc_count + end + end + + def test_list_authorized_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + view = :RESPONSE_VIEW_UNSPECIFIED + + list_authorized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_authorized_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_authorized_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_authorized_views parent: parent, page_size: page_size, page_token: page_token, view: view do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_authorized_views ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_authorized_views(::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_authorized_views_client_stub.call_rpc_count + end + end + + def test_get_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + view = :RESPONSE_VIEW_UNSPECIFIED + + get_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_authorized_view({ name: name, view: view }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_authorized_view name: name, view: view do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_authorized_view ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_authorized_view({ name: name, view: view }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_authorized_view(::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_authorized_view_client_stub.call_rpc_count + end + end + + def test_update_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + authorized_view = {} + update_mask = {} + ignore_warnings = true + + update_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_authorized_view authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_authorized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_authorized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_authorized_view_client_stub.call_rpc_count + end + end + + def test_delete_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_authorized_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_authorized_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_authorized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_authorized_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_authorized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_authorized_view_client_stub.call_rpc_count + end + end + + def test_modify_column_families + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + modifications = [{}] + ignore_warnings = true + + modify_column_families_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :modify_column_families, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, request + assert_equal "hello world", request["name"] + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, request["modifications"].first + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, modify_column_families_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.modify_column_families name: name, modifications: modifications, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.modify_column_families ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.modify_column_families(::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, modify_column_families_client_stub.call_rpc_count + end + end + + def test_drop_row_range + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + row_key_prefix = "hello world" + + drop_row_range_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :drop_row_range, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["row_key_prefix"] + assert_equal :row_key_prefix, request.target + refute_nil options + end + + Gapic::ServiceStub.stub :new, drop_row_range_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.drop_row_range name: name, row_key_prefix: row_key_prefix do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.drop_row_range ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.drop_row_range(::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, drop_row_range_client_stub.call_rpc_count + end + end + + def test_generate_consistency_token + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + generate_consistency_token_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :generate_consistency_token, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, generate_consistency_token_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.generate_consistency_token({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.generate_consistency_token name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.generate_consistency_token ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.generate_consistency_token({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.generate_consistency_token(::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, generate_consistency_token_client_stub.call_rpc_count + end + end + + def test_check_consistency + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + consistency_token = "hello world" + standard_read_remote_writes = {} + + check_consistency_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :check_consistency, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["consistency_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites), request["standard_read_remote_writes"] + assert_equal :standard_read_remote_writes, request.mode + refute_nil options + end + + Gapic::ServiceStub.stub :new, check_consistency_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.check_consistency name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.check_consistency ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.check_consistency(::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, check_consistency_client_stub.call_rpc_count + end + end + + def test_snapshot_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + cluster = "hello world" + snapshot_id = "hello world" + ttl = {} + description = "hello world" + + snapshot_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :snapshot_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["cluster"] + assert_equal "hello world", request["snapshot_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] + assert_equal "hello world", request["description"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, snapshot_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.snapshot_table name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.snapshot_table ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.snapshot_table(::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, snapshot_table_client_stub.call_rpc_count + end + end + + def test_get_snapshot + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Snapshot.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_snapshot({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_snapshot name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_snapshot ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_snapshot({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_snapshot(::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_snapshot_client_stub.call_rpc_count + end + end + + def test_list_snapshots + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_snapshots, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_snapshots_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_snapshots parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_snapshots ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_snapshots(::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_snapshots_client_stub.call_rpc_count + end + end + + def test_delete_snapshot + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_snapshot({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_snapshot name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_snapshot ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_snapshot({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_snapshot(::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_snapshot_client_stub.call_rpc_count + end + end + + def test_create_backup + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + backup_id = "hello world" + backup = {} + + create_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["backup_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_backup parent: parent, backup_id: backup_id, backup: backup do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_backup ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_backup(::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_backup_client_stub.call_rpc_count + end + end + + def test_get_backup + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_backup({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_backup name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_backup ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_backup({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_backup(::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_backup_client_stub.call_rpc_count + end + end + + def test_update_backup + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + backup = {} + update_mask = {} + + update_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_backup({ backup: backup, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_backup backup: backup, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_backup ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_backup({ backup: backup, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_backup(::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_backup_client_stub.call_rpc_count + end + end + + def test_delete_backup + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_backup({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_backup name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_backup ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_backup({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_backup(::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_backup_client_stub.call_rpc_count + end + end + + def test_list_backups + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + list_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_backups, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_backups_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_backups parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_backups ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_backups(::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_backups_client_stub.call_rpc_count + end + end + + def test_restore_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + backup = "hello world" + + restore_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :restore_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal "hello world", request["backup"] + assert_equal :backup, request.source + refute_nil options + end + + Gapic::ServiceStub.stub :new, restore_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.restore_table({ parent: parent, table_id: table_id, backup: backup }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.restore_table parent: parent, table_id: table_id, backup: backup do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.restore_table ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.restore_table({ parent: parent, table_id: table_id, backup: backup }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.restore_table(::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, restore_table_client_stub.call_rpc_count + end + end + + def test_copy_backup + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + backup_id = "hello world" + source_backup = "hello world" + expire_time = {} + + copy_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :copy_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["backup_id"] + assert_equal "hello world", request["source_backup"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["expire_time"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, copy_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.copy_backup parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.copy_backup ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.copy_backup(::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, copy_backup_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_create_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + schema_bundle_id = "hello world" + schema_bundle = {} + + create_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["schema_bundle_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_schema_bundle parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_schema_bundle_client_stub.call_rpc_count + end + end + + def test_update_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + schema_bundle = {} + update_mask = {} + ignore_warnings = true + + update_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_schema_bundle schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_schema_bundle_client_stub.call_rpc_count + end + end + + def test_get_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_schema_bundle({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_schema_bundle name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_schema_bundle({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_schema_bundle_client_stub.call_rpc_count + end + end + + def test_list_schema_bundles + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_schema_bundles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_schema_bundles, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_schema_bundles_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_schema_bundles parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_schema_bundles ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_schema_bundles(::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_schema_bundles_client_stub.call_rpc_count + end + end + + def test_delete_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_schema_bundle({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_schema_bundle name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_schema_bundle({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_schema_bundle_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From 6ee795f1d5c3aac07f871acc2350f7a4659dedf9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 25 Mar 2026 21:07:43 +0000 Subject: [PATCH 4/8] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../proto_docs/google/api/client.rb | 174 +- .../google-cloud-bigtable-admin-v2/.gitignore | 22 - .../.repo-metadata.json | 18 - .../.rubocop.yml | 33 - .../google-cloud-bigtable-admin-v2/.toys.rb | 28 - .../google-cloud-bigtable-admin-v2/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../CHANGELOG.md | 2 - .../google-cloud-bigtable-admin-v2/Gemfile | 14 - .../google-cloud-bigtable-admin-v2/LICENSE.md | 201 - .../google-cloud-bigtable-admin-v2/README.md | 154 - .../google-cloud-bigtable-admin-v2/Rakefile | 169 - .../gapic_metadata.json | 357 -- .../google-cloud-bigtable-admin-v2.gemspec | 29 - .../lib/google-cloud-bigtable-admin-v2.rb | 21 - .../admin/v2/bigtable_instance_admin_pb.rb | 78 - .../v2/bigtable_instance_admin_services_pb.rb | 142 - .../admin/v2/bigtable_table_admin_pb.rb | 91 - .../v2/bigtable_table_admin_services_pb.rb | 182 - .../lib/google/bigtable/admin/v2/common_pb.rb | 26 - .../google/bigtable/admin/v2/instance_pb.rb | 49 - .../lib/google/bigtable/admin/v2/table_pb.rb | 58 - .../lib/google/bigtable/admin/v2/types_pb.rb | 57 - .../lib/google/cloud/bigtable/admin/v2.rb | 43 - .../admin/v2/bigtable_instance_admin.rb | 54 - .../v2/bigtable_instance_admin/client.rb | 3710 -------------- .../v2/bigtable_instance_admin/credentials.rb | 59 - .../v2/bigtable_instance_admin/operations.rb | 843 ---- .../admin/v2/bigtable_instance_admin/paths.rb | 180 - .../bigtable/admin/v2/bigtable_table_admin.rb | 56 - .../admin/v2/bigtable_table_admin/client.rb | 4266 ----------------- .../v2/bigtable_table_admin/credentials.rb | 58 - .../v2/bigtable_table_admin/operations.rb | 843 ---- .../admin/v2/bigtable_table_admin/paths.rb | 214 - .../google/cloud/bigtable/admin/v2/version.rb | 30 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 589 --- .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../admin/v2/bigtable_instance_admin.rb | 767 --- .../bigtable/admin/v2/bigtable_table_admin.rb | 1167 ----- .../google/bigtable/admin/v2/common.rb | 58 - .../google/bigtable/admin/v2/instance.rb | 519 -- .../google/bigtable/admin/v2/table.rb | 741 --- .../google/bigtable/admin/v2/types.rb | 575 --- .../proto_docs/google/iam/v1/iam_policy.rb | 87 - .../proto_docs/google/iam/v1/options.rb | 50 - .../proto_docs/google/iam/v1/policy.rb | 426 -- .../google/longrunning/operations.rb | 191 - .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/rpc/status.rb | 48 - .../proto_docs/google/type/expr.rb | 75 - .../snippets/Gemfile | 32 - .../create_app_profile.rb | 47 - .../bigtable_instance_admin/create_cluster.rb | 54 - .../create_instance.rb | 54 - .../create_logical_view.rb | 54 - .../create_materialized_view.rb | 54 - .../delete_app_profile.rb | 47 - .../bigtable_instance_admin/delete_cluster.rb | 47 - .../delete_instance.rb | 47 - .../delete_logical_view.rb | 47 - .../delete_materialized_view.rb | 47 - .../get_app_profile.rb | 47 - .../bigtable_instance_admin/get_cluster.rb | 47 - .../bigtable_instance_admin/get_iam_policy.rb | 47 - .../bigtable_instance_admin/get_instance.rb | 47 - .../get_logical_view.rb | 47 - .../get_materialized_view.rb | 47 - .../list_app_profiles.rb | 51 - .../bigtable_instance_admin/list_clusters.rb | 47 - .../list_hot_tablets.rb | 51 - .../bigtable_instance_admin/list_instances.rb | 47 - .../list_logical_views.rb | 51 - .../list_materialized_views.rb | 51 - .../partial_update_cluster.rb | 54 - .../partial_update_instance.rb | 54 - .../bigtable_instance_admin/set_iam_policy.rb | 47 - .../test_iam_permissions.rb | 47 - .../update_app_profile.rb | 54 - .../bigtable_instance_admin/update_cluster.rb | 54 - .../update_instance.rb | 47 - .../update_logical_view.rb | 54 - .../update_materialized_view.rb | 54 - .../bigtable_table_admin/check_consistency.rb | 47 - .../bigtable_table_admin/copy_backup.rb | 54 - .../create_authorized_view.rb | 54 - .../bigtable_table_admin/create_backup.rb | 54 - .../create_schema_bundle.rb | 54 - .../bigtable_table_admin/create_table.rb | 47 - .../create_table_from_snapshot.rb | 54 - .../delete_authorized_view.rb | 47 - .../bigtable_table_admin/delete_backup.rb | 47 - .../delete_schema_bundle.rb | 47 - .../bigtable_table_admin/delete_snapshot.rb | 47 - .../bigtable_table_admin/delete_table.rb | 47 - .../bigtable_table_admin/drop_row_range.rb | 47 - .../generate_consistency_token.rb | 47 - .../get_authorized_view.rb | 47 - .../bigtable_table_admin/get_backup.rb | 47 - .../bigtable_table_admin/get_iam_policy.rb | 47 - .../bigtable_table_admin/get_schema_bundle.rb | 47 - .../bigtable_table_admin/get_snapshot.rb | 47 - .../bigtable_table_admin/get_table.rb | 47 - .../list_authorized_views.rb | 51 - .../bigtable_table_admin/list_backups.rb | 51 - .../list_schema_bundles.rb | 51 - .../bigtable_table_admin/list_snapshots.rb | 51 - .../bigtable_table_admin/list_tables.rb | 51 - .../modify_column_families.rb | 47 - .../bigtable_table_admin/restore_table.rb | 54 - .../bigtable_table_admin/set_iam_policy.rb | 47 - .../bigtable_table_admin/snapshot_table.rb | 54 - .../test_iam_permissions.rb | 47 - .../bigtable_table_admin/undelete_table.rb | 54 - .../update_authorized_view.rb | 54 - .../bigtable_table_admin/update_backup.rb | 47 - .../update_schema_bundle.rb | 54 - .../bigtable_table_admin/update_table.rb | 54 - ...pet_metadata_google.bigtable.admin.v2.json | 2655 ---------- ...bigtable_instance_admin_operations_test.rb | 400 -- .../v2/bigtable_instance_admin_paths_test.rb | 139 - .../admin/v2/bigtable_instance_admin_test.rb | 2093 -------- .../bigtable_table_admin_operations_test.rb | 400 -- .../v2/bigtable_table_admin_paths_test.rb | 151 - .../admin/v2/bigtable_table_admin_test.rb | 2339 --------- .../test/helper.rb | 26 - 132 files changed, 145 insertions(+), 30083 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/README.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/common_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb diff --git a/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb index 8f4ca4b4d6e5..7796382e3a21 100644 --- a/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb +++ b/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb @@ -141,9 +141,10 @@ class Publishing # # Example of a YAML configuration:: # - # publishing: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 # @!attribute [rw] service_class_names # @return [::Google::Protobuf::Map{::String => ::String}] # Configure the Java class name to use instead of the service's for its @@ -155,11 +156,11 @@ class Publishing # # Example of a YAML configuration:: # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin # @!attribute [rw] common # @return [::Google::Api::CommonLanguageSettings] # Some settings. @@ -190,6 +191,20 @@ class CppSettings # @!attribute [rw] common # @return [::Google::Api::CommonLanguageSettings] # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 class PhpSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -318,10 +333,12 @@ class RubySettings # service names and values are the name to be used for the service client # and call options. # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin class GoSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -344,10 +361,10 @@ class RenamedServicesEntry # # Example: # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... # @!attribute [rw] long_running # @return [::Google::Api::MethodSettings::LongRunning] # Describes settings to use for long-running operations when generating @@ -356,14 +373,14 @@ class RenamedServicesEntry # # Example of a YAML configuration:: # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes # @!attribute [rw] auto_populated_fields # @return [::Array<::String>] # List of top-level fields of the request message, that should be @@ -372,11 +389,24 @@ class RenamedServicesEntry # # Example of a YAML configuration: # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 class MethodSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -428,6 +458,77 @@ class SelectiveGapicGeneration extend ::Google::Protobuf::MessageExts::ClassMethods end + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The organization for which the client libraries are being published. # Affects the url where generated docs are published, etc. module ClientLibraryOrganization @@ -469,5 +570,20 @@ module ClientLibraryDestination # Publish the library to package managers like nuget.org and npmjs.com. PACKAGE_MANAGER = 20 end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end end end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json deleted file mode 100644 index b1afcd60adc1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "api_id": "bigtableadmin.googleapis.com", - "api_shortname": "bigtableadmin", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest", - "distribution_name": "google-cloud-bigtable-admin-v2", - "is_cloud": true, - "language": "ruby", - "name": "bigtableadmin", - "name_pretty": "Cloud Bigtable Admin V2 API", - "product_documentation": "https://cloud.google.com/bigtable", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details.", - "ruby-cloud-env-prefix": "BIGTABLE", - "ruby-cloud-product-url": "https://cloud.google.com/bigtable", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml deleted file mode 100644 index 8b307e35af07..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-bigtable-admin-v2.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-bigtable-admin-v2.rb" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts deleted file mode 100644 index 73aed5753bd5..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Cloud Bigtable Admin V2 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md deleted file mode 100644 index 1bb27d1cc834..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-bigtable-admin-v2 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-bigtable-admin-v2 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/bigtable/admin/v2" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/bigtable/admin/v2" - -::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-bigtable-admin-v2 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/bigtable/admin/v2" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md deleted file mode 100644 index 7fe6da059f1e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Cloud Bigtable Admin V2 API - -Administer your Cloud Bigtable tables and instances. - -Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Cloud Bigtable Admin V2 API. Most users should consider using -the main client gem, -[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-bigtable-admin-v2 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/bigtable/admin/v2" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -request = ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new # (request fields as keyword arguments...) -response = client.create_instance request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/bigtable) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/bigtable/admin/v2" -require "logger" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-bigtable`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-bigtable-admin-v2`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-bigtable`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-bigtable-admin-v2`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile deleted file mode 100644 index 485278a34b9d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-bigtable-admin-v2 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["BIGTABLE_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["BIGTABLE_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["BIGTABLE_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or BIGTABLE_TEST_PROJECT=test123 BIGTABLE_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" - ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["BIGTABLE_PROJECT"] = project - ENV["BIGTABLE_TEST_PROJECT"] = project - ENV["BIGTABLE_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-bigtable-admin-v2 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-bigtable-admin-v2 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-bigtable-admin-v2" - header "google-cloud-bigtable-admin-v2 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-bigtable-admin-v2 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-bigtable-admin-v2 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-bigtable-admin-v2 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-bigtable-admin-v2 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json deleted file mode 100644 index 2370ce3ced54..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.bigtable.admin.v2", - "libraryPackage": "::Google::Cloud::Bigtable::Admin::V2", - "services": { - "BigtableInstanceAdmin": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client", - "rpcs": { - "CreateInstance": { - "methods": [ - "create_instance" - ] - }, - "GetInstance": { - "methods": [ - "get_instance" - ] - }, - "ListInstances": { - "methods": [ - "list_instances" - ] - }, - "UpdateInstance": { - "methods": [ - "update_instance" - ] - }, - "PartialUpdateInstance": { - "methods": [ - "partial_update_instance" - ] - }, - "DeleteInstance": { - "methods": [ - "delete_instance" - ] - }, - "CreateCluster": { - "methods": [ - "create_cluster" - ] - }, - "GetCluster": { - "methods": [ - "get_cluster" - ] - }, - "ListClusters": { - "methods": [ - "list_clusters" - ] - }, - "UpdateCluster": { - "methods": [ - "update_cluster" - ] - }, - "PartialUpdateCluster": { - "methods": [ - "partial_update_cluster" - ] - }, - "DeleteCluster": { - "methods": [ - "delete_cluster" - ] - }, - "CreateAppProfile": { - "methods": [ - "create_app_profile" - ] - }, - "GetAppProfile": { - "methods": [ - "get_app_profile" - ] - }, - "ListAppProfiles": { - "methods": [ - "list_app_profiles" - ] - }, - "UpdateAppProfile": { - "methods": [ - "update_app_profile" - ] - }, - "DeleteAppProfile": { - "methods": [ - "delete_app_profile" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - }, - "ListHotTablets": { - "methods": [ - "list_hot_tablets" - ] - }, - "CreateLogicalView": { - "methods": [ - "create_logical_view" - ] - }, - "GetLogicalView": { - "methods": [ - "get_logical_view" - ] - }, - "ListLogicalViews": { - "methods": [ - "list_logical_views" - ] - }, - "UpdateLogicalView": { - "methods": [ - "update_logical_view" - ] - }, - "DeleteLogicalView": { - "methods": [ - "delete_logical_view" - ] - }, - "CreateMaterializedView": { - "methods": [ - "create_materialized_view" - ] - }, - "GetMaterializedView": { - "methods": [ - "get_materialized_view" - ] - }, - "ListMaterializedViews": { - "methods": [ - "list_materialized_views" - ] - }, - "UpdateMaterializedView": { - "methods": [ - "update_materialized_view" - ] - }, - "DeleteMaterializedView": { - "methods": [ - "delete_materialized_view" - ] - } - } - } - } - }, - "BigtableTableAdmin": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client", - "rpcs": { - "CreateTable": { - "methods": [ - "create_table" - ] - }, - "CreateTableFromSnapshot": { - "methods": [ - "create_table_from_snapshot" - ] - }, - "ListTables": { - "methods": [ - "list_tables" - ] - }, - "GetTable": { - "methods": [ - "get_table" - ] - }, - "UpdateTable": { - "methods": [ - "update_table" - ] - }, - "DeleteTable": { - "methods": [ - "delete_table" - ] - }, - "UndeleteTable": { - "methods": [ - "undelete_table" - ] - }, - "CreateAuthorizedView": { - "methods": [ - "create_authorized_view" - ] - }, - "ListAuthorizedViews": { - "methods": [ - "list_authorized_views" - ] - }, - "GetAuthorizedView": { - "methods": [ - "get_authorized_view" - ] - }, - "UpdateAuthorizedView": { - "methods": [ - "update_authorized_view" - ] - }, - "DeleteAuthorizedView": { - "methods": [ - "delete_authorized_view" - ] - }, - "ModifyColumnFamilies": { - "methods": [ - "modify_column_families" - ] - }, - "DropRowRange": { - "methods": [ - "drop_row_range" - ] - }, - "GenerateConsistencyToken": { - "methods": [ - "generate_consistency_token" - ] - }, - "CheckConsistency": { - "methods": [ - "check_consistency" - ] - }, - "SnapshotTable": { - "methods": [ - "snapshot_table" - ] - }, - "GetSnapshot": { - "methods": [ - "get_snapshot" - ] - }, - "ListSnapshots": { - "methods": [ - "list_snapshots" - ] - }, - "DeleteSnapshot": { - "methods": [ - "delete_snapshot" - ] - }, - "CreateBackup": { - "methods": [ - "create_backup" - ] - }, - "GetBackup": { - "methods": [ - "get_backup" - ] - }, - "UpdateBackup": { - "methods": [ - "update_backup" - ] - }, - "DeleteBackup": { - "methods": [ - "delete_backup" - ] - }, - "ListBackups": { - "methods": [ - "list_backups" - ] - }, - "RestoreTable": { - "methods": [ - "restore_table" - ] - }, - "CopyBackup": { - "methods": [ - "copy_backup" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - }, - "CreateSchemaBundle": { - "methods": [ - "create_schema_bundle" - ] - }, - "UpdateSchemaBundle": { - "methods": [ - "update_schema_bundle" - ] - }, - "GetSchemaBundle": { - "methods": [ - "get_schema_bundle" - ] - }, - "ListSchemaBundles": { - "methods": [ - "list_schema_bundles" - ] - }, - "DeleteSchemaBundle": { - "methods": [ - "delete_schema_bundle" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec deleted file mode 100644 index d15e999177a9..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec +++ /dev/null @@ -1,29 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/bigtable/admin/v2/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-bigtable-admin-v2" - gem.version = Google::Cloud::Bigtable::Admin::V2::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details." - gem.summary = "Administer your Cloud Bigtable tables and instances." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "grpc-google-iam-v1", "~> 1.11" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb deleted file mode 100644 index 0c7aa4cc6208..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/bigtable/admin/v2" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb deleted file mode 100644 index ada921bfd341..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +++ /dev/null @@ -1,78 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/bigtable_instance_admin.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/instance_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"Q\n\x12GetInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"T\n\x15\x44\x65leteInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"\xa7\x01\n\x14\x43reateClusterRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\"O\n\x11GetClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"h\n\x13ListClustersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"R\n\x14\x44\x65leteClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfb\x04\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x06tables\x18\x04 \x03(\x0b\x32;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1a\xf9\x01\n\rTableProgress\x12\x1c\n\x14\x65stimated_size_bytes\x18\x02 \x01(\x03\x12\x1e\n\x16\x65stimated_copied_bytes\x18\x03 \x01(\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32\x43.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07\x43OPYING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1al\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x02\x38\x01\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd2\x01\n\x1cPartialUpdateClusterMetadata\x12\x30\n\x0crequest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x10original_request\x18\x03 \x01(\x0b\x32\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8c\x01\n\x1bPartialUpdateClusterRequest\x12\x37\n\x07\x63luster\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xce\x01\n\x17\x43reateAppProfileRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"U\n\x14GetAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\"~\n\x16ListAppProfilesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"v\n\x17\x44\x65leteAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\x12\x1c\n\x0fignore_warnings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\xda\x01\n\x15ListHotTabletsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"k\n\x16ListHotTabletsResponse\x12\x38\n\x0bhot_tablets\x18\x01 \x03(\x0b\x32#.google.bigtable.admin.v2.HotTablet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\x18\x43reateLogicalViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1c\n\x0flogical_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0clogical_view\x18\x03 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\"\xc7\x01\n\x19\x43reateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x15GetLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\"\x8c\x01\n\x17ListLogicalViewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"q\n\x18ListLogicalViewsResponse\x12<\n\rlogical_views\x18\x01 \x03(\x0b\x32%.google.bigtable.admin.v2.LogicalView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x92\x01\n\x18UpdateLogicalViewRequest\x12@\n\x0clogical_view\x18\x01 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xc7\x01\n\x19UpdateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"m\n\x18\x44\x65leteLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1d\x43reateMaterializedViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12!\n\x14materialized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11materialized_view\x18\x03 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\"\xd1\x01\n\x1e\x43reateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1aGetMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\n\x1cListMaterializedViewsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1dListMaterializedViewsResponse\x12\x46\n\x12materialized_views\x18\x01 \x03(\x0b\x32*.google.bigtable.admin.v2.MaterializedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa1\x01\n\x1dUpdateMaterializedViewRequest\x12J\n\x11materialized_view\x18\x01 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xd1\x01\n\x1eUpdateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1d\x44\x65leteMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xe6\x36\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16\x43reateInstanceMetadata\xda\x41$parent,instance_id,instance,clusters\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16UpdateInstanceMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\xda\x41\x19parent,cluster_id,cluster\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\x12\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\'\n\x07\x43luster\x12\x1cPartialUpdateClusterMetadata\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07\x63luster\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"h\xda\x41!parent,app_profile_id,app_profile\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\xda\x41\x17\x61pp_profile,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\xb4\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\xda\x41\x14name,ignore_warnings\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaa\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xde\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xb1\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xe5\x01\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xe8\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xfc\x01\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\xde\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xbf\x01\n\x0eListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a\x30.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\n\x11\x43reateLogicalView\x12\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41(\n\x0bLogicalView\x12\x19\x43reateLogicalViewMetadata\xda\x41#parent,logical_view,logical_view_id\x82\xd3\xe4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0clogical_view\x12\xa9\x01\n\x0eGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1a%.google.bigtable.admin.v2.LogicalView\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xbc\x01\n\x10ListLogicalViews\x12\x31.google.bigtable.admin.v2.ListLogicalViewsRequest\x1a\x32.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\n\x11UpdateLogicalView\x12\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41(\n\x0bLogicalView\x12\x19UpdateLogicalViewMetadata\xda\x41\x18logical_view,update_mask\x82\xd3\xe4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0clogical_view\x12\xa0\x01\n\x11\x44\x65leteLogicalView\x12\x32.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xa8\x02\n\x16\x43reateMaterializedView\x12\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41\x32\n\x10MaterializedView\x12\x1e\x43reateMaterializedViewMetadata\xda\x41-parent,materialized_view,materialized_view_id\x82\xd3\xe4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xbd\x01\n\x13GetMaterializedView\x12\x34.google.bigtable.admin.v2.GetMaterializedViewRequest\x1a*.google.bigtable.admin.v2.MaterializedView\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xd0\x01\n\x15ListMaterializedViews\x12\x36.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1a\x37.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/instances/*}/materializedViews\x12\xaa\x02\n\x16UpdateMaterializedView\x12\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x32\n\x10MaterializedView\x12\x1eUpdateMaterializedViewMetadata\xda\x41\x1dmaterialized_view,update_mask\x82\xd3\xe4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xaf\x01\n\x16\x44\x65leteMaterializedView\x12\x37.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xdd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass - GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass - ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass - ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass - PartialUpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass - DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass - CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass - GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass - ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass - ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass - DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass - CreateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass - UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass - CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass - CreateClusterMetadata::TableProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress").msgclass - CreateClusterMetadata::TableProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State").enummodule - UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass - PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass - PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass - CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass - GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass - ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass - ListAppProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass - UpdateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass - DeleteAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass - UpdateAppProfileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass - ListHotTabletsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsRequest").msgclass - ListHotTabletsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsResponse").msgclass - CreateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewRequest").msgclass - CreateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewMetadata").msgclass - GetLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetLogicalViewRequest").msgclass - ListLogicalViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsRequest").msgclass - ListLogicalViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsResponse").msgclass - UpdateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewRequest").msgclass - UpdateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewMetadata").msgclass - DeleteLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteLogicalViewRequest").msgclass - CreateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewRequest").msgclass - CreateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewMetadata").msgclass - GetMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetMaterializedViewRequest").msgclass - ListMaterializedViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsRequest").msgclass - ListMaterializedViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsResponse").msgclass - UpdateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewRequest").msgclass - UpdateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewMetadata").msgclass - DeleteMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteMaterializedViewRequest").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb deleted file mode 100644 index 5719dfcb7960..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +++ /dev/null @@ -1,142 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2' -# Original file comments: -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/bigtable/admin/v2/bigtable_instance_admin_pb' - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin' - - # Create an instance within a project. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation - # Gets information about an instance. - rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance - # Lists information about instances in a project. - rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse - # Updates an instance within a project. This method updates only the display - # name and type for an Instance. To update other Instance properties, such as - # labels, use PartialUpdateInstance. - rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance - # Partially updates an instance within a project. This method can modify all - # fields of an Instance and is the preferred way to update an Instance. - rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation - # Delete an instance from a project. - rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty - # Creates a cluster within an instance. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation - # Gets information about a cluster. - rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster - # Lists information about clusters in an instance. - rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse - # Updates a cluster within an instance. - # - # Note that UpdateCluster does not support updating - # cluster_config.cluster_autoscaling_config. In order to update it, you - # must use PartialUpdateCluster. - rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation - # Partially updates a cluster within a project. This method is the preferred - # way to update a Cluster. - # - # To enable and update autoscaling, set - # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - # are ignored. Note that an update cannot simultaneously set serve_nodes to - # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - # also specify both in the update_mask. - # - # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - # and explicitly set a serve_node count via the update_mask. - rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation - # Deletes a cluster from an instance. - rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty - # Creates an app profile within an instance. - rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile - # Gets information about an app profile. - rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile - # Lists information about app profiles in an instance. - rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse - # Updates an app profile within an instance. - rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation - # Deletes an app profile from an instance. - rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty - # Gets the access control policy for an instance resource. Returns an empty - # policy if an instance exists but does not have a policy set. - rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy - # Sets the access control policy on an instance resource. Replaces any - # existing policy. - rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy - # Returns permissions that the caller has on the specified instance resource. - rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse - # Lists hot tablets in a cluster, within the time range provided. Hot - # tablets are ordered based on CPU usage. - rpc :ListHotTablets, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse - # Creates a logical view within an instance. - rpc :CreateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Google::Longrunning::Operation - # Gets information about a logical view. - rpc :GetLogicalView, ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Google::Cloud::Bigtable::Admin::V2::LogicalView - # Lists information about logical views in an instance. - rpc :ListLogicalViews, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse - # Updates a logical view within an instance. - rpc :UpdateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Google::Longrunning::Operation - # Deletes a logical view from an instance. - rpc :DeleteLogicalView, ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Google::Protobuf::Empty - # Creates a materialized view within an instance. - rpc :CreateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Google::Longrunning::Operation - # Gets information about a materialized view. - rpc :GetMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Google::Cloud::Bigtable::Admin::V2::MaterializedView - # Lists information about materialized views in an instance. - rpc :ListMaterializedViews, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse - # Updates a materialized view within an instance. - rpc :UpdateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Google::Longrunning::Operation - # Deletes a materialized view from an instance. - rpc :DeleteMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Google::Protobuf::Empty - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb deleted file mode 100644 index 52a9ea2d2e01..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +++ /dev/null @@ -1,91 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/bigtable_table_admin.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/common_pb' -require 'google/bigtable/admin/v2/table_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x13RestoreTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info\"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\n\x12\x43reateTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"\xbe\x01\n\x1e\x43reateTableFromSnapshotRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0fsource_snapshot\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\n\x13\x44ropRowRangeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"\xad\x01\n\x11ListTablesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\x9d\x01\n\x12UpdateTableRequest\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13UpdateTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n\x12\x44\x65leteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"P\n\x14UndeleteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"\x83\x01\n\x15UndeleteTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x03\n\x1bModifyColumnFamiliesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xdb\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x12\x34\n\x0bupdate_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x05\n\x03mod\"[\n\x1fGenerateConsistencyTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"\xb2\x02\n\x17\x43heckConsistencyRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1bstandard_read_remote_writes\x18\x03 \x01(\x0b\x32\x32.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\n\x1c\x64\x61ta_boost_read_local_writes\x18\x04 \x01(\x0b\x32\x32.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00\x42\x06\n\x04mode\"\x1a\n\x18StandardReadRemoteWrites\"\x1a\n\x18\x44\x61taBoostReadLocalWrites\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\xe6\x01\n\x14SnapshotTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12=\n\x07\x63luster\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"Q\n\x12GetSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"{\n\x14ListSnapshotsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15\x44\x65leteSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa2\x01\n\x13\x43reateBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"M\n\x10GetBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"P\n\x13\x44\x65leteBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"\x9b\x01\n\x12ListBackupsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe3\x01\n\x11\x43opyBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rsource_backup\x18\x03 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xcd\x01\n\x12\x43opyBackupMetadata\x12\x36\n\x04name\x18\x01 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12@\n\x12source_backup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfo\x12=\n\x08progress\x18\x03 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\xcb\x01\n\x1b\x43reateAuthorizedViewRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1f\n\x12\x61uthorized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0f\x61uthorized_view\x18\x03 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\"\xd2\x01\n\x1c\x43reateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x1aListAuthorizedViewsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x04view\x18\x04 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"z\n\x1bListAuthorizedViewsResponse\x12\x42\n\x10\x61uthorized_views\x18\x01 \x03(\x0b\x32(.google.bigtable.admin.v2.AuthorizedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x18GetAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"\xb9\x01\n\x1bUpdateAuthorizedViewRequest\x12\x46\n\x0f\x61uthorized_view\x18\x01 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x1cUpdateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x1b\x44\x65leteAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x19\x43reateSchemaBundleRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1d\n\x10schema_bundle_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rschema_bundle\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\"\x88\x01\n\x1a\x43reateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x01\n\x19UpdateSchemaBundleRequest\x12\x42\n\rschema_bundle\x18\x01 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x1aUpdateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x16GetSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\n\x18ListSchemaBundlesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x19ListSchemaBundlesResponse\x12>\n\x0eschema_bundles\x18\x01 \x03(\x0b\x32&.google.bigtable.admin.v2.SchemaBundle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x19\x44\x65leteSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\x92@\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\xda\x41\x15parent,table_id,table\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\xda\x41\x1fparent,table_id,source_snapshot\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xce\x01\n\x0bUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1c\n\x05Table\x12\x13UpdateTableMetadata\xda\x41\x11table,update_mask\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xca\x41\x1e\n\x05Table\x12\x15UndeleteTableMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xa1\x02\n\x14\x43reateAuthorizedView\x12\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41.\n\x0e\x41uthorizedView\x12\x1c\x43reateAuthorizedViewMetadata\xda\x41)parent,authorized_view,authorized_view_id\x82\xd3\xe4\x93\x02O\"\x12\x12*\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass - Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule - Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule - AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass - AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass - Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass - Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass - Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass - Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass - Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule - Cluster::NodeScalingFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.NodeScalingFactor").enummodule - AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass - AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass - AppProfile::MultiClusterRoutingUseAny::RowAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity").msgclass - AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass - AppProfile::StandardIsolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.StandardIsolation").msgclass - AppProfile::DataBoostIsolationReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly").msgclass - AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner").enummodule - AppProfile::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.Priority").enummodule - HotTablet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.HotTablet").msgclass - LogicalView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.LogicalView").msgclass - MaterializedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.MaterializedView").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb deleted file mode 100644 index 4b069137666b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/table.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/types_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/timestamp_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass - ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass - Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass - Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass - Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule - Table::AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.AutomatedBackupPolicy").msgclass - Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule - Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule - AuthorizedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView").msgclass - AuthorizedView::FamilySubsets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.FamilySubsets").msgclass - AuthorizedView::SubsetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.SubsetView").msgclass - AuthorizedView::ResponseView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.ResponseView").enummodule - ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass - GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass - GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass - GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass - EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass - EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule - Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass - Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule - Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass - Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule - Backup::BackupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.BackupType").enummodule - BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass - TieredStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageConfig").msgclass - TieredStorageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageRule").msgclass - ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ProtoSchema").msgclass - SchemaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SchemaBundle").msgclass - RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb deleted file mode 100644 index 7a9e1c6a0620..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/types.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc7\x19\n\x04Type\x12:\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\n\x0bstring_type\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StringH\x00\x12:\n\nint64_type\x18\x05 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float64H\x00\x12\x38\n\tbool_type\x18\x08 \x01(\x0b\x32#.google.bigtable.admin.v2.Type.BoolH\x00\x12\x42\n\x0etimestamp_type\x18\n \x01(\x0b\x32(.google.bigtable.admin.v2.Type.TimestampH\x00\x12\x38\n\tdate_type\x18\x0b \x01(\x0b\x32#.google.bigtable.admin.v2.Type.DateH\x00\x12\x42\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\n\x0bstruct_type\x18\x07 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StructH\x00\x12:\n\narray_type\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ArrayH\x00\x12\x36\n\x08map_type\x18\x04 \x01(\x0b\x32\".google.bigtable.admin.v2.Type.MapH\x00\x12:\n\nproto_type\x18\r \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ProtoH\x00\x12\x38\n\tenum_type\x18\x0e \x01(\x0b\x32#.google.bigtable.admin.v2.Type.EnumH\x00\x1a\xa9\x01\n\x05\x42ytes\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1a_\n\x08\x45ncoding\x12@\n\x03raw\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\x9f\x02\n\x06String\x12@\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.Type.String.Encoding\x1a\xd2\x01\n\x08\x45ncoding\x12N\n\x08utf8_raw\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\r\n\x07Utf8Raw:\x02\x18\x01\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xfd\x02\n\x05Int64\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.Encoding\x1a\xb2\x02\n\x08\x45ncoding\x12X\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\n\x12ordered_code_bytes\x18\x02 \x01(\x0b\x32>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1aN\n\x0e\x42igEndianBytes\x12<\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\xb4\x01\n\tTimestamp\x12\x43\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1a\x62\n\x08\x45ncoding\x12J\n\x11unix_micros_int64\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00\x42\n\n\x08\x65ncoding\x1a\x06\n\x04\x44\x61te\x1a\xb9\x04\n\x06Struct\x12;\n\x06\x66ields\x18\x01 \x03(\x0b\x32+.google.bigtable.admin.v2.Type.Struct.Field\x12@\n\x08\x65ncoding\x18\x02 \x01(\x0b\x32..google.bigtable.admin.v2.Type.Struct.Encoding\x1aI\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xe4\x02\n\x08\x45ncoding\x12M\n\tsingleton\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\n\x0f\x64\x65limited_bytes\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\n\x12ordered_code_bytes\x18\x03 \x01(\x0b\x32?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1a\x0b\n\tSingleton\x1a#\n\x0e\x44\x65limitedBytes\x12\x11\n\tdelimiter\x18\x01 \x01(\x0c\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x37\n\x05Proto\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x14\n\x0cmessage_name\x18\x02 \x01(\t\x1a\x33\n\x04\x45num\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x11\n\tenum_name\x18\x02 \x01(\t\x1a=\n\x05\x41rray\x12\x34\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1ak\n\x03Map\x12\x30\n\x08key_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x32\n\nvalue_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xdb\x03\n\tAggregate\x12\x32\n\ninput_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x37\n\nstate_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.TypeB\x03\xe0\x41\x03\x12;\n\x03sum\x18\x04 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12\x65\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\n\x03max\x18\x06 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\n\x03min\x18\x07 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xcd\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type").msgclass - Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes").msgclass - Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding").msgclass - Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding.Raw").msgclass - Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String").msgclass - Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding").msgclass - Type::String::Encoding::Utf8Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw").msgclass - Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes").msgclass - Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64").msgclass - Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding").msgclass - Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes").msgclass - Type::Int64::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes").msgclass - Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bool").msgclass - Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float32").msgclass - Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float64").msgclass - Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp").msgclass - Type::Timestamp::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp.Encoding").msgclass - Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Date").msgclass - Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct").msgclass - Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Field").msgclass - Type::Struct::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding").msgclass - Type::Struct::Encoding::Singleton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.Singleton").msgclass - Type::Struct::Encoding::DelimitedBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes").msgclass - Type::Struct::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes").msgclass - Type::Proto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Proto").msgclass - Type::Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Enum").msgclass - Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Array").msgclass - Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Map").msgclass - Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate").msgclass - Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Sum").msgclass - Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Max").msgclass - Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Min").msgclass - Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb deleted file mode 100644 index 19a6f94a9e3e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" -require "google/cloud/bigtable/admin/v2/version" - -module Google - module Cloud - module Bigtable - module Admin - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - module V2 - end - end - end - end -end - -helper_path = ::File.join __dir__, "v2", "_helpers.rb" -require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb deleted file mode 100644 index aeb89a361209..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/bigtable/admin/v2/version" - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - ## - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - module BigtableInstanceAdmin - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb deleted file mode 100644 index 4dbd45245ace..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +++ /dev/null @@ -1,3710 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - ## - # Client for the BigtableInstanceAdmin service. - # - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :bigtable_instance_admin_stub - - ## - # Configure the BigtableInstanceAdmin Client class. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BigtableInstanceAdmin clients - # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.create_instance.timeout = 300.0 - - default_config.rpcs.get_instance.timeout = 60.0 - default_config.rpcs.get_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_instances.timeout = 60.0 - default_config.rpcs.list_instances.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_instance.timeout = 60.0 - default_config.rpcs.update_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.partial_update_instance.timeout = 60.0 - default_config.rpcs.partial_update_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_instance.timeout = 60.0 - - default_config.rpcs.create_cluster.timeout = 60.0 - - default_config.rpcs.get_cluster.timeout = 60.0 - default_config.rpcs.get_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_clusters.timeout = 60.0 - default_config.rpcs.list_clusters.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_cluster.timeout = 60.0 - default_config.rpcs.update_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_cluster.timeout = 60.0 - - default_config.rpcs.create_app_profile.timeout = 60.0 - - default_config.rpcs.get_app_profile.timeout = 60.0 - default_config.rpcs.get_app_profile.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_app_profiles.timeout = 60.0 - default_config.rpcs.list_app_profiles.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_app_profile.timeout = 60.0 - default_config.rpcs.update_app_profile.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_app_profile.timeout = 60.0 - - default_config.rpcs.get_iam_policy.timeout = 60.0 - default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.set_iam_policy.timeout = 60.0 - - default_config.rpcs.test_iam_permissions.timeout = 60.0 - default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_hot_tablets.timeout = 60.0 - default_config.rpcs.list_hot_tablets.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableInstanceAdmin Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @bigtable_instance_admin_stub.universe_domain - end - - ## - # Create a new BigtableInstanceAdmin client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BigtableInstanceAdmin client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @bigtable_instance_admin_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @bigtable_instance_admin_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations] - # - attr_reader :operations_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @bigtable_instance_admin_stub.logger - end - - # Service calls - - ## - # Create an instance within a project. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - # - # @overload create_instance(request, options = nil) - # Pass arguments to `create_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_instance(parent: nil, instance_id: nil, instance: nil, clusters: nil) - # Pass arguments to `create_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the project in which to create the new - # instance. Values are of the form `projects/{project}`. - # @param instance_id [::String] - # Required. The ID to be used when referring to the new instance within its - # project, e.g., just `myinstance` rather than - # `projects/myproject/instances/myinstance`. - # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # Required. The instance to create. - # Fields marked `OutputOnly` must be left blank. - # @param clusters [::Hash{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash}] - # Required. The clusters to be created within the instance, mapped by desired - # cluster ID, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # Fields marked `OutputOnly` must be left blank. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new - # - # # Call the create_instance method. - # result = client.create_instance request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an instance. - # - # @overload get_instance(request, options = nil) - # Pass arguments to `get_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_instance(name: nil) - # Pass arguments to `get_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested instance. Values are of the form - # `projects/{project}/instances/{instance}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new - # - # # Call the get_instance method. - # result = client.get_instance request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - # p result - # - def get_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about instances in a project. - # - # @overload list_instances(request, options = nil) - # Pass arguments to `list_instances` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_instances(parent: nil, page_token: nil) - # Pass arguments to `list_instances` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the project for which a list of instances is - # requested. Values are of the form `projects/{project}`. - # @param page_token [::String] - # DEPRECATED: This field is unused and ignored. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new - # - # # Call the list_instances method. - # result = client.list_instances request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. - # p result - # - def list_instances request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_instances.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_instances.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_instances.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an instance within a project. This method updates only the display - # name and type for an Instance. To update other Instance properties, such as - # labels, use PartialUpdateInstance. - # - # @overload update_instance(request, options = nil) - # Pass arguments to `update_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::Instance} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_instance(name: nil, display_name: nil, type: nil, labels: nil, tags: nil) - # Pass arguments to `update_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The unique name of the instance. Values are of the form - # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - # @param display_name [::String] - # Required. The descriptive name for this instance as it appears in UIs. - # Can be changed at any time, but should be kept globally unique - # to avoid confusion. - # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] - # The type of the instance. Defaults to `PRODUCTION`. - # @param labels [::Hash{::String => ::String}] - # Labels are a flexible and lightweight mechanism for organizing cloud - # resources into groups that reflect a customer's organizational needs and - # deployment strategies. They can be used to filter resources and aggregate - # metrics. - # - # * Label keys must be between 1 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - # * Label values must be between 0 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - # * No more than 64 labels can be associated with a given resource. - # * Keys and values must both be under 128 bytes. - # @param tags [::Hash{::String => ::String}] - # Optional. Input only. Immutable. Tag keys/values directly bound to this - # resource. For example: - # - "123/environment": "production", - # - "123/costCenter": "marketing" - # - # Tags and Labels (above) are both used to bind metadata to resources, with - # different use-cases. See - # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - # in-depth overview on the difference between tags and labels. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::Instance.new - # - # # Call the update_instance method. - # result = client.update_instance request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - # p result - # - def update_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Instance - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Partially updates an instance within a project. This method can modify all - # fields of an Instance and is the preferred way to update an Instance. - # - # @overload partial_update_instance(request, options = nil) - # Pass arguments to `partial_update_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload partial_update_instance(instance: nil, update_mask: nil) - # Pass arguments to `partial_update_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # Required. The Instance which will (partially) replace the current value. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of Instance fields which should be replaced. - # Must be explicitly set. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new - # - # # Call the partial_update_instance method. - # result = client.partial_update_instance request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def partial_update_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.partial_update_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.instance&.name - header_params["instance.name"] = request.instance.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.partial_update_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete an instance from a project. - # - # @overload delete_instance(request, options = nil) - # Pass arguments to `delete_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_instance(name: nil) - # Pass arguments to `delete_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the instance to be deleted. - # Values are of the form `projects/{project}/instances/{instance}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new - # - # # Call the delete_instance method. - # result = client.delete_instance request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a cluster within an instance. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - # - # @overload create_cluster(request, options = nil) - # Pass arguments to `create_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil) - # Pass arguments to `create_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the new - # cluster. Values are of the form `projects/{project}/instances/{instance}`. - # @param cluster_id [::String] - # Required. The ID to be used when referring to the new cluster within its - # instance, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # Required. The cluster to be created. - # Fields marked `OutputOnly` must be left blank. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new - # - # # Call the create_cluster method. - # result = client.create_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a cluster. - # - # @overload get_cluster(request, options = nil) - # Pass arguments to `get_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_cluster(name: nil) - # Pass arguments to `get_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new - # - # # Call the get_cluster method. - # result = client.get_cluster request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. - # p result - # - def get_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about clusters in an instance. - # - # @overload list_clusters(request, options = nil) - # Pass arguments to `list_clusters` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_clusters(parent: nil, page_token: nil) - # Pass arguments to `list_clusters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which a list of clusters is - # requested. Values are of the form - # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - # Clusters for all Instances in a project, e.g., - # `projects/myproject/instances/-`. - # @param page_token [::String] - # DEPRECATED: This field is unused and ignored. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new - # - # # Call the list_clusters method. - # result = client.list_clusters request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. - # p result - # - def list_clusters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_clusters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_clusters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_clusters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a cluster within an instance. - # - # Note that UpdateCluster does not support updating - # cluster_config.cluster_autoscaling_config. In order to update it, you - # must use PartialUpdateCluster. - # - # @overload update_cluster(request, options = nil) - # Pass arguments to `update_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_cluster(name: nil, location: nil, serve_nodes: nil, node_scaling_factor: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil) - # Pass arguments to `update_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The unique name of the cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - # @param location [::String] - # Immutable. The location where this cluster's nodes and storage reside. For - # best performance, clients should be located as close as possible to this - # cluster. Currently only zones are supported, so values should be of the - # form `projects/{project}/locations/{zone}`. - # @param serve_nodes [::Integer] - # The number of nodes in the cluster. If no value is set, - # Cloud Bigtable automatically allocates nodes based on your data footprint - # and optimized for 50% storage utilization. - # @param node_scaling_factor [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] - # Immutable. The node scaling factor of this cluster. - # @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash] - # Configuration for this cluster. - # @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType] - # Immutable. The type of storage used by this cluster to serve its - # parent instance's tables, unless explicitly overridden. - # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash] - # Immutable. The encryption configuration for CMEK-protected clusters. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::Cluster.new - # - # # Call the update_cluster method. - # result = client.update_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Partially updates a cluster within a project. This method is the preferred - # way to update a Cluster. - # - # To enable and update autoscaling, set - # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - # are ignored. Note that an update cannot simultaneously set serve_nodes to - # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - # also specify both in the update_mask. - # - # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - # and explicitly set a serve_node count via the update_mask. - # - # @overload partial_update_cluster(request, options = nil) - # Pass arguments to `partial_update_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload partial_update_cluster(cluster: nil, update_mask: nil) - # Pass arguments to `partial_update_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # Required. The Cluster which contains the partial updates to be applied, - # subject to the update_mask. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of Cluster fields which should be replaced. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new - # - # # Call the partial_update_cluster method. - # result = client.partial_update_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def partial_update_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.partial_update_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.cluster&.name - header_params["cluster.name"] = request.cluster.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.partial_update_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a cluster from an instance. - # - # @overload delete_cluster(request, options = nil) - # Pass arguments to `delete_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_cluster(name: nil) - # Pass arguments to `delete_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the cluster to be deleted. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new - # - # # Call the delete_cluster method. - # result = client.delete_cluster request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an app profile within an instance. - # - # @overload create_app_profile(request, options = nil) - # Pass arguments to `create_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_app_profile(parent: nil, app_profile_id: nil, app_profile: nil, ignore_warnings: nil) - # Pass arguments to `create_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the new app - # profile. Values are of the form `projects/{project}/instances/{instance}`. - # @param app_profile_id [::String] - # Required. The ID to be used when referring to the new app profile within - # its instance, e.g., just `myprofile` rather than - # `projects/myproject/instances/myinstance/appProfiles/myprofile`. - # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] - # Required. The app profile to be created. - # Fields marked `OutputOnly` will be ignored. - # @param ignore_warnings [::Boolean] - # If true, ignore safety checks when creating the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new - # - # # Call the create_app_profile method. - # result = client.create_app_profile request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p result - # - def create_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an app profile. - # - # @overload get_app_profile(request, options = nil) - # Pass arguments to `get_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_app_profile(name: nil) - # Pass arguments to `get_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested app profile. Values are of the - # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new - # - # # Call the get_app_profile method. - # result = client.get_app_profile request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p result - # - def get_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about app profiles in an instance. - # - # @overload list_app_profiles(request, options = nil) - # Pass arguments to `list_app_profiles` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_app_profiles(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_app_profiles` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which a list of app profiles - # is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - # e.g., `projects/myproject/instances/-`. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new - # - # # Call the list_app_profiles method. - # result = client.list_app_profiles request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p item - # end - # - def list_app_profiles request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_app_profiles.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_app_profiles.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_app_profiles, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an app profile within an instance. - # - # @overload update_app_profile(request, options = nil) - # Pass arguments to `update_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_app_profile(app_profile: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] - # Required. The app profile which will (partially) replace the current value. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of app profile fields which should be replaced. - # If unset, all fields will be replaced. - # @param ignore_warnings [::Boolean] - # If true, ignore safety checks when updating the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new - # - # # Call the update_app_profile method. - # result = client.update_app_profile request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.app_profile&.name - header_params["app_profile.name"] = request.app_profile.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an app profile from an instance. - # - # @overload delete_app_profile(request, options = nil) - # Pass arguments to `delete_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_app_profile(name: nil, ignore_warnings: nil) - # Pass arguments to `delete_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the app profile to be deleted. Values are of - # the form - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # @param ignore_warnings [::Boolean] - # Required. If true, ignore safety checks when deleting the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new - # - # # Call the delete_app_profile method. - # result = client.delete_app_profile request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for an instance resource. Returns an empty - # policy if an instance exists but does not have a policy set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on an instance resource. Replaces any - # existing policy. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns permissions that the caller has on the specified instance resource. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists hot tablets in a cluster, within the time range provided. Hot - # tablets are ordered based on CPU usage. - # - # @overload list_hot_tablets(request, options = nil) - # Pass arguments to `list_hot_tablets` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_hot_tablets(parent: nil, start_time: nil, end_time: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_hot_tablets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The cluster name to list hot tablets. - # Value is in the following form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # The start time to list hot tablets. The hot tablets in the response will - # have start times between the requested start time and end time. Start time - # defaults to Now if it is unset, and end time defaults to Now - 24 hours if - # it is unset. The start time should be less than the end time, and the - # maximum allowed time range between start time and end time is 48 hours. - # Start time and end time should have values between Now and Now - 14 days. - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # The end time to list hot tablets. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size that is empty or zero lets the server choose the number of - # items to return. A page_size which is strictly positive will return at most - # that many items. A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls do not need a - # page_size field. If a page_size is set in subsequent calls, it must match - # the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new - # - # # Call the list_hot_tablets method. - # result = client.list_hot_tablets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. - # p item - # end - # - def list_hot_tablets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_hot_tablets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_hot_tablets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_hot_tablets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_hot_tablets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_hot_tablets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a logical view within an instance. - # - # @overload create_logical_view(request, options = nil) - # Pass arguments to `create_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_logical_view(parent: nil, logical_view_id: nil, logical_view: nil) - # Pass arguments to `create_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent instance where this logical view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @param logical_view_id [::String] - # Required. The ID to use for the logical view, which will become the final - # component of the logical view's resource name. - # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] - # Required. The logical view to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new - # - # # Call the create_logical_view method. - # result = client.create_logical_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_logical_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a logical view. - # - # @overload get_logical_view(request, options = nil) - # Pass arguments to `get_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_logical_view(name: nil) - # Pass arguments to `get_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested logical view. Values are of the - # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new - # - # # Call the get_logical_view method. - # result = client.get_logical_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. - # p result - # - def get_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_logical_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about logical views in an instance. - # - # @overload list_logical_views(request, options = nil) - # Pass arguments to `list_logical_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_logical_views(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_logical_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which the list of logical - # views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @param page_size [::Integer] - # Optional. The maximum number of logical views to return. The service may - # return fewer than this value - # @param page_token [::String] - # Optional. A page token, received from a previous `ListLogicalViews` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListLogicalViews` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new - # - # # Call the list_logical_views method. - # result = client.list_logical_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. - # p item - # end - # - def list_logical_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_logical_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_logical_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_logical_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_logical_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_logical_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a logical view within an instance. - # - # @overload update_logical_view(request, options = nil) - # Pass arguments to `update_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_logical_view(logical_view: nil, update_mask: nil) - # Pass arguments to `update_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] - # Required. The logical view to update. - # - # The logical view's `name` field is used to identify the view to update. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new - # - # # Call the update_logical_view method. - # result = client.update_logical_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.logical_view&.name - header_params["logical_view.name"] = request.logical_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_logical_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a logical view from an instance. - # - # @overload delete_logical_view(request, options = nil) - # Pass arguments to `delete_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_logical_view(name: nil, etag: nil) - # Pass arguments to `delete_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the logical view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @param etag [::String] - # Optional. The current etag of the logical view. - # If an etag is provided and does not match the current etag of the - # logical view, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new - # - # # Call the delete_logical_view method. - # result = client.delete_logical_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_logical_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a materialized view within an instance. - # - # @overload create_materialized_view(request, options = nil) - # Pass arguments to `create_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_materialized_view(parent: nil, materialized_view_id: nil, materialized_view: nil) - # Pass arguments to `create_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent instance where this materialized view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @param materialized_view_id [::String] - # Required. The ID to use for the materialized view, which will become the - # final component of the materialized view's resource name. - # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] - # Required. The materialized view to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new - # - # # Call the create_materialized_view method. - # result = client.create_materialized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_materialized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a materialized view. - # - # @overload get_materialized_view(request, options = nil) - # Pass arguments to `get_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_materialized_view(name: nil) - # Pass arguments to `get_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested materialized view. Values are of - # the form - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new - # - # # Call the get_materialized_view method. - # result = client.get_materialized_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. - # p result - # - def get_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_materialized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about materialized views in an instance. - # - # @overload list_materialized_views(request, options = nil) - # Pass arguments to `list_materialized_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_materialized_views(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_materialized_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which the list of - # materialized views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @param page_size [::Integer] - # Optional. The maximum number of materialized views to return. The service - # may return fewer than this value - # @param page_token [::String] - # Optional. A page token, received from a previous `ListMaterializedViews` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListMaterializedViews` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new - # - # # Call the list_materialized_views method. - # result = client.list_materialized_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. - # p item - # end - # - def list_materialized_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_materialized_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_materialized_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_materialized_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_materialized_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_materialized_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a materialized view within an instance. - # - # @overload update_materialized_view(request, options = nil) - # Pass arguments to `update_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_materialized_view(materialized_view: nil, update_mask: nil) - # Pass arguments to `update_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] - # Required. The materialized view to update. - # - # The materialized view's `name` field is used to identify the view to - # update. Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new - # - # # Call the update_materialized_view method. - # result = client.update_materialized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.materialized_view&.name - header_params["materialized_view.name"] = request.materialized_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_materialized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a materialized view from an instance. - # - # @overload delete_materialized_view(request, options = nil) - # Pass arguments to `delete_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_materialized_view(name: nil, etag: nil) - # Pass arguments to `delete_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the materialized view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @param etag [::String] - # Optional. The current etag of the materialized view. - # If an etag is provided and does not match the current etag of the - # materialized view, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new - # - # # Call the delete_materialized_view method. - # result = client.delete_materialized_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_materialized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the BigtableInstanceAdmin API. - # - # This class represents the configuration for BigtableInstanceAdmin, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_instance to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_instance.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_instance.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BigtableInstanceAdmin API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :create_instance - ## - # RPC-specific configuration for `get_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :get_instance - ## - # RPC-specific configuration for `list_instances` - # @return [::Gapic::Config::Method] - # - attr_reader :list_instances - ## - # RPC-specific configuration for `update_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :update_instance - ## - # RPC-specific configuration for `partial_update_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :partial_update_instance - ## - # RPC-specific configuration for `delete_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_instance - ## - # RPC-specific configuration for `create_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :create_cluster - ## - # RPC-specific configuration for `get_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :get_cluster - ## - # RPC-specific configuration for `list_clusters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_clusters - ## - # RPC-specific configuration for `update_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :update_cluster - ## - # RPC-specific configuration for `partial_update_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :partial_update_cluster - ## - # RPC-specific configuration for `delete_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_cluster - ## - # RPC-specific configuration for `create_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :create_app_profile - ## - # RPC-specific configuration for `get_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :get_app_profile - ## - # RPC-specific configuration for `list_app_profiles` - # @return [::Gapic::Config::Method] - # - attr_reader :list_app_profiles - ## - # RPC-specific configuration for `update_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :update_app_profile - ## - # RPC-specific configuration for `delete_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_app_profile - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - ## - # RPC-specific configuration for `list_hot_tablets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_hot_tablets - ## - # RPC-specific configuration for `create_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_logical_view - ## - # RPC-specific configuration for `get_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_logical_view - ## - # RPC-specific configuration for `list_logical_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_logical_views - ## - # RPC-specific configuration for `update_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_logical_view - ## - # RPC-specific configuration for `delete_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_logical_view - ## - # RPC-specific configuration for `create_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_materialized_view - ## - # RPC-specific configuration for `get_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_materialized_view - ## - # RPC-specific configuration for `list_materialized_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_materialized_views - ## - # RPC-specific configuration for `update_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_materialized_view - ## - # RPC-specific configuration for `delete_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_materialized_view - - # @private - def initialize parent_rpcs = nil - create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance - @create_instance = ::Gapic::Config::Method.new create_instance_config - get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance - @get_instance = ::Gapic::Config::Method.new get_instance_config - list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances - @list_instances = ::Gapic::Config::Method.new list_instances_config - update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance - @update_instance = ::Gapic::Config::Method.new update_instance_config - partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance - @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config - delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance - @delete_instance = ::Gapic::Config::Method.new delete_instance_config - create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster - @create_cluster = ::Gapic::Config::Method.new create_cluster_config - get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster - @get_cluster = ::Gapic::Config::Method.new get_cluster_config - list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters - @list_clusters = ::Gapic::Config::Method.new list_clusters_config - update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster - @update_cluster = ::Gapic::Config::Method.new update_cluster_config - partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster - @partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config - delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster - @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config - create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile - @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config - get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile - @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config - list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles - @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config - update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile - @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config - delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile - @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - list_hot_tablets_config = parent_rpcs.list_hot_tablets if parent_rpcs.respond_to? :list_hot_tablets - @list_hot_tablets = ::Gapic::Config::Method.new list_hot_tablets_config - create_logical_view_config = parent_rpcs.create_logical_view if parent_rpcs.respond_to? :create_logical_view - @create_logical_view = ::Gapic::Config::Method.new create_logical_view_config - get_logical_view_config = parent_rpcs.get_logical_view if parent_rpcs.respond_to? :get_logical_view - @get_logical_view = ::Gapic::Config::Method.new get_logical_view_config - list_logical_views_config = parent_rpcs.list_logical_views if parent_rpcs.respond_to? :list_logical_views - @list_logical_views = ::Gapic::Config::Method.new list_logical_views_config - update_logical_view_config = parent_rpcs.update_logical_view if parent_rpcs.respond_to? :update_logical_view - @update_logical_view = ::Gapic::Config::Method.new update_logical_view_config - delete_logical_view_config = parent_rpcs.delete_logical_view if parent_rpcs.respond_to? :delete_logical_view - @delete_logical_view = ::Gapic::Config::Method.new delete_logical_view_config - create_materialized_view_config = parent_rpcs.create_materialized_view if parent_rpcs.respond_to? :create_materialized_view - @create_materialized_view = ::Gapic::Config::Method.new create_materialized_view_config - get_materialized_view_config = parent_rpcs.get_materialized_view if parent_rpcs.respond_to? :get_materialized_view - @get_materialized_view = ::Gapic::Config::Method.new get_materialized_view_config - list_materialized_views_config = parent_rpcs.list_materialized_views if parent_rpcs.respond_to? :list_materialized_views - @list_materialized_views = ::Gapic::Config::Method.new list_materialized_views_config - update_materialized_view_config = parent_rpcs.update_materialized_view if parent_rpcs.respond_to? :update_materialized_view - @update_materialized_view = ::Gapic::Config::Method.new update_materialized_view_config - delete_materialized_view_config = parent_rpcs.delete_materialized_view if parent_rpcs.respond_to? :delete_materialized_view - @delete_materialized_view = ::Gapic::Config::Method.new delete_materialized_view_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb deleted file mode 100644 index 4b166e3ac286..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Credentials for the BigtableInstanceAdmin API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.cluster", - "https://www.googleapis.com/auth/bigtable.admin.instance", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - self.env_vars = [ - "BIGTABLE_CREDENTIALS", - "BIGTABLE_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "BIGTABLE_CREDENTIALS_JSON", - "BIGTABLE_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb deleted file mode 100644 index d49308f480c1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +++ /dev/null @@ -1,843 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the BigtableInstanceAdmin Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableInstanceAdmin Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb deleted file mode 100644 index 8ee57571df69..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb +++ /dev/null @@ -1,180 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Path helper methods for the BigtableInstanceAdmin API. - module Paths - ## - # Create a fully-qualified AppProfile resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}` - # - # @param project [String] - # @param instance [String] - # @param app_profile [String] - # - # @return [::String] - def app_profile_path project:, instance:, app_profile: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/appProfiles/#{app_profile}" - end - - ## - # Create a fully-qualified Cluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # - # @return [::String] - def cluster_path project:, instance:, cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}" - end - - ## - # Create a fully-qualified CryptoKey resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # - # @return [::String] - def crypto_key_path project:, location:, key_ring:, crypto_key: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" - end - - ## - # Create a fully-qualified Instance resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}` - # - # @param project [String] - # @param instance [String] - # - # @return [::String] - def instance_path project:, instance: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/instances/#{instance}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified LogicalView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - # - # @param project [String] - # @param instance [String] - # @param logical_view [String] - # - # @return [::String] - def logical_view_path project:, instance:, logical_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/logicalViews/#{logical_view}" - end - - ## - # Create a fully-qualified MaterializedView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - # - # @param project [String] - # @param instance [String] - # @param materialized_view [String] - # - # @return [::String] - def materialized_view_path project:, instance:, materialized_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/materializedViews/#{materialized_view}" - end - - ## - # Create a fully-qualified Project resource string. - # - # The resource will be in the following format: - # - # `projects/{project}` - # - # @param project [String] - # - # @return [::String] - def project_path project: - "projects/#{project}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb deleted file mode 100644 index cc08c6872c99..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/bigtable/admin/v2/version" - -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/paths" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/operations" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/client" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - ## - # Service for creating, configuring, and deleting Cloud Bigtable tables. - # - # - # Provides access to the table schemas only, not the data stored within - # the tables. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - module BigtableTableAdmin - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bigtable_table_admin", "helpers.rb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb deleted file mode 100644 index a6a0d9ba05cd..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +++ /dev/null @@ -1,4266 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/bigtable/admin/v2/bigtable_table_admin_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - ## - # Client for the BigtableTableAdmin service. - # - # Service for creating, configuring, and deleting Cloud Bigtable tables. - # - # - # Provides access to the table schemas only, not the data stored within - # the tables. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :bigtable_table_admin_stub - - ## - # Configure the BigtableTableAdmin Client class. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BigtableTableAdmin clients - # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.create_table.timeout = 300.0 - - default_config.rpcs.list_tables.timeout = 60.0 - default_config.rpcs.list_tables.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.get_table.timeout = 60.0 - default_config.rpcs.get_table.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_table.timeout = 300.0 - - default_config.rpcs.modify_column_families.timeout = 300.0 - - default_config.rpcs.drop_row_range.timeout = 3600.0 - - default_config.rpcs.generate_consistency_token.timeout = 60.0 - default_config.rpcs.generate_consistency_token.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.check_consistency.timeout = 3600.0 - default_config.rpcs.check_consistency.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.get_snapshot.timeout = 60.0 - default_config.rpcs.get_snapshot.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_snapshots.timeout = 60.0 - default_config.rpcs.list_snapshots.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_snapshot.timeout = 300.0 - - default_config.rpcs.create_backup.timeout = 60.0 - - default_config.rpcs.get_backup.timeout = 60.0 - default_config.rpcs.get_backup.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_backup.timeout = 60.0 - - default_config.rpcs.delete_backup.timeout = 300.0 - - default_config.rpcs.list_backups.timeout = 60.0 - default_config.rpcs.list_backups.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.restore_table.timeout = 60.0 - - default_config.rpcs.get_iam_policy.timeout = 60.0 - default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.set_iam_policy.timeout = 60.0 - - default_config.rpcs.test_iam_permissions.timeout = 60.0 - default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableTableAdmin Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @bigtable_table_admin_stub.universe_domain - end - - ## - # Create a new BigtableTableAdmin client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BigtableTableAdmin client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @bigtable_table_admin_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @bigtable_table_admin_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations] - # - attr_reader :operations_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @bigtable_table_admin_stub.logger - end - - # Service calls - - ## - # Creates a new table in the specified instance. - # The table can be created with a full set of initial column families, - # specified in the request. - # - # @overload create_table(request, options = nil) - # Pass arguments to `create_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_table(parent: nil, table_id: nil, table: nil, initial_splits: nil) - # Pass arguments to `create_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @param table_id [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # Maximum 50 characters. - # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] - # Required. The Table to create. - # @param initial_splits [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, ::Hash>] - # The optional list of row keys that will be used to initially split the - # table into several tablets (tablets are similar to HBase regions). - # Given two split keys, `s1` and `s2`, three tablets will be created, - # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - # - # Example: - # - # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - # `"other", "zz"]` - # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - # * Key assignment: - # - Tablet 1 `[, apple) => {"a"}.` - # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - # - Tablet 4 `[customer_2, other) => {"customer_2"}.` - # - Tablet 5 `[other, ) => {"other", "zz"}.` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new - # - # # Call the create_table method. - # result = client.create_table request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def create_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new table from the specified snapshot. The target table must - # not exist. The snapshot and the table must be in the same instance. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload create_table_from_snapshot(request, options = nil) - # Pass arguments to `create_table_from_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_table_from_snapshot(parent: nil, table_id: nil, source_snapshot: nil) - # Pass arguments to `create_table_from_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @param table_id [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # @param source_snapshot [::String] - # Required. The unique name of the snapshot from which to restore the table. - # The snapshot and the table must be in the same instance. Values are of the - # form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new - # - # # Call the create_table_from_snapshot method. - # result = client.create_table_from_snapshot request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_table_from_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_table_from_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all tables served from a specified instance. - # - # @overload list_tables(request, options = nil) - # Pass arguments to `list_tables` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_tables(parent: nil, view: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_tables` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which tables should be - # listed. Values are of the form `projects/{project}/instances/{instance}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned tables' fields. - # NAME_ONLY view (default) and REPLICATION_VIEW are supported. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new - # - # # Call the list_tables method. - # result = client.list_tables request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. - # p item - # end - # - def list_tables request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_tables.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_tables.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_tables.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_tables, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified table. - # - # @overload get_table(request, options = nil) - # Pass arguments to `get_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_table(name: nil, view: nil) - # Pass arguments to `get_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested table. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned table's fields. - # Defaults to `SCHEMA_VIEW` if unspecified. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new - # - # # Call the get_table method. - # result = client.get_table request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def get_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a specified table. - # - # @overload update_table(request, options = nil) - # Pass arguments to `update_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_table(table: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] - # Required. The table to update. - # The table's `name` field is used to identify the table to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to update. - # A mask specifying which fields (e.g. `change_stream_config`) in the `table` - # field should be updated. This mask is relative to the `table` field, not to - # the request message. The wildcard (*) path is currently not supported. - # Currently UpdateTable is only supported for the following fields: - # - # * `change_stream_config` - # * `change_stream_config.retention_period` - # * `deletion_protection` - # * `row_key_schema` - # - # If `column_families` is set in `update_mask`, it will return an - # UNIMPLEMENTED error. - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore safety checks when updating the table. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new - # - # # Call the update_table method. - # result = client.update_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.table&.name - header_params["table.name"] = request.table.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes a specified table and all of its data. - # - # @overload delete_table(request, options = nil) - # Pass arguments to `delete_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_table(name: nil) - # Pass arguments to `delete_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new - # - # # Call the delete_table method. - # result = client.delete_table request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Restores a specified table which was accidentally deleted. - # - # @overload undelete_table(request, options = nil) - # Pass arguments to `undelete_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload undelete_table(name: nil) - # Pass arguments to `undelete_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to be restored. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new - # - # # Call the undelete_table method. - # result = client.undelete_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def undelete_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.undelete_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.undelete_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.undelete_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new AuthorizedView in a table. - # - # @overload create_authorized_view(request, options = nil) - # Pass arguments to `create_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_authorized_view(parent: nil, authorized_view_id: nil, authorized_view: nil) - # Pass arguments to `create_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. This is the name of the table the AuthorizedView belongs to. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param authorized_view_id [::String] - # Required. The id of the AuthorizedView to create. This AuthorizedView must - # not already exist. The `authorized_view_id` appended to `parent` forms the - # full AuthorizedView name of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] - # Required. The AuthorizedView to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new - # - # # Call the create_authorized_view method. - # result = client.create_authorized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_authorized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all AuthorizedViews from a specific table. - # - # @overload list_authorized_views(request, options = nil) - # Pass arguments to `list_authorized_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_authorized_views(parent: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `list_authorized_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the table for which AuthorizedViews should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param page_size [::Integer] - # Optional. Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # Optional. The value of `next_page_token` returned by a previous call. - # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedViews' - # fields. Default to NAME_ONLY. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new - # - # # Call the list_authorized_views method. - # result = client.list_authorized_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - # p item - # end - # - def list_authorized_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_authorized_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_authorized_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_authorized_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_authorized_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_authorized_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information from a specified AuthorizedView. - # - # @overload get_authorized_view(request, options = nil) - # Pass arguments to `get_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_authorized_view(name: nil, view: nil) - # Pass arguments to `get_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedView's - # fields. Default to BASIC. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new - # - # # Call the get_authorized_view method. - # result = client.get_authorized_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - # p result - # - def get_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_authorized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an AuthorizedView in a table. - # - # @overload update_authorized_view(request, options = nil) - # Pass arguments to `update_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_authorized_view(authorized_view: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] - # Required. The AuthorizedView to update. The `name` in `authorized_view` is - # used to identify the AuthorizedView. AuthorizedView name must in this - # format: - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # A mask specifying which fields in the AuthorizedView resource should be - # updated. This mask is relative to the AuthorizedView resource, not to the - # request message. A field will be overwritten if it is in the mask. If - # empty, all fields set in the request will be overwritten. A special value - # `*` means to overwrite all fields (including fields not set in the - # request). - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore the safety checks when updating the - # AuthorizedView. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new - # - # # Call the update_authorized_view method. - # result = client.update_authorized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.authorized_view&.name - header_params["authorized_view.name"] = request.authorized_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_authorized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes a specified AuthorizedView. - # - # @overload delete_authorized_view(request, options = nil) - # Pass arguments to `delete_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_authorized_view(name: nil, etag: nil) - # Pass arguments to `delete_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the AuthorizedView to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param etag [::String] - # Optional. The current etag of the AuthorizedView. - # If an etag is provided and does not match the current etag of the - # AuthorizedView, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new - # - # # Call the delete_authorized_view method. - # result = client.delete_authorized_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_authorized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a series of column family modifications on the specified table. - # Either all or none of the modifications will occur before this method - # returns, but data requests received prior to that point may see a table - # where only some modifications have taken effect. - # - # @overload modify_column_families(request, options = nil) - # Pass arguments to `modify_column_families` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload modify_column_families(name: nil, modifications: nil, ignore_warnings: nil) - # Pass arguments to `modify_column_families` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table whose families should be modified. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param modifications [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, ::Hash>] - # Required. Modifications to be atomically applied to the specified table's - # families. Entries are applied in order, meaning that earlier modifications - # can be masked by later ones (in the case of repeated updates to the same - # family, for example). - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore safety checks when modifying the column families. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new - # - # # Call the modify_column_families method. - # result = client.modify_column_families request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def modify_column_families request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.modify_column_families.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout, - metadata: metadata, - retry_policy: @config.rpcs.modify_column_families.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently drop/delete a row range from a specified table. The request can - # specify whether to delete all rows in a table, or only those that match a - # particular prefix. - # - # @overload drop_row_range(request, options = nil) - # Pass arguments to `drop_row_range` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload drop_row_range(name: nil, row_key_prefix: nil, delete_all_data_from_table: nil) - # Pass arguments to `drop_row_range` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table on which to drop a range of rows. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param row_key_prefix [::String] - # Delete all rows that start with this row key prefix. Prefix cannot be - # zero length. - # - # Note: The following parameters are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param delete_all_data_from_table [::Boolean] - # Delete all rows in the table. Setting this to false is a no-op. - # - # Note: The following parameters are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new - # - # # Call the drop_row_range method. - # result = client.drop_row_range request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def drop_row_range request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.drop_row_range.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout, - metadata: metadata, - retry_policy: @config.rpcs.drop_row_range.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Generates a consistency token for a Table, which can be used in - # CheckConsistency to check whether mutations to the table that finished - # before this call started have been replicated. The tokens will be available - # for 90 days. - # - # @overload generate_consistency_token(request, options = nil) - # Pass arguments to `generate_consistency_token` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_consistency_token(name: nil) - # Pass arguments to `generate_consistency_token` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the Table for which to create a consistency - # token. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new - # - # # Call the generate_consistency_token method. - # result = client.generate_consistency_token request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. - # p result - # - def generate_consistency_token request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_consistency_token.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_consistency_token.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Checks replication consistency based on a consistency token, that is, if - # replication has caught up based on the conditions specified in the token - # and the check request. - # - # @overload check_consistency(request, options = nil) - # Pass arguments to `check_consistency` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload check_consistency(name: nil, consistency_token: nil, standard_read_remote_writes: nil, data_boost_read_local_writes: nil) - # Pass arguments to `check_consistency` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the Table for which to check replication - # consistency. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param consistency_token [::String] - # Required. The token created using GenerateConsistencyToken for the Table. - # @param standard_read_remote_writes [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites, ::Hash] - # Checks that reads using an app profile with `StandardIsolation` can - # see all writes committed before the token was created, even if the - # read and write target different clusters. - # - # Note: The following parameters are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param data_boost_read_local_writes [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites, ::Hash] - # Checks that reads using an app profile with `DataBoostIsolationReadOnly` - # can see all writes committed before the token was created, but only if - # the read and write target the same cluster. - # - # Note: The following parameters are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new - # - # # Call the check_consistency method. - # result = client.check_consistency request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. - # p result - # - def check_consistency request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.check_consistency.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.check_consistency.timeout, - metadata: metadata, - retry_policy: @config.rpcs.check_consistency.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new snapshot in the specified cluster from the specified - # source table. The cluster and the table must be in the same instance. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload snapshot_table(request, options = nil) - # Pass arguments to `snapshot_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload snapshot_table(name: nil, cluster: nil, snapshot_id: nil, ttl: nil, description: nil) - # Pass arguments to `snapshot_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to have the snapshot taken. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param cluster [::String] - # Required. The name of the cluster where the snapshot will be created in. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param snapshot_id [::String] - # Required. The ID by which the new snapshot should be referred to within the - # parent cluster, e.g., `mysnapshot` of the form: - # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - # @param ttl [::Google::Protobuf::Duration, ::Hash] - # The amount of time that the new snapshot can stay active after it is - # created. Once 'ttl' expires, the snapshot will get deleted. The maximum - # amount of time a snapshot can stay active is 7 days. If 'ttl' is not - # specified, the default value of 24 hours will be used. - # @param description [::String] - # Description of the snapshot. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new - # - # # Call the snapshot_table method. - # result = client.snapshot_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def snapshot_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.snapshot_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.snapshot_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified snapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload get_snapshot(request, options = nil) - # Pass arguments to `get_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_snapshot(name: nil) - # Pass arguments to `get_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Snapshot] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new - # - # # Call the get_snapshot method. - # result = client.get_snapshot request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. - # p result - # - def get_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all snapshots associated with the specified cluster. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload list_snapshots(request, options = nil) - # Pass arguments to `list_snapshots` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_snapshots(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_snapshots` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the cluster for which snapshots should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @param page_size [::Integer] - # The maximum number of snapshots to return per page. - # CURRENTLY UNIMPLEMENTED AND IGNORED. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new - # - # # Call the list_snapshots method. - # result = client.list_snapshots request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. - # p item - # end - # - def list_snapshots request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_snapshots.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_snapshots.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_snapshots, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes the specified snapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload delete_snapshot(request, options = nil) - # Pass arguments to `delete_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_snapshot(name: nil) - # Pass arguments to `delete_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the snapshot to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new - # - # # Call the delete_snapshot method. - # result = client.delete_snapshot request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts creating a new Cloud Bigtable Backup. The returned backup - # {::Google::Longrunning::Operation long-running operation} can be used to - # track creation of the backup. The - # {::Google::Longrunning::Operation#metadata metadata} field type is - # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupMetadata CreateBackupMetadata}. The - # {::Google::Longrunning::Operation#response response} field type is - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}, if successful. Cancelling the - # returned operation will stop the creation and delete the backup. - # - # @overload create_backup(request, options = nil) - # Pass arguments to `create_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_backup(parent: nil, backup_id: nil, backup: nil) - # Pass arguments to `create_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. This must be one of the clusters in the instance in which this - # table is located. The backup will be stored in this cluster. Values are - # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param backup_id [::String] - # Required. The id of the backup to be created. The `backup_id` along with - # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create - # the full backup name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] - # Required. The backup to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new - # - # # Call the create_backup method. - # result = client.create_backup request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata on a pending or completed Cloud Bigtable Backup. - # - # @overload get_backup(request, options = nil) - # Pass arguments to `get_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_backup(name: nil) - # Pass arguments to `get_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the backup. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new - # - # # Call the get_backup method. - # result = client.get_backup request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - # p result - # - def get_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a pending or completed Cloud Bigtable Backup. - # - # @overload update_backup(request, options = nil) - # Pass arguments to `update_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_backup(backup: nil, update_mask: nil) - # Pass arguments to `update_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] - # Required. The backup to update. `backup.name`, and the fields to be updated - # as specified by `update_mask` are required. Other fields are ignored. - # Update is only supported for the following fields: - # - # * `backup.expire_time`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. A mask specifying which fields (e.g. `expire_time`) in the - # Backup resource should be updated. This mask is relative to the Backup - # resource, not to the request message. The field mask must always be - # specified; this prevents any future fields from being erased accidentally - # by clients that do not know about them. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new - # - # # Call the update_backup method. - # result = client.update_backup request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - # p result - # - def update_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.backup&.name - header_params["backup.name"] = request.backup.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a pending or completed Cloud Bigtable backup. - # - # @overload delete_backup(request, options = nil) - # Pass arguments to `delete_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_backup(name: nil) - # Pass arguments to `delete_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the backup to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new - # - # # Call the delete_backup method. - # result = client.delete_backup request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Cloud Bigtable backups. Returns both completed and pending - # backups. - # - # @overload list_backups(request, options = nil) - # Pass arguments to `list_backups` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_backups(parent: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_backups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The cluster to list backups from. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list backups for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @param filter [::String] - # A filter expression that filters backups listed in the response. - # The expression must specify the field name, a comparison operator, - # and the value that you want to use for filtering. The value must be a - # string, a number, or a boolean. The comparison operator must be - # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - # roughly synonymous with equality. Filter rules are case insensitive. - # - # The fields eligible for filtering are: - # - # * `name` - # * `source_table` - # * `state` - # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `size_bytes` - # - # To filter on multiple expressions, provide each separate expression within - # parentheses. By default, each expression is an AND expression. However, - # you can include AND, OR, and NOT expressions explicitly. - # - # Some examples of using filters are: - # - # * `name:"exact"` --> The backup's name is the string "exact". - # * `name:howl` --> The backup's name contains the string "howl". - # * `source_table:prod` - # --> The source_table's name contains the string "prod". - # * `state:CREATING` --> The backup is pending creation. - # * `state:READY` --> The backup is fully created and ready for use. - # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - # --> The backup name contains the string "howl" and start_time - # of the backup is before 2018-03-28T14:50:00Z. - # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - # @param order_by [::String] - # An expression for specifying the sort order of the results of the request. - # The string value should specify one or more fields in - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at - # https://aip.dev/132#ordering. - # - # Fields supported are: - # - # * name - # * source_table - # * expire_time - # * start_time - # * end_time - # * size_bytes - # * state - # - # For example, "start_time". The default sorting order is ascending. - # To specify descending order for the field, a suffix " desc" should - # be appended to the field name. For example, "start_time desc". - # Redundant space characters in the syntax are insigificant. - # - # If order_by is empty, results will be sorted by `start_time` in descending - # order starting from the most recently created backup. - # @param page_size [::Integer] - # Number of backups to be returned in the response. If 0 or - # less, defaults to the server's maximum allowed page size. - # @param page_token [::String] - # If non-empty, `page_token` should contain a - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} - # from a previous - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the - # same `parent` and with the same `filter`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new - # - # # Call the list_backups method. - # result = client.list_backups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. - # p item - # end - # - def list_backups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_backups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_backups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_backups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_backups, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new table by restoring from a completed backup. The - # returned table {::Google::Longrunning::Operation long-running operation} can - # be used to track the progress of the operation, and to cancel it. The - # {::Google::Longrunning::Operation#metadata metadata} field type is - # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableMetadata RestoreTableMetadata}. The - # {::Google::Longrunning::Operation#response response} type is - # {::Google::Cloud::Bigtable::Admin::V2::Table Table}, if successful. - # - # @overload restore_table(request, options = nil) - # Pass arguments to `restore_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload restore_table(parent: nil, table_id: nil, backup: nil) - # Pass arguments to `restore_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the instance in which to create the restored - # table. Values are of the form `projects//instances/`. - # @param table_id [::String] - # Required. The id of the table to create and restore to. This - # table must not already exist. The `table_id` appended to - # `parent` forms the full table name of the form - # `projects//instances//tables/`. - # @param backup [::String] - # Name of the backup from which to restore. Values are of the form - # `projects//instances//clusters//backups/`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new - # - # # Call the restore_table method. - # result = client.restore_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def restore_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.restore_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.restore_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.restore_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Copy a Cloud Bigtable backup to a new backup in the destination cluster - # located in the destination instance and project. - # - # @overload copy_backup(request, options = nil) - # Pass arguments to `copy_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload copy_backup(parent: nil, backup_id: nil, source_backup: nil, expire_time: nil) - # Pass arguments to `copy_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the destination cluster that will contain the backup - # copy. The cluster must already exist. Values are of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param backup_id [::String] - # Required. The id of the new backup. The `backup_id` along with `parent` - # are combined as \\{parent}/backups/\\{backup_id} to create the full backup - # name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @param source_backup [::String] - # Required. The source backup to be copied from. - # The source backup needs to be in READY state for it to be copied. - # Copying a copied backup is not allowed. - # Once CopyBackup is in progress, the source backup cannot be deleted or - # cleaned up on expiration until CopyBackup is finished. - # Values are of the form: - # `projects//instances//clusters//backups/`. - # @param expire_time [::Google::Protobuf::Timestamp, ::Hash] - # Required. Required. The expiration time of the copied backup with - # microsecond granularity that must be at least 6 hours and at most 30 days - # from the time the request is received. Once the `expire_time` has - # passed, Cloud Bigtable will delete the backup and free the resources used - # by the backup. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new - # - # # Call the copy_backup method. - # result = client.copy_backup request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def copy_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.copy_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.copy_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.copy_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :copy_backup, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a Bigtable resource. - # Returns an empty policy if the resource exists but does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on a Bigtable resource. - # Replaces any existing policy. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns permissions that the caller has on the specified Bigtable - # resource. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new schema bundle in the specified table. - # - # @overload create_schema_bundle(request, options = nil) - # Pass arguments to `create_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_schema_bundle(parent: nil, schema_bundle_id: nil, schema_bundle: nil) - # Pass arguments to `create_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this schema bundle will be created. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param schema_bundle_id [::String] - # Required. The unique ID to use for the schema bundle, which will become the - # final component of the schema bundle's resource name. - # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] - # Required. The schema bundle to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new - # - # # Call the create_schema_bundle method. - # result = client.create_schema_bundle request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_schema_bundle, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a schema bundle in the specified table. - # - # @overload update_schema_bundle(request, options = nil) - # Pass arguments to `update_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_schema_bundle(schema_bundle: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] - # Required. The schema bundle to update. - # - # The schema bundle's `name` field is used to identify the schema bundle to - # update. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # @param ignore_warnings [::Boolean] - # Optional. If set, ignore the safety checks when updating the Schema Bundle. - # The safety checks are: - # - The new Schema Bundle is backwards compatible with the existing Schema - # Bundle. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new - # - # # Call the update_schema_bundle method. - # result = client.update_schema_bundle request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.schema_bundle&.name - header_params["schema_bundle.name"] = request.schema_bundle.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_schema_bundle, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified schema bundle. - # - # @overload get_schema_bundle(request, options = nil) - # Pass arguments to `get_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_schema_bundle(name: nil) - # Pass arguments to `get_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the schema bundle to retrieve. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new - # - # # Call the get_schema_bundle method. - # result = client.get_schema_bundle request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - # p result - # - def get_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_schema_bundle, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all schema bundles associated with the specified table. - # - # @overload list_schema_bundles(request, options = nil) - # Pass arguments to `list_schema_bundles` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_schema_bundles(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_schema_bundles` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent, which owns this collection of schema bundles. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param page_size [::Integer] - # The maximum number of schema bundles to return. If the value is positive, - # the server may return at most this value. If unspecified, the server will - # return the maximum allowed page size. - # @param page_token [::String] - # A page token, received from a previous `ListSchemaBundles` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListSchemaBundles` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new - # - # # Call the list_schema_bundles method. - # result = client.list_schema_bundles request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - # p item - # end - # - def list_schema_bundles request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_schema_bundles.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_schema_bundles.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_schema_bundles.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_schema_bundles, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_schema_bundles, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a schema bundle in the specified table. - # - # @overload delete_schema_bundle(request, options = nil) - # Pass arguments to `delete_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_schema_bundle(name: nil, etag: nil) - # Pass arguments to `delete_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the schema bundle to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @param etag [::String] - # Optional. The etag of the schema bundle. - # If this is provided, it must match the server's etag. The server - # returns an ABORTED error on a mismatched etag. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new - # - # # Call the delete_schema_bundle method. - # result = client.delete_schema_bundle request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_schema_bundle, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the BigtableTableAdmin API. - # - # This class represents the configuration for BigtableTableAdmin, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_table to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_table.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_table.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BigtableTableAdmin API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_table` - # @return [::Gapic::Config::Method] - # - attr_reader :create_table - ## - # RPC-specific configuration for `create_table_from_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :create_table_from_snapshot - ## - # RPC-specific configuration for `list_tables` - # @return [::Gapic::Config::Method] - # - attr_reader :list_tables - ## - # RPC-specific configuration for `get_table` - # @return [::Gapic::Config::Method] - # - attr_reader :get_table - ## - # RPC-specific configuration for `update_table` - # @return [::Gapic::Config::Method] - # - attr_reader :update_table - ## - # RPC-specific configuration for `delete_table` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_table - ## - # RPC-specific configuration for `undelete_table` - # @return [::Gapic::Config::Method] - # - attr_reader :undelete_table - ## - # RPC-specific configuration for `create_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_authorized_view - ## - # RPC-specific configuration for `list_authorized_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_authorized_views - ## - # RPC-specific configuration for `get_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_authorized_view - ## - # RPC-specific configuration for `update_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_authorized_view - ## - # RPC-specific configuration for `delete_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_authorized_view - ## - # RPC-specific configuration for `modify_column_families` - # @return [::Gapic::Config::Method] - # - attr_reader :modify_column_families - ## - # RPC-specific configuration for `drop_row_range` - # @return [::Gapic::Config::Method] - # - attr_reader :drop_row_range - ## - # RPC-specific configuration for `generate_consistency_token` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_consistency_token - ## - # RPC-specific configuration for `check_consistency` - # @return [::Gapic::Config::Method] - # - attr_reader :check_consistency - ## - # RPC-specific configuration for `snapshot_table` - # @return [::Gapic::Config::Method] - # - attr_reader :snapshot_table - ## - # RPC-specific configuration for `get_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :get_snapshot - ## - # RPC-specific configuration for `list_snapshots` - # @return [::Gapic::Config::Method] - # - attr_reader :list_snapshots - ## - # RPC-specific configuration for `delete_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_snapshot - ## - # RPC-specific configuration for `create_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :create_backup - ## - # RPC-specific configuration for `get_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :get_backup - ## - # RPC-specific configuration for `update_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :update_backup - ## - # RPC-specific configuration for `delete_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_backup - ## - # RPC-specific configuration for `list_backups` - # @return [::Gapic::Config::Method] - # - attr_reader :list_backups - ## - # RPC-specific configuration for `restore_table` - # @return [::Gapic::Config::Method] - # - attr_reader :restore_table - ## - # RPC-specific configuration for `copy_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :copy_backup - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - ## - # RPC-specific configuration for `create_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :create_schema_bundle - ## - # RPC-specific configuration for `update_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :update_schema_bundle - ## - # RPC-specific configuration for `get_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :get_schema_bundle - ## - # RPC-specific configuration for `list_schema_bundles` - # @return [::Gapic::Config::Method] - # - attr_reader :list_schema_bundles - ## - # RPC-specific configuration for `delete_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_schema_bundle - - # @private - def initialize parent_rpcs = nil - create_table_config = parent_rpcs.create_table if parent_rpcs.respond_to? :create_table - @create_table = ::Gapic::Config::Method.new create_table_config - create_table_from_snapshot_config = parent_rpcs.create_table_from_snapshot if parent_rpcs.respond_to? :create_table_from_snapshot - @create_table_from_snapshot = ::Gapic::Config::Method.new create_table_from_snapshot_config - list_tables_config = parent_rpcs.list_tables if parent_rpcs.respond_to? :list_tables - @list_tables = ::Gapic::Config::Method.new list_tables_config - get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table - @get_table = ::Gapic::Config::Method.new get_table_config - update_table_config = parent_rpcs.update_table if parent_rpcs.respond_to? :update_table - @update_table = ::Gapic::Config::Method.new update_table_config - delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table - @delete_table = ::Gapic::Config::Method.new delete_table_config - undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table - @undelete_table = ::Gapic::Config::Method.new undelete_table_config - create_authorized_view_config = parent_rpcs.create_authorized_view if parent_rpcs.respond_to? :create_authorized_view - @create_authorized_view = ::Gapic::Config::Method.new create_authorized_view_config - list_authorized_views_config = parent_rpcs.list_authorized_views if parent_rpcs.respond_to? :list_authorized_views - @list_authorized_views = ::Gapic::Config::Method.new list_authorized_views_config - get_authorized_view_config = parent_rpcs.get_authorized_view if parent_rpcs.respond_to? :get_authorized_view - @get_authorized_view = ::Gapic::Config::Method.new get_authorized_view_config - update_authorized_view_config = parent_rpcs.update_authorized_view if parent_rpcs.respond_to? :update_authorized_view - @update_authorized_view = ::Gapic::Config::Method.new update_authorized_view_config - delete_authorized_view_config = parent_rpcs.delete_authorized_view if parent_rpcs.respond_to? :delete_authorized_view - @delete_authorized_view = ::Gapic::Config::Method.new delete_authorized_view_config - modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families - @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config - drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range - @drop_row_range = ::Gapic::Config::Method.new drop_row_range_config - generate_consistency_token_config = parent_rpcs.generate_consistency_token if parent_rpcs.respond_to? :generate_consistency_token - @generate_consistency_token = ::Gapic::Config::Method.new generate_consistency_token_config - check_consistency_config = parent_rpcs.check_consistency if parent_rpcs.respond_to? :check_consistency - @check_consistency = ::Gapic::Config::Method.new check_consistency_config - snapshot_table_config = parent_rpcs.snapshot_table if parent_rpcs.respond_to? :snapshot_table - @snapshot_table = ::Gapic::Config::Method.new snapshot_table_config - get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot - @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config - list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots - @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config - delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot - @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config - create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup - @create_backup = ::Gapic::Config::Method.new create_backup_config - get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup - @get_backup = ::Gapic::Config::Method.new get_backup_config - update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup - @update_backup = ::Gapic::Config::Method.new update_backup_config - delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup - @delete_backup = ::Gapic::Config::Method.new delete_backup_config - list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups - @list_backups = ::Gapic::Config::Method.new list_backups_config - restore_table_config = parent_rpcs.restore_table if parent_rpcs.respond_to? :restore_table - @restore_table = ::Gapic::Config::Method.new restore_table_config - copy_backup_config = parent_rpcs.copy_backup if parent_rpcs.respond_to? :copy_backup - @copy_backup = ::Gapic::Config::Method.new copy_backup_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - create_schema_bundle_config = parent_rpcs.create_schema_bundle if parent_rpcs.respond_to? :create_schema_bundle - @create_schema_bundle = ::Gapic::Config::Method.new create_schema_bundle_config - update_schema_bundle_config = parent_rpcs.update_schema_bundle if parent_rpcs.respond_to? :update_schema_bundle - @update_schema_bundle = ::Gapic::Config::Method.new update_schema_bundle_config - get_schema_bundle_config = parent_rpcs.get_schema_bundle if parent_rpcs.respond_to? :get_schema_bundle - @get_schema_bundle = ::Gapic::Config::Method.new get_schema_bundle_config - list_schema_bundles_config = parent_rpcs.list_schema_bundles if parent_rpcs.respond_to? :list_schema_bundles - @list_schema_bundles = ::Gapic::Config::Method.new list_schema_bundles_config - delete_schema_bundle_config = parent_rpcs.delete_schema_bundle if parent_rpcs.respond_to? :delete_schema_bundle - @delete_schema_bundle = ::Gapic::Config::Method.new delete_schema_bundle_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb deleted file mode 100644 index b13ab97ad469..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Credentials for the BigtableTableAdmin API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.table", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.table", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - self.env_vars = [ - "BIGTABLE_CREDENTIALS", - "BIGTABLE_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "BIGTABLE_CREDENTIALS_JSON", - "BIGTABLE_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb deleted file mode 100644 index ad9957f0f690..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +++ /dev/null @@ -1,843 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the BigtableTableAdmin Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableTableAdmin Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb deleted file mode 100644 index c10bcef1999e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb +++ /dev/null @@ -1,214 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Path helper methods for the BigtableTableAdmin API. - module Paths - ## - # Create a fully-qualified AuthorizedView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # @param authorized_view [String] - # - # @return [::String] - def authorized_view_path project:, instance:, table:, authorized_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}/authorizedViews/#{authorized_view}" - end - - ## - # Create a fully-qualified Backup resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # @param backup [String] - # - # @return [::String] - def backup_path project:, instance:, cluster:, backup: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}" - end - - ## - # Create a fully-qualified Cluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # - # @return [::String] - def cluster_path project:, instance:, cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}" - end - - ## - # Create a fully-qualified CryptoKeyVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # @param crypto_key_version [String] - # - # @return [::String] - def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" - end - - ## - # Create a fully-qualified Instance resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}` - # - # @param project [String] - # @param instance [String] - # - # @return [::String] - def instance_path project:, instance: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/instances/#{instance}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified SchemaBundle resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # @param schema_bundle [String] - # - # @return [::String] - def schema_bundle_path project:, instance:, table:, schema_bundle: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}/schemaBundles/#{schema_bundle}" - end - - ## - # Create a fully-qualified Snapshot resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # @param snapshot [String] - # - # @return [::String] - def snapshot_path project:, instance:, cluster:, snapshot: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}" - end - - ## - # Create a fully-qualified Table resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # - # @return [::String] - def table_path project:, instance:, table: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb deleted file mode 100644 index b19e81c131f7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - VERSION = "0.0.1" - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md deleted file mode 100644 index 2968913b938d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Cloud Bigtable Admin V2 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb deleted file mode 100644 index 5089551e9ea4..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb +++ /dev/null @@ -1,589 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb deleted file mode 100644 index a39e72495e1c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb +++ /dev/null @@ -1,767 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Request message for BigtableInstanceAdmin.CreateInstance. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the project in which to create the new - # instance. Values are of the form `projects/{project}`. - # @!attribute [rw] instance_id - # @return [::String] - # Required. The ID to be used when referring to the new instance within its - # project, e.g., just `myinstance` rather than - # `projects/myproject/instances/myinstance`. - # @!attribute [rw] instance - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # Required. The instance to create. - # Fields marked `OutputOnly` must be left blank. - # @!attribute [rw] clusters - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster}] - # Required. The clusters to be created within the instance, mapped by desired - # cluster ID, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # Fields marked `OutputOnly` must be left blank. - class CreateInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - class ClustersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for BigtableInstanceAdmin.GetInstance. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested instance. Values are of the form - # `projects/{project}/instances/{instance}`. - class GetInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListInstances. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the project for which a list of instances is - # requested. Values are of the form `projects/{project}`. - # @!attribute [rw] page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListInstancesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListInstances. - # @!attribute [rw] instances - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Instance>] - # The list of requested instances. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which Instance information could not be retrieved, - # due to an outage or some other transient condition. - # Instances whose Clusters are all in one of the failed locations - # may be missing from `instances`, and Instances with at least one - # Cluster in a failed location may only have partial information returned. - # Values are of the form `projects//locations/` - # @!attribute [rw] next_page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListInstancesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.PartialUpdateInstance. - # @!attribute [rw] instance - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # Required. The Instance which will (partially) replace the current value. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of Instance fields which should be replaced. - # Must be explicitly set. - class PartialUpdateInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteInstance. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the instance to be deleted. - # Values are of the form `projects/{project}/instances/{instance}`. - class DeleteInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateCluster. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the new - # cluster. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] cluster_id - # @return [::String] - # Required. The ID to be used when referring to the new cluster within its - # instance, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # @!attribute [rw] cluster - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # Required. The cluster to be created. - # Fields marked `OutputOnly` must be left blank. - class CreateClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetCluster. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - class GetClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListClusters. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which a list of clusters is - # requested. Values are of the form - # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - # Clusters for all Instances in a project, e.g., - # `projects/myproject/instances/-`. - # @!attribute [rw] page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListClustersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListClusters. - # @!attribute [rw] clusters - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Cluster>] - # The list of requested clusters. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which Cluster information could not be retrieved, - # due to an outage or some other transient condition. - # Clusters from these locations may be missing from `clusters`, - # or may only have partial information returned. - # Values are of the form `projects//locations/` - # @!attribute [rw] next_page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListClustersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteCluster. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the cluster to be deleted. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - class DeleteClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateInstance. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest] - # The request that prompted the initiation of this CreateInstance operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateInstanceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateInstance. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest] - # The request that prompted the initiation of this UpdateInstance operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateInstanceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateCluster. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest] - # The request that prompted the initiation of this CreateCluster operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - # @!attribute [rw] tables - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress}] - # Keys: the full `name` of each table that existed in the instance when - # CreateCluster was first called, i.e. - # `projects//instances//tables/
`. Any table added - # to the instance by a later API call will be created in the new cluster by - # that API call, not this one. - # - # Values: information on how much of a table's data has been copied to the - # newly-created cluster so far. - class CreateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Progress info for copying a table's data to the new cluster. - # @!attribute [rw] estimated_size_bytes - # @return [::Integer] - # Estimate of the size of the table to be copied. - # @!attribute [rw] estimated_copied_bytes - # @return [::Integer] - # Estimate of the number of bytes copied so far for this table. - # This will eventually reach 'estimated_size_bytes' unless the table copy - # is CANCELLED. - # @!attribute [rw] state - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress::State] - class TableProgress - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - module State - STATE_UNSPECIFIED = 0 - - # The table has not yet begun copying to the new cluster. - PENDING = 1 - - # The table is actively being copied to the new cluster. - COPYING = 2 - - # The table has been fully copied to the new cluster. - COMPLETED = 3 - - # The table was deleted before it finished copying to the new cluster. - # Note that tables deleted after completion will stay marked as - # COMPLETED, not CANCELLED. - CANCELLED = 4 - end - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress] - class TablesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The metadata for the Operation returned by UpdateCluster. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # The request that prompted the initiation of this UpdateCluster operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by PartialUpdateCluster. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest] - # The original request for PartialUpdateCluster. - class PartialUpdateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.PartialUpdateCluster. - # @!attribute [rw] cluster - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # Required. The Cluster which contains the partial updates to be applied, - # subject to the update_mask. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of Cluster fields which should be replaced. - class PartialUpdateClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateAppProfile. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the new app - # profile. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] app_profile_id - # @return [::String] - # Required. The ID to be used when referring to the new app profile within - # its instance, e.g., just `myprofile` rather than - # `projects/myproject/instances/myinstance/appProfiles/myprofile`. - # @!attribute [rw] app_profile - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # Required. The app profile to be created. - # Fields marked `OutputOnly` will be ignored. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # If true, ignore safety checks when creating the app profile. - class CreateAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetAppProfile. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested app profile. Values are of the - # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - class GetAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListAppProfiles. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which a list of app profiles - # is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - # e.g., `projects/myproject/instances/-`. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListAppProfilesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListAppProfiles. - # @!attribute [rw] app_profiles - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # The list of requested app profiles. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all app profiles could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which AppProfile information could not be retrieved, - # due to an outage or some other transient condition. - # AppProfiles from these locations may be missing from `app_profiles`. - # Values are of the form `projects//locations/` - class ListAppProfilesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateAppProfile. - # @!attribute [rw] app_profile - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # Required. The app profile which will (partially) replace the current value. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of app profile fields which should be replaced. - # If unset, all fields will be replaced. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # If true, ignore safety checks when updating the app profile. - class UpdateAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteAppProfile. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the app profile to be deleted. Values are of - # the form - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Required. If true, ignore safety checks when deleting the app profile. - class DeleteAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateAppProfile. - class UpdateAppProfileMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListHotTablets. - # @!attribute [rw] parent - # @return [::String] - # Required. The cluster name to list hot tablets. - # Value is in the following form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The start time to list hot tablets. The hot tablets in the response will - # have start times between the requested start time and end time. Start time - # defaults to Now if it is unset, and end time defaults to Now - 24 hours if - # it is unset. The start time should be less than the end time, and the - # maximum allowed time range between start time and end time is 48 hours. - # Start time and end time should have values between Now and Now - 14 days. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # The end time to list hot tablets. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size that is empty or zero lets the server choose the number of - # items to return. A page_size which is strictly positive will return at most - # that many items. A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls do not need a - # page_size field. If a page_size is set in subsequent calls, it must match - # the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListHotTabletsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListHotTablets. - # @!attribute [rw] hot_tablets - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # List of hot tablets in the tables of the requested cluster that fall - # within the requested time range. Hot tablets are ordered by node cpu usage - # percent. If there are multiple hot tablets that correspond to the same - # tablet within a 15-minute interval, only the hot tablet with the highest - # node cpu usage will be included in the response. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all hot tablets could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListHotTabletsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateLogicalView. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent instance where this logical view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @!attribute [rw] logical_view_id - # @return [::String] - # Required. The ID to use for the logical view, which will become the final - # component of the logical view's resource name. - # @!attribute [rw] logical_view - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # Required. The logical view to create. - class CreateLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateLogicalView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest] - # The request that prompted the initiation of this CreateLogicalView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateLogicalViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetLogicalView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested logical view. Values are of the - # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - class GetLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListLogicalViews. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which the list of logical - # views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of logical views to return. The service may - # return fewer than this value - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListLogicalViews` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListLogicalViews` must - # match the call that provided the page token. - class ListLogicalViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListLogicalViews. - # @!attribute [rw] logical_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # The list of requested logical views. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListLogicalViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateLogicalView. - # @!attribute [rw] logical_view - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # Required. The logical view to update. - # - # The logical view's `name` field is used to identify the view to update. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - class UpdateLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateLogicalView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest] - # The request that prompted the initiation of this UpdateLogicalView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation was started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateLogicalViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteLogicalView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the logical view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the logical view. - # If an etag is provided and does not match the current etag of the - # logical view, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateMaterializedView. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent instance where this materialized view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @!attribute [rw] materialized_view_id - # @return [::String] - # Required. The ID to use for the materialized view, which will become the - # final component of the materialized view's resource name. - # @!attribute [rw] materialized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # Required. The materialized view to create. - class CreateMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateMaterializedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest] - # The request that prompted the initiation of this CreateMaterializedView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateMaterializedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetMaterializedView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested materialized view. Values are of - # the form - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - class GetMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListMaterializedViews. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which the list of - # materialized views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of materialized views to return. The service - # may return fewer than this value - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListMaterializedViews` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListMaterializedViews` - # must match the call that provided the page token. - class ListMaterializedViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListMaterializedViews. - # @!attribute [rw] materialized_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # The list of requested materialized views. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListMaterializedViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateMaterializedView. - # @!attribute [rw] materialized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # Required. The materialized view to update. - # - # The materialized view's `name` field is used to identify the view to - # update. Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - class UpdateMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateMaterializedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest] - # The request that prompted the initiation of this UpdateMaterializedView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation was started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateMaterializedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteMaterializedView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the materialized view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the materialized view. - # If an etag is provided and does not match the current etag of the - # materialized view, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb deleted file mode 100644 index cde156ec6152..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb +++ /dev/null @@ -1,1167 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the instance in which to create the restored - # table. Values are of the form `projects//instances/`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The id of the table to create and restore to. This - # table must not already exist. The `table_id` appended to - # `parent` forms the full table name of the form - # `projects//instances//tables/`. - # @!attribute [rw] backup - # @return [::String] - # Name of the backup from which to restore. Values are of the form - # `projects//instances//clusters//backups/`. - class RestoreTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the long-running operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. - # @!attribute [rw] name - # @return [::String] - # Name of the table being created and restored to. - # @!attribute [rw] source_type - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] - # The type of the restore source. - # @!attribute [rw] backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # @!attribute [rw] optimize_table_operation_name - # @return [::String] - # If exists, the name of the long-running operation that will be used to - # track the post-restore optimization process to optimize the performance of - # the restored table. The metadata type of the long-running operation is - # [OptimizeRestoreTableMetadata][]. The response type is - # {::Google::Protobuf::Empty Empty}. This long-running operation may be - # automatically created by the system if applicable after the - # RestoreTable long-running operation completes successfully. This operation - # may not be created if the table is already optimized or the restore was - # not successful. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable} - # operation. - class RestoreTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the long-running operation used to track the progress - # of optimizations performed on a newly restored table. This long-running - # operation is automatically created by the system after the successful - # completion of a table restore, and cannot be cancelled. - # @!attribute [rw] name - # @return [::String] - # Name of the restored table being optimized. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the post-restore optimizations. - class OptimizeRestoredTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table google.bigtable.admin.v2.BigtableTableAdmin.CreateTable} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # Maximum 50 characters. - # @!attribute [rw] table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Required. The Table to create. - # @!attribute [rw] initial_splits - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>] - # The optional list of row keys that will be used to initially split the - # table into several tablets (tablets are similar to HBase regions). - # Given two split keys, `s1` and `s2`, three tablets will be created, - # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - # - # Example: - # - # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - # `"other", "zz"]` - # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - # * Key assignment: - # - Tablet 1 `[, apple) => {"a"}.` - # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - # - Tablet 4 `[customer_2, other) => {"customer_2"}.` - # - Tablet 5 `[other, ) => {"other", "zz"}.` - class CreateTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # An initial split point for a newly created table. - # @!attribute [rw] key - # @return [::String] - # Row key to use as an initial tablet boundary. - class Split - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # @!attribute [rw] source_snapshot - # @return [::String] - # Required. The unique name of the snapshot from which to restore the table. - # The snapshot and the table must be in the same instance. Values are of the - # form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class CreateTableFromSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table on which to drop a range of rows. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] row_key_prefix - # @return [::String] - # Delete all rows that start with this row key prefix. Prefix cannot be - # zero length. - # - # Note: The following fields are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delete_all_data_from_table - # @return [::Boolean] - # Delete all rows in the table. Setting this to false is a no-op. - # - # Note: The following fields are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class DropRowRangeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which tables should be - # listed. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned tables' fields. - # NAME_ONLY view (default) and REPLICATION_VIEW are supported. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListTablesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} - # @!attribute [rw] tables - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Table>] - # The tables present in the requested instance. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all tables could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListTablesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table google.bigtable.admin.v2.BigtableTableAdmin.GetTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested table. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned table's fields. - # Defaults to `SCHEMA_VIEW` if unspecified. - class GetTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. - # @!attribute [rw] table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Required. The table to update. - # The table's `name` field is used to identify the table to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to update. - # A mask specifying which fields (e.g. `change_stream_config`) in the `table` - # field should be updated. This mask is relative to the `table` field, not to - # the request message. The wildcard (*) path is currently not supported. - # Currently UpdateTable is only supported for the following fields: - # - # * `change_stream_config` - # * `change_stream_config.retention_period` - # * `deletion_protection` - # * `row_key_schema` - # - # If `column_families` is set in `update_mask`, it will return an - # UNIMPLEMENTED error. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore safety checks when updating the table. - class UpdateTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. - # @!attribute [rw] name - # @return [::String] - # The name of the table being updated. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class DeleteTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to be restored. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class UndeleteTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}. - # @!attribute [rw] name - # @return [::String] - # The name of the table being restored. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was cancelled. - class UndeleteTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table whose families should be modified. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] modifications - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>] - # Required. Modifications to be atomically applied to the specified table's - # families. Entries are applied in order, meaning that earlier modifications - # can be masked by later ones (in the case of repeated updates to the same - # family, for example). - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore safety checks when modifying the column families. - class ModifyColumnFamiliesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A create, update, or delete of a particular column family. - # @!attribute [rw] id - # @return [::String] - # The ID of the column family to be modified. - # @!attribute [rw] create - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - # Create a new column family with the specified schema, or fail if - # one already exists with the given ID. - # - # Note: The following fields are mutually exclusive: `create`, `update`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] update - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - # Update an existing column family to the specified schema, or fail - # if no column family exists with the given ID. - # - # Note: The following fields are mutually exclusive: `update`, `create`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] drop - # @return [::Boolean] - # Drop (delete) the column family with the given ID, or fail if no such - # family exists. - # - # Note: The following fields are mutually exclusive: `drop`, `create`, `update`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` - # mod should be updated, ignored for other modification types. If unset or - # empty, we treat it as updating `gc_rule` to be backward compatible. - class Modification - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the Table for which to create a consistency - # token. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class GenerateConsistencyTokenRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} - # @!attribute [rw] consistency_token - # @return [::String] - # The generated consistency token. - class GenerateConsistencyTokenResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the Table for which to check replication - # consistency. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] consistency_token - # @return [::String] - # Required. The token created using GenerateConsistencyToken for the Table. - # @!attribute [rw] standard_read_remote_writes - # @return [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites] - # Checks that reads using an app profile with `StandardIsolation` can - # see all writes committed before the token was created, even if the - # read and write target different clusters. - # - # Note: The following fields are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_boost_read_local_writes - # @return [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites] - # Checks that reads using an app profile with `DataBoostIsolationReadOnly` - # can see all writes committed before the token was created, but only if - # the read and write target the same cluster. - # - # Note: The following fields are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class CheckConsistencyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Checks that all writes before the consistency token was generated are - # replicated in every cluster and readable. - class StandardReadRemoteWrites - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Checks that all writes before the consistency token was generated in the same - # cluster are readable by Databoost. - class DataBoostReadLocalWrites - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} - # @!attribute [rw] consistent - # @return [::Boolean] - # True only if the token is consistent. A token is consistent if replication - # has caught up with the restrictions specified in the request. - class CheckConsistencyResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to have the snapshot taken. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] cluster - # @return [::String] - # Required. The name of the cluster where the snapshot will be created in. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] snapshot_id - # @return [::String] - # Required. The ID by which the new snapshot should be referred to within the - # parent cluster, e.g., `mysnapshot` of the form: - # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - # @!attribute [rw] ttl - # @return [::Google::Protobuf::Duration] - # The amount of time that the new snapshot can stay active after it is - # created. Once 'ttl' expires, the snapshot will get deleted. The maximum - # amount of time a snapshot can stay active is 7 days. If 'ttl' is not - # specified, the default value of 24 hours will be used. - # @!attribute [rw] description - # @return [::String] - # Description of the snapshot. - class SnapshotTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class GetSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the cluster for which snapshots should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of snapshots to return per page. - # CURRENTLY UNIMPLEMENTED AND IGNORED. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListSnapshotsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] snapshots - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # The snapshots present in the requested cluster. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all snapshots could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListSnapshotsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the snapshot to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class DeleteSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by SnapshotTable. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest] - # The request that prompted the initiation of this SnapshotTable operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class SnapshotTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateTableFromSnapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest] - # The request that prompted the initiation of this CreateTableFromSnapshot - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateTableFromSnapshotMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. - # @!attribute [rw] parent - # @return [::String] - # Required. This must be one of the clusters in the instance in which this - # table is located. The backup will be stored in this cluster. Values are - # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] backup_id - # @return [::String] - # Required. The id of the backup to be created. The `backup_id` along with - # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create - # the full backup name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @!attribute [rw] backup - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # Required. The backup to create. - class CreateBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. - # @!attribute [rw] name - # @return [::String] - # The name of the backup being created. - # @!attribute [rw] source_table - # @return [::String] - # The name of the table the backup is created from. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was cancelled. - class CreateBackupMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup UpdateBackup}. - # @!attribute [rw] backup - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # Required. The backup to update. `backup.name`, and the fields to be updated - # as specified by `update_mask` are required. Other fields are ignored. - # Update is only supported for the following fields: - # - # * `backup.expire_time`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. A mask specifying which fields (e.g. `expire_time`) in the - # Backup resource should be updated. This mask is relative to the Backup - # resource, not to the request message. The field mask must always be - # specified; this prevents any future fields from being erased accidentally - # by clients that do not know about them. - class UpdateBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup GetBackup}. - # @!attribute [rw] name - # @return [::String] - # Required. Name of the backup. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - class GetBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup DeleteBackup}. - # @!attribute [rw] name - # @return [::String] - # Required. Name of the backup to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - class DeleteBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. - # @!attribute [rw] parent - # @return [::String] - # Required. The cluster to list backups from. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list backups for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @!attribute [rw] filter - # @return [::String] - # A filter expression that filters backups listed in the response. - # The expression must specify the field name, a comparison operator, - # and the value that you want to use for filtering. The value must be a - # string, a number, or a boolean. The comparison operator must be - # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - # roughly synonymous with equality. Filter rules are case insensitive. - # - # The fields eligible for filtering are: - # - # * `name` - # * `source_table` - # * `state` - # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `size_bytes` - # - # To filter on multiple expressions, provide each separate expression within - # parentheses. By default, each expression is an AND expression. However, - # you can include AND, OR, and NOT expressions explicitly. - # - # Some examples of using filters are: - # - # * `name:"exact"` --> The backup's name is the string "exact". - # * `name:howl` --> The backup's name contains the string "howl". - # * `source_table:prod` - # --> The source_table's name contains the string "prod". - # * `state:CREATING` --> The backup is pending creation. - # * `state:READY` --> The backup is fully created and ready for use. - # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - # --> The backup name contains the string "howl" and start_time - # of the backup is before 2018-03-28T14:50:00Z. - # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - # @!attribute [rw] order_by - # @return [::String] - # An expression for specifying the sort order of the results of the request. - # The string value should specify one or more fields in - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at - # https://aip.dev/132#ordering. - # - # Fields supported are: - # - # * name - # * source_table - # * expire_time - # * start_time - # * end_time - # * size_bytes - # * state - # - # For example, "start_time". The default sorting order is ascending. - # To specify descending order for the field, a suffix " desc" should - # be appended to the field name. For example, "start_time desc". - # Redundant space characters in the syntax are insigificant. - # - # If order_by is empty, results will be sorted by `start_time` in descending - # order starting from the most recently created backup. - # @!attribute [rw] page_size - # @return [::Integer] - # Number of backups to be returned in the response. If 0 or - # less, defaults to the server's maximum allowed page size. - # @!attribute [rw] page_token - # @return [::String] - # If non-empty, `page_token` should contain a - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} - # from a previous - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the - # same `parent` and with the same `filter`. - class ListBackupsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. - # @!attribute [rw] backups - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # The list of matching backups. - # @!attribute [rw] next_page_token - # @return [::String] - # `next_page_token` can be sent in a subsequent - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups} call - # to fetch more of the matching backups. - class ListBackupsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the destination cluster that will contain the backup - # copy. The cluster must already exist. Values are of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] backup_id - # @return [::String] - # Required. The id of the new backup. The `backup_id` along with `parent` - # are combined as \\{parent}/backups/\\{backup_id} to create the full backup - # name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @!attribute [rw] source_backup - # @return [::String] - # Required. The source backup to be copied from. - # The source backup needs to be in READY state for it to be copied. - # Copying a copied backup is not allowed. - # Once CopyBackup is in progress, the source backup cannot be deleted or - # cleaned up on expiration until CopyBackup is finished. - # Values are of the form: - # `projects//instances//clusters//backups/`. - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # Required. Required. The expiration time of the copied backup with - # microsecond granularity that must be at least 6 hours and at most 30 days - # from the time the request is received. Once the `expire_time` has - # passed, Cloud Bigtable will delete the backup and free the resources used - # by the backup. - class CopyBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the google.longrunning.Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. - # @!attribute [rw] name - # @return [::String] - # The name of the backup being created through the copy operation. - # Values are of the form - # `projects//instances//clusters//backups/`. - # @!attribute [rw] source_backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # Information about the source backup that is being copied from. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup} - # operation. - class CopyBackupMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view CreateAuthorizedView} - # @!attribute [rw] parent - # @return [::String] - # Required. This is the name of the table the AuthorizedView belongs to. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] authorized_view_id - # @return [::String] - # Required. The id of the AuthorizedView to create. This AuthorizedView must - # not already exist. The `authorized_view_id` appended to `parent` forms the - # full AuthorizedView name of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - # @!attribute [rw] authorized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # Required. The AuthorizedView to create. - class CreateAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateAuthorizedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest] - # The request that prompted the initiation of this CreateAuthorizedView - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateAuthorizedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the table for which AuthorizedViews should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # Optional. The value of `next_page_token` returned by a previous call. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedViews' - # fields. Default to NAME_ONLY. - class ListAuthorizedViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} - # @!attribute [rw] authorized_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # The AuthorizedViews present in the requested table. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all tables could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListAuthorizedViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedView's - # fields. Default to BASIC. - class GetAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. - # @!attribute [rw] authorized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # Required. The AuthorizedView to update. The `name` in `authorized_view` is - # used to identify the AuthorizedView. AuthorizedView name must in this - # format: - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - # A mask specifying which fields in the AuthorizedView resource should be - # updated. This mask is relative to the AuthorizedView resource, not to the - # request message. A field will be overwritten if it is in the mask. If - # empty, all fields set in the request will be overwritten. A special value - # `*` means to overwrite all fields (including fields not set in the - # request). - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore the safety checks when updating the - # AuthorizedView. - class UpdateAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for the google.longrunning.Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest] - # The request that prompted the initiation of this UpdateAuthorizedView - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateAuthorizedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the AuthorizedView to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the AuthorizedView. - # If an etag is provided and does not match the current etag of the - # AuthorizedView, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource where this schema bundle will be created. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # Required. The unique ID to use for the schema bundle, which will become the - # final component of the schema bundle's resource name. - # @!attribute [rw] schema_bundle - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # Required. The schema bundle to create. - class CreateSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateSchemaBundleMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. - # @!attribute [rw] schema_bundle - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # Required. The schema bundle to update. - # - # The schema bundle's `name` field is used to identify the schema bundle to - # update. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If set, ignore the safety checks when updating the Schema Bundle. - # The safety checks are: - # - The new Schema Bundle is backwards compatible with the existing Schema - # Bundle. - class UpdateSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateSchemaBundleMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle GetSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the schema bundle to retrieve. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - class GetSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent, which owns this collection of schema bundles. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of schema bundles to return. If the value is positive, - # the server may return at most this value. If unspecified, the server will - # return the maximum allowed page size. - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListSchemaBundles` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListSchemaBundles` must - # match the call that provided the page token. - class ListSchemaBundlesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. - # @!attribute [rw] schema_bundles - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # The schema bundles from the specified table. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListSchemaBundlesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle DeleteSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the schema bundle to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag of the schema bundle. - # If this is provided, it must match the server's etag. The server - # returns an ABORTED error on a mismatched etag. - class DeleteSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb deleted file mode 100644 index 09fe845b5e8c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Encapsulates progress related information for a Cloud Bigtable long - # running operation. - # @!attribute [rw] progress_percent - # @return [::Integer] - # Percent completion of the operation. - # Values are between 0 and 100 inclusive. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Time the request was received. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation failed or was completed - # successfully. - class OperationProgress - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Storage media types for persisting Bigtable data. - module StorageType - # The user did not specify a storage type. - STORAGE_TYPE_UNSPECIFIED = 0 - - # Flash (SSD) storage should be used. - SSD = 1 - - # Magnetic drive (HDD) storage should be used. - HDD = 2 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb deleted file mode 100644 index 3915a0a92c55..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb +++ /dev/null @@ -1,519 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # A collection of Bigtable {::Google::Cloud::Bigtable::Admin::V2::Table Tables} and - # the resources that serve them. - # All tables in an instance are served from all - # {::Google::Cloud::Bigtable::Admin::V2::Cluster Clusters} in the instance. - # @!attribute [rw] name - # @return [::String] - # The unique name of the instance. Values are of the form - # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - # @!attribute [rw] display_name - # @return [::String] - # Required. The descriptive name for this instance as it appears in UIs. - # Can be changed at any time, but should be kept globally unique - # to avoid confusion. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::State] - # Output only. The current state of the instance. - # @!attribute [rw] type - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] - # The type of the instance. Defaults to `PRODUCTION`. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Labels are a flexible and lightweight mechanism for organizing cloud - # resources into groups that reflect a customer's organizational needs and - # deployment strategies. They can be used to filter resources and aggregate - # metrics. - # - # * Label keys must be between 1 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - # * Label values must be between 0 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - # * No more than 64 labels can be associated with a given resource. - # * Keys and values must both be under 128 bytes. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. A commit timestamp representing when this Instance was - # created. For instances created before this field was added (August 2021), - # this value is `seconds: 0, nanos: 1`. - # @!attribute [r] satisfies_pzs - # @return [::Boolean] - # Output only. Reserved for future use. - # @!attribute [r] satisfies_pzi - # @return [::Boolean] - # Output only. Reserved for future use. - # @!attribute [rw] tags - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Input only. Immutable. Tag keys/values directly bound to this - # resource. For example: - # - "123/environment": "production", - # - "123/costCenter": "marketing" - # - # Tags and Labels (above) are both used to bind metadata to resources, with - # different use-cases. See - # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - # in-depth overview on the difference between tags and labels. - class Instance - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TagsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible states of an instance. - module State - # The state of the instance could not be determined. - STATE_NOT_KNOWN = 0 - - # The instance has been successfully created and can serve requests - # to its tables. - READY = 1 - - # The instance is currently being created, and may be destroyed - # if the creation process encounters an error. - CREATING = 2 - end - - # The type of the instance. - module Type - # The type of the instance is unspecified. If set when creating an - # instance, a `PRODUCTION` instance will be created. If set when updating - # an instance, the type will be left unchanged. - TYPE_UNSPECIFIED = 0 - - # An instance meant for production use. `serve_nodes` must be set - # on the cluster. - PRODUCTION = 1 - - # DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces - # a higher minimum node count than DEVELOPMENT. - DEVELOPMENT = 2 - end - end - - # The Autoscaling targets for a Cluster. These determine the recommended nodes. - # @!attribute [rw] cpu_utilization_percent - # @return [::Integer] - # The cpu utilization that the Autoscaler should be trying to achieve. - # This number is on a scale from 0 (no utilization) to - # 100 (total utilization), and is limited between 10 and 80, otherwise it - # will return INVALID_ARGUMENT error. - # @!attribute [rw] storage_utilization_gib_per_node - # @return [::Integer] - # The storage utilization that the Autoscaler should be trying to achieve. - # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD - # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, - # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, - # it will be treated as if it were set to the default value: 2560 for SSD, - # 8192 for HDD. - class AutoscalingTargets - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Limits for the number of nodes a Cluster can autoscale up/down to. - # @!attribute [rw] min_serve_nodes - # @return [::Integer] - # Required. Minimum number of nodes to scale down to. - # @!attribute [rw] max_serve_nodes - # @return [::Integer] - # Required. Maximum number of nodes to scale up to. - class AutoscalingLimits - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resizable group of nodes in a particular cloud location, capable - # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent - # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}. - # @!attribute [rw] name - # @return [::String] - # The unique name of the cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - # @!attribute [rw] location - # @return [::String] - # Immutable. The location where this cluster's nodes and storage reside. For - # best performance, clients should be located as close as possible to this - # cluster. Currently only zones are supported, so values should be of the - # form `projects/{project}/locations/{zone}`. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::State] - # Output only. The current state of the cluster. - # @!attribute [rw] serve_nodes - # @return [::Integer] - # The number of nodes in the cluster. If no value is set, - # Cloud Bigtable automatically allocates nodes based on your data footprint - # and optimized for 50% storage utilization. - # @!attribute [rw] node_scaling_factor - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] - # Immutable. The node scaling factor of this cluster. - # @!attribute [rw] cluster_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig] - # Configuration for this cluster. - # @!attribute [rw] default_storage_type - # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType] - # Immutable. The type of storage used by this cluster to serve its - # parent instance's tables, unless explicitly overridden. - # @!attribute [rw] encryption_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig] - # Immutable. The encryption configuration for CMEK-protected clusters. - class Cluster - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Autoscaling config for a cluster. - # @!attribute [rw] autoscaling_limits - # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits] - # Required. Autoscaling limits for this cluster. - # @!attribute [rw] autoscaling_targets - # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets] - # Required. Autoscaling targets for this cluster. - class ClusterAutoscalingConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Configuration for a cluster. - # @!attribute [rw] cluster_autoscaling_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig] - # Autoscaling configuration for this cluster. - class ClusterConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected - # cluster. - # @!attribute [rw] kms_key_name - # @return [::String] - # Describes the Cloud KMS encryption key that will be used to protect the - # destination Bigtable cluster. The requirements for this key are: - # 1) The Cloud Bigtable service account associated with the project that - # contains this cluster must be granted the - # `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. - # 2) Only regional keys can be used and the region of the CMEK key must - # match the region of the cluster. - # Values are of the form - # `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` - class EncryptionConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible states of a cluster. - module State - # The state of the cluster could not be determined. - STATE_NOT_KNOWN = 0 - - # The cluster has been successfully created and is ready to serve requests. - READY = 1 - - # The cluster is currently being created, and may be destroyed - # if the creation process encounters an error. - # A cluster may not be able to serve requests while being created. - CREATING = 2 - - # The cluster is currently being resized, and may revert to its previous - # node count if the process encounters an error. - # A cluster is still capable of serving requests while being resized, - # but may exhibit performance as if its number of allocated nodes is - # between the starting and requested states. - RESIZING = 3 - - # The cluster has no backing nodes. The data (tables) still - # exist, but no operations can be performed on the cluster. - DISABLED = 4 - end - - # Possible node scaling factors of the clusters. Node scaling delivers better - # latency and more throughput by removing node boundaries. - module NodeScalingFactor - # No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. - NODE_SCALING_FACTOR_UNSPECIFIED = 0 - - # The cluster is running with a scaling factor of 1. - NODE_SCALING_FACTOR_1X = 1 - - # The cluster is running with a scaling factor of 2. - # All node count values must be in increments of 2 with this scaling factor - # enabled, otherwise an INVALID_ARGUMENT error will be returned. - NODE_SCALING_FACTOR_2X = 2 - end - end - - # A configuration object describing how Cloud Bigtable should treat traffic - # from a particular end user application. - # @!attribute [rw] name - # @return [::String] - # The unique name of the app profile. Values are of the form - # `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # @!attribute [rw] etag - # @return [::String] - # Strongly validated etag for optimistic concurrency control. Preserve the - # value returned from `GetAppProfile` when calling `UpdateAppProfile` to - # fail the request if there has been a modification in the mean time. The - # `update_mask` of the request need not include `etag` for this protection - # to apply. - # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and - # [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more - # details. - # @!attribute [rw] description - # @return [::String] - # Long form description of the use case for this AppProfile. - # @!attribute [rw] multi_cluster_routing_use_any - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny] - # Use a multi-cluster routing policy. - # - # Note: The following fields are mutually exclusive: `multi_cluster_routing_use_any`, `single_cluster_routing`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] single_cluster_routing - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting] - # Use a single-cluster routing policy. - # - # Note: The following fields are mutually exclusive: `single_cluster_routing`, `multi_cluster_routing_use_any`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] priority - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] - # This field has been deprecated in favor of `standard_isolation.priority`. - # If you set this field, `standard_isolation.priority` will be set instead. - # - # The priority of requests sent using this app profile. - # - # Note: The following fields are mutually exclusive: `priority`, `standard_isolation`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] standard_isolation - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::StandardIsolation] - # The standard options used for isolating this app profile's traffic from - # other use cases. - # - # Note: The following fields are mutually exclusive: `standard_isolation`, `priority`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_boost_isolation_read_only - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly] - # Specifies that this app profile is intended for read-only usage via the - # Data Boost feature. - # - # Note: The following fields are mutually exclusive: `data_boost_isolation_read_only`, `priority`, `standard_isolation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class AppProfile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Read/write requests are routed to the nearest cluster in the instance, and - # will fail over to the nearest cluster that is available in the event of - # transient errors or delays. Clusters in a region are considered - # equidistant. Choosing this option sacrifices read-your-writes consistency - # to improve availability. - # @!attribute [rw] cluster_ids - # @return [::Array<::String>] - # The set of clusters to route to. The order is ignored; clusters will be - # tried in order of distance. If left empty, all clusters are eligible. - # @!attribute [rw] row_affinity - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity] - # Row affinity sticky routing based on the row key of the request. - # Requests that span multiple rows are routed non-deterministically. - class MultiClusterRoutingUseAny - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # If enabled, Bigtable will route the request based on the row key of the - # request, rather than randomly. Instead, each row key will be assigned - # to a cluster, and will stick to that cluster. If clusters are added or - # removed, then this may affect which row keys stick to which clusters. - # To avoid this, users can use a cluster group to specify which clusters - # are to be used. In this case, new clusters that are not a part of the - # cluster group will not be routed to, and routing will be unaffected by - # the new cluster. Moreover, clusters specified in the cluster group cannot - # be deleted unless removed from the cluster group. - class RowAffinity - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Unconditionally routes all read/write requests to a specific cluster. - # This option preserves read-your-writes consistency but does not improve - # availability. - # @!attribute [rw] cluster_id - # @return [::String] - # The cluster to which read/write requests should be routed. - # @!attribute [rw] allow_transactional_writes - # @return [::Boolean] - # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are - # allowed by this app profile. It is unsafe to send these requests to - # the same table/row/column in multiple clusters. - class SingleClusterRouting - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Standard options for isolating this app profile's traffic from other use - # cases. - # @!attribute [rw] priority - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] - # The priority of requests sent using this app profile. - class StandardIsolation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data Boost is a serverless compute capability that lets you run - # high-throughput read jobs and queries on your Bigtable data, without - # impacting the performance of the clusters that handle your application - # traffic. Data Boost supports read-only use cases with single-cluster - # routing. - # @!attribute [rw] compute_billing_owner - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner] - # The Compute Billing Owner for this Data Boost App Profile. - class DataBoostIsolationReadOnly - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Compute Billing Owner specifies how usage should be accounted when using - # Data Boost. Compute Billing Owner also configures which Cloud Project is - # charged for relevant quota. - module ComputeBillingOwner - # Unspecified value. - COMPUTE_BILLING_OWNER_UNSPECIFIED = 0 - - # The host Cloud Project containing the targeted Bigtable Instance / - # Table pays for compute. - HOST_PAYS = 1 - end - end - - # Possible priorities for an app profile. Note that higher priority writes - # can sometimes queue behind lower priority writes to the same tablet, as - # writes must be strictly sequenced in the durability log. - module Priority - # Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. - PRIORITY_UNSPECIFIED = 0 - - PRIORITY_LOW = 1 - - PRIORITY_MEDIUM = 2 - - PRIORITY_HIGH = 3 - end - end - - # A tablet is a defined by a start and end key and is explained in - # https://cloud.google.com/bigtable/docs/overview#architecture and - # https://cloud.google.com/bigtable/docs/performance#optimization. - # A Hot tablet is a tablet that exhibits high average cpu usage during the time - # interval from start time to end time. - # @!attribute [rw] name - # @return [::String] - # The unique name of the hot tablet. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. - # @!attribute [rw] table_name - # @return [::String] - # Name of the table that contains the tablet. Values are of the form - # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The start time of the hot tablet. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The end time of the hot tablet. - # @!attribute [rw] start_key - # @return [::String] - # Tablet Start Key (inclusive). - # @!attribute [rw] end_key - # @return [::String] - # Tablet End Key (inclusive). - # @!attribute [r] node_cpu_usage_percent - # @return [::Float] - # Output only. The average CPU usage spent by a node on this tablet over the - # start_time to end_time time range. The percentage is the amount of CPU used - # by the node to serve the tablet, from 0% (tablet was not interacted with) - # to 100% (the node spent all cycles serving the hot tablet). - class HotTablet - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A SQL logical view object that can be referenced in SQL queries. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name of the logical view. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - # @!attribute [rw] query - # @return [::String] - # Required. The logical view's select query. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this logical view. - # This may be sent on update requests to ensure that the client has an - # up-to-date value before proceeding. The server returns an ABORTED error on - # a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Optional. Set to true to make the LogicalView protected against deletion. - class LogicalView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A materialized view object that can be referenced in SQL queries. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name of the materialized view. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - # @!attribute [rw] query - # @return [::String] - # Required. Immutable. The materialized view's select query. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this materialized view. - # This may be sent on update requests to ensure that the client has an - # up-to-date value before proceeding. The server returns an ABORTED error on - # a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the MaterializedView protected against deletion. - class MaterializedView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb deleted file mode 100644 index a0aaeed8b974..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb +++ /dev/null @@ -1,741 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Information about a table restore. - # @!attribute [rw] source_type - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] - # The type of the restore source. - # @!attribute [rw] backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # Information about the backup used to restore the table. The backup - # may no longer exist. - class RestoreInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Change stream configuration. - # @!attribute [rw] retention_period - # @return [::Google::Protobuf::Duration] - # How long the change stream should be retained. Change stream data older - # than the retention period will not be returned when reading the change - # stream from the table. - # Values must be at least 1 day and at most 7 days, and will be truncated to - # microsecond granularity. - class ChangeStreamConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A collection of user data indexed by row, column, and timestamp. - # Each table is served using the resources of its parent cluster. - # @!attribute [rw] name - # @return [::String] - # The unique name of the table. Values are of the form - # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` - # @!attribute [r] cluster_states - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState}] - # Output only. Map from cluster ID to per-cluster table state. - # If it could not be determined whether or not the table has data in a - # particular cluster (for example, if its zone is unavailable), then - # there will be an entry for the cluster with UNKNOWN `replication_status`. - # Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - # @!attribute [rw] column_families - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::ColumnFamily}] - # The column families configured for this table, mapped by column family ID. - # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` - # @!attribute [rw] granularity - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::TimestampGranularity] - # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored - # in this table. Timestamps not matching the granularity will be rejected. If - # unspecified at creation time, the value will be set to `MILLIS`. Views: - # `SCHEMA_VIEW`, `FULL`. - # @!attribute [r] restore_info - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreInfo] - # Output only. If this table was restored from another data source (e.g. a - # backup), this field will be populated with information about the restore. - # @!attribute [rw] change_stream_config - # @return [::Google::Cloud::Bigtable::Admin::V2::ChangeStreamConfig] - # If specified, enable the change stream on this table. - # Otherwise, the change stream is disabled and the change stream is not - # retained. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the table protected against data loss. i.e. deleting - # the following resources through Admin APIs are prohibited: - # - # * The table. - # * The column families in the table. - # * The instance containing the table. - # - # Note one can still delete the data stored in the table through Data APIs. - # @!attribute [rw] automated_backup_policy - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::AutomatedBackupPolicy] - # If specified, automated backups are enabled for this table. - # Otherwise, automated backups are disabled. - # @!attribute [rw] tiered_storage_config - # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageConfig] - # Rules to specify what data is stored in each storage tier. - # Different tiers store data differently, providing different trade-offs - # between cost and performance. Different parts of a table can be stored - # separately on different tiers. - # If a config is specified, tiered storage is enabled for this table. - # Otherwise, tiered storage is disabled. - # Only SSD instances can configure tiered storage. - # @!attribute [rw] row_key_schema - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] - # The row key schema for this table. The schema is used to decode the raw row - # key bytes into a structured format. The order of field declarations in this - # schema is important, as it reflects how the raw row key bytes are - # structured. Currently, this only affects how the key is read via a - # GoogleSQL query from the ExecuteQuery API. - # - # For a SQL query, the _key column is still read as raw bytes. But queries - # can reference the key fields by name, which will be decoded from _key using - # provided type and encoding. Queries that reference key fields will fail if - # they encounter an invalid row key. - # - # For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the - # following schema: - # { - # fields { - # field_name: "id" - # type { string { encoding: utf8_bytes \\{} } } - # } - # fields { - # field_name: "date" - # type { string { encoding: utf8_bytes \\{} } } - # } - # fields { - # field_name: "product_code" - # type { int64 { encoding: big_endian_bytes \\{} } } - # } - # encoding { delimited_bytes { delimiter: "#" } } - # } - # - # The decoded key parts would be: - # id = "some_id", date = "2024-04-30", product_code = 1245427 - # The query "SELECT _key, product_code FROM table" will return two columns: - # /------------------------------------------------------\ - # | _key | product_code | - # | --------------------------------------|--------------| - # | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | - # \------------------------------------------------------/ - # - # The schema has the following invariants: - # (1) The decoded field values are order-preserved. For read, the field - # values will be decoded in sorted mode from the raw bytes. - # (2) Every field in the schema must specify a non-empty name. - # (3) Every field must specify a type with an associated encoding. The type - # is limited to scalar types only: Array, Map, Aggregate, and Struct are not - # allowed. - # (4) The field names must not collide with existing column family - # names and reserved keywords "_key" and "_timestamp". - # - # The following update operations are allowed for row_key_schema: - # - Update from an empty schema to a new schema. - # - Remove the existing schema. This operation requires setting the - # `ignore_warnings` flag to `true`, since it might be a backward - # incompatible change. Without the flag, the update request will fail with - # an INVALID_ARGUMENT error. - # Any other row key schema update operation (e.g. update existing schema - # columns names or types) is currently unsupported. - class Table - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The state of a table's data in a particular cluster. - # @!attribute [r] replication_state - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState::ReplicationState] - # Output only. The state of replication for the table in this cluster. - # @!attribute [r] encryption_info - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo>] - # Output only. The encryption information for the table in this cluster. - # If the encryption key protecting this resource is customer managed, then - # its version can be rotated in Cloud Key Management Service (Cloud KMS). - # The primary version of the key and its status will be reflected here when - # changes propagate from Cloud KMS. - class ClusterState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Table replication states. - module ReplicationState - # The replication state of the table is unknown in this cluster. - STATE_NOT_KNOWN = 0 - - # The cluster was recently created, and the table must finish copying - # over pre-existing data from other clusters before it can begin - # receiving live replication updates and serving Data API requests. - INITIALIZING = 1 - - # The table is temporarily unable to serve Data API requests from this - # cluster due to planned internal maintenance. - PLANNED_MAINTENANCE = 2 - - # The table is temporarily unable to serve Data API requests from this - # cluster due to unplanned or emergency maintenance. - UNPLANNED_MAINTENANCE = 3 - - # The table can serve Data API requests from this cluster. Depending on - # replication delay, reads may not immediately reflect the state of the - # table in other clusters. - READY = 4 - - # The table is fully created and ready for use after a restore, and is - # being optimized for performance. When optimizations are complete, the - # table will transition to `READY` state. - READY_OPTIMIZING = 5 - end - end - - # Defines an automated backup policy for a table - # @!attribute [rw] retention_period - # @return [::Google::Protobuf::Duration] - # Required. How long the automated backups should be retained. Values must - # be at least 3 days and at most 90 days. - # @!attribute [rw] frequency - # @return [::Google::Protobuf::Duration] - # How frequently automated backups should occur. The only supported value - # at this time is 24 hours. An undefined frequency is treated as 24 hours. - # @!attribute [rw] locations - # @return [::Array<::String>] - # Optional. A list of Cloud Bigtable zones where automated backups are - # allowed to be created. If empty, automated backups will be created in all - # zones of the instance. Locations are in the format - # `projects/{project}/locations/{zone}`. - # This field can only set for tables in Enterprise Plus instances. - class AutomatedBackupPolicy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState] - class ClusterStatesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - class ColumnFamiliesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible timestamp granularities to use when keeping multiple versions - # of data in a table. - module TimestampGranularity - # The user did not specify a granularity. Should not be returned. - # When specified during table creation, MILLIS will be used. - TIMESTAMP_GRANULARITY_UNSPECIFIED = 0 - - # The table keeps data versioned at a granularity of 1ms. - MILLIS = 1 - end - - # Defines a view over a table's fields. - module View - # Uses the default view for each method as documented in its request. - VIEW_UNSPECIFIED = 0 - - # Only populates `name`. - NAME_ONLY = 1 - - # Only populates `name` and fields related to the table's schema. - SCHEMA_VIEW = 2 - - # Only populates `name` and fields related to the table's replication - # state. - REPLICATION_VIEW = 3 - - # Only populates `name` and fields related to the table's encryption state. - ENCRYPTION_VIEW = 5 - - # Populates all fields. - FULL = 4 - end - end - - # AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users - # can configure access to each Authorized View independently from the table and - # use the existing Data APIs to access the subset of data. - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of this AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - # @!attribute [rw] subset_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::SubsetView] - # An AuthorizedView permitting access to an explicit subset of a Table. - # @!attribute [rw] etag - # @return [::String] - # The etag for this AuthorizedView. - # If this is provided on update, it must match the server's etag. The server - # returns ABORTED error on a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the AuthorizedView protected against deletion. - # The parent Table and containing Instance cannot be deleted if an - # AuthorizedView has this bit set. - class AuthorizedView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Subsets of a column family that are included in this AuthorizedView. - # @!attribute [rw] qualifiers - # @return [::Array<::String>] - # Individual exact column qualifiers to be included in the AuthorizedView. - # @!attribute [rw] qualifier_prefixes - # @return [::Array<::String>] - # Prefixes for qualifiers to be included in the AuthorizedView. Every - # qualifier starting with one of these prefixes is included in the - # AuthorizedView. To provide access to all qualifiers, include the empty - # string as a prefix - # (""). - class FamilySubsets - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a simple AuthorizedView that is a subset of the underlying Table. - # @!attribute [rw] row_prefixes - # @return [::Array<::String>] - # Row prefixes to be included in the AuthorizedView. - # To provide access to all rows, include the empty string as a prefix (""). - # @!attribute [rw] family_subsets - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets}] - # Map from column family name to the columns in this family to be included - # in the AuthorizedView. - class SubsetView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets] - class FamilySubsetsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Defines a subset of an AuthorizedView's fields. - module ResponseView - # Uses the default view for each method as documented in the request. - RESPONSE_VIEW_UNSPECIFIED = 0 - - # Only populates `name`. - NAME_ONLY = 1 - - # Only populates the AuthorizedView's basic metadata. This includes: - # name, deletion_protection, etag. - BASIC = 2 - - # Populates every fields. - FULL = 3 - end - end - - # A set of columns within a table which share a common configuration. - # @!attribute [rw] gc_rule - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule] - # Garbage collection rule specified as a protobuf. - # Must serialize to at most 500 bytes. - # - # NOTE: Garbage collection executes opportunistically in the background, and - # so it's possible for reads to return a cell even if it matches the active - # GC expression for its family. - # @!attribute [rw] value_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of data stored in each of this family's cell values, including its - # full encoding. If omitted, the family only serves raw untyped bytes. - # - # For now, only the `Aggregate` type is supported. - # - # `Aggregate` can only be set at family creation and is immutable afterwards. - # - # - # If `value_type` is `Aggregate`, written data must be compatible with: - # * `value_type.input_type` for `AddInput` mutations - class ColumnFamily - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rule for determining which cells to delete during garbage collection. - # @!attribute [rw] max_num_versions - # @return [::Integer] - # Delete all cells in a column except the most recent N. - # - # Note: The following fields are mutually exclusive: `max_num_versions`, `max_age`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] max_age - # @return [::Google::Protobuf::Duration] - # Delete cells in a column older than the given age. - # Values must be at least one millisecond, and will be truncated to - # microsecond granularity. - # - # Note: The following fields are mutually exclusive: `max_age`, `max_num_versions`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] intersection - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Intersection] - # Delete cells that would be deleted by every nested rule. - # - # Note: The following fields are mutually exclusive: `intersection`, `max_num_versions`, `max_age`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] union - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Union] - # Delete cells that would be deleted by any nested rule. - # - # Note: The following fields are mutually exclusive: `union`, `max_num_versions`, `max_age`, `intersection`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class GcRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A GcRule which deletes cells matching all of the given rules. - # @!attribute [rw] rules - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] - # Only delete cells which would be deleted by every element of `rules`. - class Intersection - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A GcRule which deletes cells matching any of the given rules. - # @!attribute [rw] rules - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] - # Delete cells which would be deleted by any element of `rules`. - class Union - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Encryption information for a given resource. - # If this resource is protected with customer managed encryption, the in-use - # Cloud Key Management Service (Cloud KMS) key version is specified along with - # its status. - # @!attribute [r] encryption_type - # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo::EncryptionType] - # Output only. The type of encryption used to protect this resource. - # @!attribute [r] encryption_status - # @return [::Google::Rpc::Status] - # Output only. The status of encrypt/decrypt calls on underlying data for - # this resource. Regardless of status, the existing data is always encrypted - # at rest. - # @!attribute [r] kms_key_version - # @return [::String] - # Output only. The version of the Cloud KMS key specified in the parent - # cluster that is in use for the data underlying this table. - class EncryptionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible encryption types for a resource. - module EncryptionType - # Encryption type was not specified, though data at rest remains encrypted. - ENCRYPTION_TYPE_UNSPECIFIED = 0 - - # The data backing this resource is encrypted at rest with a key that is - # fully managed by Google. No key version or status will be populated. - # This is the default state. - GOOGLE_DEFAULT_ENCRYPTION = 1 - - # The data backing this resource is encrypted at rest with a key that is - # managed by the customer. - # The in-use version of the key and its status are populated for - # CMEK-protected tables. - # CMEK-protected backups are pinned to the key version that was in use at - # the time the backup was taken. This key version is populated but its - # status is not tracked and is reported as `UNKNOWN`. - CUSTOMER_MANAGED_ENCRYPTION = 2 - end - end - - # A snapshot of a table at a particular time. A snapshot can be used as a - # checkpoint for data restoration or a data source for a new table. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # The unique name of the snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # @!attribute [r] source_table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Output only. The source table at the time the snapshot was taken. - # @!attribute [r] data_size_bytes - # @return [::Integer] - # Output only. The size of the data in the source table at the time the - # snapshot was taken. In some cases, this value may be computed - # asynchronously via a background process and a placeholder of 0 will be used - # in the meantime. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time when the snapshot is created. - # @!attribute [rw] delete_time - # @return [::Google::Protobuf::Timestamp] - # The time when the snapshot will be deleted. The maximum amount of time a - # snapshot can stay active is 365 days. If 'ttl' is not specified, - # the default maximum of 365 days will be used. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot::State] - # Output only. The current state of the snapshot. - # @!attribute [rw] description - # @return [::String] - # Description of the snapshot. - class Snapshot - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible states of a snapshot. - module State - # The state of the snapshot could not be determined. - STATE_NOT_KNOWN = 0 - - # The snapshot has been successfully created and can serve all requests. - READY = 1 - - # The snapshot is currently being created, and may be destroyed if the - # creation process encounters an error. A snapshot may not be restored to a - # table while it is being created. - CREATING = 2 - end - end - - # A backup of a Cloud Bigtable table. - # @!attribute [rw] name - # @return [::String] - # A globally unique identifier for the backup which cannot be - # changed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/ - # backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - # The final segment of the name must be between 1 and 50 characters - # in length. - # - # The backup is stored in the cluster identified by the prefix of the backup - # name of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] source_table - # @return [::String] - # Required. Immutable. Name of the table from which this backup was created. - # This needs to be in the same instance as the backup. Values are of the form - # `projects/{project}/instances/{instance}/tables/{source_table}`. - # @!attribute [r] source_backup - # @return [::String] - # Output only. Name of the backup from which this backup was copied. If a - # backup is not created by copying a backup, this field will be empty. Values - # are of the form: - # projects//instances//clusters//backups/ - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # Required. The expiration time of the backup. - # When creating a backup or updating its `expire_time`, the value must be - # greater than the backup creation time by: - # - At least 6 hours - # - At most 90 days - # - # Once the `expire_time` has passed, Cloud Bigtable will delete the backup. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. `start_time` is the time that the backup was started - # (i.e. approximately the time the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup} - # request is received). The row data in this backup will be no older than - # this timestamp. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. `end_time` is the time that the backup was finished. The row - # data in the backup will be no newer than this timestamp. - # @!attribute [r] size_bytes - # @return [::Integer] - # Output only. Size of the backup in bytes. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State] - # Output only. The current state of the backup. - # @!attribute [r] encryption_info - # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo] - # Output only. The encryption information for the backup. - # @!attribute [rw] backup_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType] - # Indicates the backup type of the backup. - # @!attribute [rw] hot_to_standard_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the hot backup will be converted to a standard backup. - # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the - # hot backup to a standard backup. This value must be greater than the backup - # creation time by: - # - At least 24 hours - # - # This field only applies for hot backups. When creating or updating a - # standard backup, attempting to set this field will fail the request. - class Backup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the current state of the backup. - module State - # Not specified. - STATE_UNSPECIFIED = 0 - - # The pending backup is still being created. Operations on the - # backup may fail with `FAILED_PRECONDITION` in this state. - CREATING = 1 - - # The backup is complete and ready for use. - READY = 2 - end - - # The type of the backup. - module BackupType - # Not specified. - BACKUP_TYPE_UNSPECIFIED = 0 - - # The default type for Cloud Bigtable managed backups. Supported for - # backups created in both HDD and SSD instances. Requires optimization when - # restored to a table in an SSD instance. - STANDARD = 1 - - # A backup type with faster restore to SSD performance. Only supported for - # backups created in SSD instances. A new SSD table restored from a hot - # backup reaches production performance more quickly than a standard - # backup. - HOT = 2 - end - end - - # Information about a backup. - # @!attribute [r] backup - # @return [::String] - # Output only. Name of the backup. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time that the backup was started. Row data in the backup - # will be no older than this timestamp. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. This time that the backup was finished. Row data in the - # backup will be no newer than this timestamp. - # @!attribute [r] source_table - # @return [::String] - # Output only. Name of the table the backup was created from. - # @!attribute [r] source_backup - # @return [::String] - # Output only. Name of the backup from which this backup was copied. If a - # backup is not created by copying a backup, this field will be empty. Values - # are of the form: - # projects//instances//clusters//backups/ - class BackupInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Config for tiered storage. - # A valid config must have a valid TieredStorageRule. Otherwise the whole - # TieredStorageConfig must be unset. - # By default all data is stored in the SSD tier (only SSD instances can - # configure tiered storage). - # @!attribute [rw] infrequent_access - # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageRule] - # Rule to specify what data is stored in the infrequent access(IA) tier. - # The IA tier allows storing more data per node with reduced performance. - class TieredStorageConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rule to specify what data is stored in a storage tier. - # @!attribute [rw] include_if_older_than - # @return [::Google::Protobuf::Duration] - # Include cells older than the given age. - # For the infrequent access tier, this value must be at least 30 days. - class TieredStorageRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a protobuf schema. - # @!attribute [rw] proto_descriptors - # @return [::String] - # Required. Contains a protobuf-serialized - # [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), - # which could include multiple proto files. - # To generate it, [install](https://grpc.io/docs/protoc-installation/) and - # run `protoc` with - # `--include_imports` and `--descriptor_set_out`. For example, to generate - # for moon/shot/app.proto, run - # ``` - # $protoc --proto_path=/app_path --proto_path=/lib_path \ - # --include_imports \ - # --descriptor_set_out=descriptors.pb \ - # moon/shot/app.proto - # ``` - # For more details, see protobuffer [self - # description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). - class ProtoSchema - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A named collection of related schemas. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] proto_schema - # @return [::Google::Cloud::Bigtable::Admin::V2::ProtoSchema] - # Schema for Protobufs. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this schema bundle. - # This may be sent on update and delete requests to ensure the - # client has an up-to-date value before proceeding. The server - # returns an ABORTED error on a mismatched etag. - class SchemaBundle - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the type of the restore source. - module RestoreSourceType - # No restore associated. - RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 - - # A backup was used as the source of the restore. - BACKUP = 1 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb deleted file mode 100644 index 8a598f02b9ff..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb +++ /dev/null @@ -1,575 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # `Type` represents the type of data that is written to, read from, or stored - # in Bigtable. It is heavily based on the GoogleSQL standard to help maintain - # familiarity and consistency across products and features. - # - # For compatibility with Bigtable's existing untyped APIs, each `Type` includes - # an `Encoding` which describes how to convert to or from the underlying data. - # - # Each encoding can operate in one of two modes: - # - # - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` - # if and only if `X <= Y`. This is useful anywhere sort order is important, - # for example when encoding keys. - # - Distinct: In this mode, Bigtable guarantees that if `X != Y` then - # `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For - # example, both "\\{'foo': '1', 'bar': '2'}" and "\\{'bar': '2', 'foo': '1'}" - # are valid encodings of the same JSON value. - # - # The API clearly documents which mode is used wherever an encoding can be - # configured. Each encoding also documents which values are supported in which - # modes. For example, when encoding INT64 as a numeric STRING, negative numbers - # cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but - # `STRING("-00001") > STRING("00001")`. - # @!attribute [rw] bytes_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] - # Bytes - # - # Note: The following fields are mutually exclusive: `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] string_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String] - # String - # - # Note: The following fields are mutually exclusive: `string_type`, `bytes_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] int64_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64] - # Int64 - # - # Note: The following fields are mutually exclusive: `int64_type`, `bytes_type`, `string_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float32_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float32] - # Float32 - # - # Note: The following fields are mutually exclusive: `float32_type`, `bytes_type`, `string_type`, `int64_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float64_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float64] - # Float64 - # - # Note: The following fields are mutually exclusive: `float64_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bool] - # Bool - # - # Note: The following fields are mutually exclusive: `bool_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] timestamp_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp] - # Timestamp - # - # Note: The following fields are mutually exclusive: `timestamp_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] date_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Date] - # Date - # - # Note: The following fields are mutually exclusive: `date_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] aggregate_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate] - # Aggregate - # - # Note: The following fields are mutually exclusive: `aggregate_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] struct_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] - # Struct - # - # Note: The following fields are mutually exclusive: `struct_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] array_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Array] - # Array - # - # Note: The following fields are mutually exclusive: `array_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] map_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Map] - # Map - # - # Note: The following fields are mutually exclusive: `map_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] proto_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Proto] - # Proto - # - # Note: The following fields are mutually exclusive: `proto_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] enum_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Enum] - # Enum - # - # Note: The following fields are mutually exclusive: `enum_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Type - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Bytes - # Values of type `Bytes` are stored in `Value.bytes_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding] - # The encoding to use when converting to or from lower level types. - class Bytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] raw - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding::Raw] - # Use `Raw` encoding. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Leaves the value as-is. - # - # Sorted mode: all values are supported. - # - # Distinct mode: all values are supported. - class Raw - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # String - # Values of type `String` are stored in `Value.string_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding] - # The encoding to use when converting to or from lower level types. - class String - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] utf8_raw - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Raw] - # Deprecated: if set, converts to an empty `utf8_bytes`. - # - # Note: The following fields are mutually exclusive: `utf8_raw`, `utf8_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] utf8_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Bytes] - # Use `Utf8Bytes` encoding. - # - # Note: The following fields are mutually exclusive: `utf8_bytes`, `utf8_raw`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Deprecated: prefer the equivalent `Utf8Bytes`. - # @deprecated This message is deprecated and may be removed in the next major version update. - class Utf8Raw - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UTF-8 encoding. - # - # Sorted mode: - # - All values are supported. - # - Code point order is preserved. - # - # Distinct mode: all values are supported. - # - # Compatible with: - # - # - BigQuery `TEXT` encoding - # - HBase `Bytes.toBytes` - # - Java `String#getBytes(StandardCharsets.UTF_8)` - class Utf8Bytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # Int64 - # Values of type `Int64` are stored in `Value.int_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] - # The encoding to use when converting to or from lower level types. - class Int64 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] big_endian_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::BigEndianBytes] - # Use `BigEndianBytes` encoding. - # - # Note: The following fields are mutually exclusive: `big_endian_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ordered_code_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::OrderedCodeBytes] - # Use `OrderedCodeBytes` encoding. - # - # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `big_endian_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Encodes the value as an 8-byte big-endian two's complement value. - # - # Sorted mode: non-negative values are supported. - # - # Distinct mode: all values are supported. - # - # Compatible with: - # - # - BigQuery `BINARY` encoding - # - HBase `Bytes.toBytes` - # - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` - # @!attribute [rw] bytes_type - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] - # Deprecated: ignored if set. - class BigEndianBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Encodes the value in a variable length binary format of up to 10 bytes. - # Values that are closer to zero use fewer bytes. - # - # Sorted mode: all values are supported. - # - # Distinct mode: all values are supported. - class OrderedCodeBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # bool - # Values of type `Bool` are stored in `Value.bool_value`. - class Bool - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Float32 - # Values of type `Float32` are stored in `Value.float_value`. - class Float32 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Float64 - # Values of type `Float64` are stored in `Value.float_value`. - class Float64 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Timestamp - # Values of type `Timestamp` are stored in `Value.timestamp_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp::Encoding] - # The encoding to use when converting to or from lower level types. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] unix_micros_int64 - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] - # Encodes the number of microseconds since the Unix epoch using the - # given `Int64` encoding. Values must be microsecond-aligned. - # - # Compatible with: - # - # - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Date - # Values of type `Date` are stored in `Value.date_value`. - class Date - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A structured data value, consisting of fields which map to dynamically - # typed values. - # Values of type `Struct` are stored in `Value.array_value` where entries are - # in the same order and number as `field_types`. - # @!attribute [rw] fields - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Field>] - # The names and types of the fields in this struct. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding] - # The encoding to use when converting to or from lower level types. - class Struct - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A struct field and its type. - # @!attribute [rw] field_name - # @return [::String] - # The field name (optional). Fields without a `field_name` are considered - # anonymous and cannot be referenced by name. - # @!attribute [rw] type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of values in this field. - class Field - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rules used to convert to or from lower level types. - # @!attribute [rw] singleton - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::Singleton] - # Use `Singleton` encoding. - # - # Note: The following fields are mutually exclusive: `singleton`, `delimited_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delimited_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::DelimitedBytes] - # Use `DelimitedBytes` encoding. - # - # Note: The following fields are mutually exclusive: `delimited_bytes`, `singleton`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ordered_code_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::OrderedCodeBytes] - # User `OrderedCodeBytes` encoding. - # - # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `singleton`, `delimited_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Uses the encoding of `fields[0].type` as-is. - # Only valid if `fields.size == 1`. - class Singleton - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Fields are encoded independently and concatenated with a configurable - # `delimiter` in between. - # - # A struct with no fields defined is encoded as a single `delimiter`. - # - # Sorted mode: - # - # - Fields are encoded in sorted mode. - # - Encoded field values must not contain any bytes <= `delimiter[0]` - # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - # - # Distinct mode: - # - # - Fields are encoded in distinct mode. - # - Encoded field values must not contain `delimiter[0]`. - # @!attribute [rw] delimiter - # @return [::String] - # Byte sequence used to delimit concatenated fields. The delimiter must - # contain at least 1 character and at most 50 characters. - class DelimitedBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Fields are encoded independently and concatenated with the fixed byte - # pair \\{0x00, 0x01} in between. - # - # Any null (0x00) byte in an encoded field is replaced by the fixed byte - # pair \\{0x00, 0xFF}. - # - # Fields that encode to the empty string "" have special handling: - # - # - If *every* field encodes to "", or if the STRUCT has no fields - # defined, then the STRUCT is encoded as the fixed byte pair - # \\{0x00, 0x00}. - # - Otherwise, the STRUCT only encodes until the last non-empty field, - # omitting any trailing empty fields. Any empty fields that aren't - # omitted are replaced with the fixed byte pair \\{0x00, 0x00}. - # - # Examples: - # - # - STRUCT() -> "\00\00" - # - STRUCT("") -> "\00\00" - # - STRUCT("", "") -> "\00\00" - # - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" - # - STRUCT("A", "") -> "A" - # - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" - # - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" - # - # - # Since null bytes are always escaped, this encoding can cause size - # blowup for encodings like `Int64.BigEndianBytes` that are likely to - # produce many such bytes. - # - # Sorted mode: - # - # - Fields are encoded in sorted mode. - # - All values supported by the field encodings are allowed - # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - # - # Distinct mode: - # - # - Fields are encoded in distinct mode. - # - All values supported by the field encodings are allowed. - class OrderedCodeBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # A protobuf message type. - # Values of type `Proto` are stored in `Value.bytes_value`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # The ID of the schema bundle that this proto is defined in. - # @!attribute [rw] message_name - # @return [::String] - # The fully qualified name of the protobuf message, including package. In - # the format of "foo.bar.Message". - class Proto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A protobuf enum type. - # Values of type `Enum` are stored in `Value.int_value`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # The ID of the schema bundle that this enum is defined in. - # @!attribute [rw] enum_name - # @return [::String] - # The fully qualified name of the protobuf enum message, including package. - # In the format of "foo.bar.EnumMessage". - class Enum - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # An ordered list of elements of a given type. - # Values of type `Array` are stored in `Value.array_value`. - # @!attribute [rw] element_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of the elements in the array. This must not be `Array`. - class Array - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A mapping of keys to values of a given type. - # Values of type `Map` are stored in a `Value.array_value` where each entry - # is another `Value.array_value` with two elements (the key and the value, - # in that order). - # Normally encoded Map values won't have repeated keys, however, clients are - # expected to handle the case in which they do. If the same key appears - # multiple times, the _last_ value takes precedence. - # @!attribute [rw] key_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of a map key. - # Only `Bytes`, `String`, and `Int64` are allowed as key types. - # @!attribute [rw] value_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of the values in a map. - class Map - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A value that combines incremental updates into a summarized value. - # - # Data is never directly written or read using type `Aggregate`. Writes will - # provide either the `input_type` or `state_type`, and reads will always - # return the `state_type` . - # @!attribute [rw] input_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # Type of the inputs that are accumulated by this `Aggregate`, which must - # specify a full encoding. - # Use `AddInput` mutations to accumulate new inputs. - # @!attribute [r] state_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # Output only. Type that holds the internal accumulator state for the - # `Aggregate`. This is a function of the `input_type` and `aggregator` - # chosen, and will always specify a full encoding. - # @!attribute [rw] sum - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Sum] - # Sum aggregator. - # - # Note: The following fields are mutually exclusive: `sum`, `hllpp_unique_count`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] hllpp_unique_count - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount] - # HyperLogLogPlusPlusUniqueCount aggregator. - # - # Note: The following fields are mutually exclusive: `hllpp_unique_count`, `sum`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] max - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Max] - # Max aggregator. - # - # Note: The following fields are mutually exclusive: `max`, `sum`, `hllpp_unique_count`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] min - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Min] - # Min aggregator. - # - # Note: The following fields are mutually exclusive: `min`, `sum`, `hllpp_unique_count`, `max`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Aggregate - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Computes the sum of the input values. - # Allowed input: `Int64` - # State: same as input - class Sum - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes the max of the input values. - # Allowed input: `Int64` - # State: same as input - class Max - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes the min of the input values. - # Allowed input: `Int64` - # State: same as input - class Min - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes an approximate unique count over the input values. When using - # raw data as input, be careful to use a consistent encoding. Otherwise - # the same value encoded differently could count more than once, or two - # distinct values could count as identical. - # Input: Any, or omit for Raw - # State: TBD - # Special state conversions: `Int64` (the unique count estimate) - class HyperLogLogPlusPlusUniqueCount - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb deleted file mode 100644 index 5445c77f8258..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb +++ /dev/null @@ -1,87 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # Request message for `SetIamPolicy` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] policy - # @return [::Google::Iam::V1::Policy] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - class SetIamPolicyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for `GetIamPolicy` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] options - # @return [::Google::Iam::V1::GetPolicyOptions] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - class GetIamPolicyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for `TestIamPermissions` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] permissions - # @return [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - class TestIamPermissionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for `TestIamPermissions` method. - # @!attribute [rw] permissions - # @return [::Array<::String>] - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - class TestIamPermissionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb deleted file mode 100644 index 60713d995b86..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # Encapsulates settings provided to GetIamPolicy. - # @!attribute [rw] requested_policy_version - # @return [::Integer] - # Optional. The maximum policy version that will be used to format the - # policy. - # - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # - # Requests for policies with any conditional role bindings must specify - # version 3. Policies with no conditional role bindings may specify any valid - # value or leave the field unset. - # - # The policy in the response might use the policy version that you specified, - # or it might use a lower policy version. For example, if you specify version - # 3, but the policy has no conditional role bindings, the response uses - # version 1. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - class GetPolicyOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb deleted file mode 100644 index 999575b797df..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb +++ /dev/null @@ -1,426 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # - # - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members`, or principals, to a single `role`. Principals can be user - # accounts, service accounts, Google groups, and domains (such as G Suite). A - # `role` is a named list of permissions; each `role` can be an IAM predefined - # role or a user-created custom role. - # - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - # - # **JSON example:** - # - # ``` - # { - # "bindings": [ - # { - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # }, - # { - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": { - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", - # } - # } - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # } - # ``` - # - # **YAML example:** - # - # ``` - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # etag: BwWWja0YfJA= - # version: 3 - # ``` - # - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). - # @!attribute [rw] version - # @return [::Integer] - # Specifies the format of the policy. - # - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - # @!attribute [rw] bindings - # @return [::Array<::Google::Iam::V1::Binding>] - # Associates a list of `members`, or principals, with a `role`. Optionally, - # may specify a `condition` that determines how and when the `bindings` are - # applied. Each of the `bindings` must contain at least one principal. - # - # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - # of these principals can be Google groups. Each occurrence of a principal - # counts towards these limits. For example, if the `bindings` grant 50 - # different roles to `user:alice@example.com`, and not to any other - # principal, then you can add another 1,450 principals to the `bindings` in - # the `Policy`. - # @!attribute [rw] audit_configs - # @return [::Array<::Google::Iam::V1::AuditConfig>] - # Specifies cloud audit logging configuration for this policy. - # @!attribute [rw] etag - # @return [::String] - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - class Policy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Associates `members`, or principals, with a `role`. - # @!attribute [rw] role - # @return [::String] - # Role that is assigned to the list of `members`, or principals. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # @!attribute [rw] members - # @return [::Array<::String>] - # Specifies the principals requesting access for a Google Cloud resource. - # `members` can have the following values: - # - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # - # * `user:{emailid}`: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # - # - # * `serviceAccount:{emailid}`: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # - # * `group:{emailid}`: An email address that represents a Google group. - # For example, `admins@example.com`. - # - # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:{emailid}` and the recovered user - # retains the role in the binding. - # - # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:{emailid}` and the undeleted service account retains the - # role in the binding. - # - # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:{emailid}` and the - # recovered group retains the role in the binding. - # - # - # * `domain:{domain}`: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. - # @!attribute [rw] condition - # @return [::Google::Type::Expr] - # The condition that is associated with this binding. - # - # If the condition evaluates to `true`, then this binding applies to the - # current request. - # - # If the condition evaluates to `false`, then this binding does not apply to - # the current request. However, a different role binding might grant the same - # role to one or more of the principals in this binding. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - class Binding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # - # Example Policy with multiple AuditConfigs: - # - # { - # "audit_configs": [ - # { - # "service": "allServices", - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # }, - # { - # "log_type": "DATA_WRITE" - # }, - # { - # "log_type": "ADMIN_READ" - # } - # ] - # }, - # { - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ" - # }, - # { - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # } - # ] - # } - # ] - # } - # - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts `jose@example.com` from DATA_READ logging, and - # `aliya@example.com` from DATA_WRITE logging. - # @!attribute [rw] service - # @return [::String] - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # @!attribute [rw] audit_log_configs - # @return [::Array<::Google::Iam::V1::AuditLogConfig>] - # The configuration for logging of each type of permission. - class AuditConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Provides the configuration for logging a type of permissions. - # Example: - # - # { - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # }, - # { - # "log_type": "DATA_WRITE" - # } - # ] - # } - # - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. - # @!attribute [rw] log_type - # @return [::Google::Iam::V1::AuditLogConfig::LogType] - # The log type that this config enables. - # @!attribute [rw] exempted_members - # @return [::Array<::String>] - # Specifies the identities that do not cause logging for this type of - # permission. - # Follows the same format of - # [Binding.members][google.iam.v1.Binding.members]. - class AuditLogConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The list of valid permission types for which logging can be configured. - # Admin writes are always logged, and are not configurable. - module LogType - # Default case. Should never be this. - LOG_TYPE_UNSPECIFIED = 0 - - # Admin reads. Example: CloudIAM getIamPolicy - ADMIN_READ = 1 - - # Data writes. Example: CloudSQL Users create - DATA_WRITE = 2 - - # Data reads. Example: CloudSQL Users list - DATA_READ = 3 - end - end - - # The difference delta between two policies. - # @!attribute [rw] binding_deltas - # @return [::Array<::Google::Iam::V1::BindingDelta>] - # The delta for Bindings between two policies. - # @!attribute [rw] audit_config_deltas - # @return [::Array<::Google::Iam::V1::AuditConfigDelta>] - # The delta for AuditConfigs between two policies. - class PolicyDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # One delta entry for Binding. Each individual change (only one member in each - # entry) to a binding will be a separate entry. - # @!attribute [rw] action - # @return [::Google::Iam::V1::BindingDelta::Action] - # The action that was performed on a Binding. - # Required - # @!attribute [rw] role - # @return [::String] - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # @!attribute [rw] member - # @return [::String] - # A single identity requesting access for a Google Cloud resource. - # Follows the same format of Binding.members. - # Required - # @!attribute [rw] condition - # @return [::Google::Type::Expr] - # The condition that is associated with this binding. - class BindingDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of action performed on a Binding in a policy. - module Action - # Unspecified. - ACTION_UNSPECIFIED = 0 - - # Addition of a Binding. - ADD = 1 - - # Removal of a Binding. - REMOVE = 2 - end - end - - # One delta entry for AuditConfig. Each individual change (only one - # exempted_member in each entry) to a AuditConfig will be a separate entry. - # @!attribute [rw] action - # @return [::Google::Iam::V1::AuditConfigDelta::Action] - # The action that was performed on an audit configuration in a policy. - # Required - # @!attribute [rw] service - # @return [::String] - # Specifies a service that was configured for Cloud Audit Logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # Required - # @!attribute [rw] exempted_member - # @return [::String] - # A single identity that is exempted from "data access" audit - # logging for the `service` specified above. - # Follows the same format of Binding.members. - # @!attribute [rw] log_type - # @return [::String] - # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - # enabled, and cannot be configured. - # Required - class AuditConfigDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of action performed on an audit configuration in a policy. - module Action - # Unspecified. - ACTION_UNSPECIFIED = 0 - - # Addition of an audit configuration. - ADD = 1 - - # Removal of an audit configuration. - REMOVE = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb deleted file mode 100644 index 7a757f512165..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Longrunning - # This resource represents a long-running operation that is the result of a - # network API call. - # @!attribute [rw] name - # @return [::String] - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/{unique_id}`. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Any] - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # @!attribute [rw] done - # @return [::Boolean] - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. - # @!attribute [rw] error - # @return [::Google::Rpc::Status] - # The error result of the operation in case of failure or cancellation. - # - # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] response - # @return [::Google::Protobuf::Any] - # The normal, successful response of the operation. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. - # - # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Operation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.GetOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource. - class GetOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.ListOperations. - # @!attribute [rw] name - # @return [::String] - # The name of the operation's parent resource. - # @!attribute [rw] filter - # @return [::String] - # The standard list filter. - # @!attribute [rw] page_size - # @return [::Integer] - # The standard list page size. - # @!attribute [rw] page_token - # @return [::String] - # The standard list page token. - # @!attribute [rw] return_partial_success - # @return [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - class ListOperationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message for - # Operations.ListOperations. - # @!attribute [rw] operations - # @return [::Array<::Google::Longrunning::Operation>] - # A list of operations that matches the specified filter in the request. - # @!attribute [rw] next_page_token - # @return [::String] - # The standard List next-page token. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. Unreachable resources. Populated when the request sets - # `ListOperationsRequest.return_partial_success` and reads across - # collections e.g. when attempting to list all resources across all supported - # locations. - class ListOperationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.CancelOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be cancelled. - class CancelOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.DeleteOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be deleted. - class DeleteOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.WaitOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to wait on. - # @!attribute [rw] timeout - # @return [::Google::Protobuf::Duration] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - class WaitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A message representing the message types used by a long-running operation. - # - # Example: - # - # rpc Export(ExportRequest) returns (google.longrunning.Operation) { - # option (google.longrunning.operation_info) = { - # response_type: "ExportResponse" - # metadata_type: "ExportMetadata" - # }; - # } - # @!attribute [rw] response_type - # @return [::String] - # Required. The message name of the primary return type for this - # long-running operation. - # This type will be used to deserialize the LRO's response. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - # @!attribute [rw] metadata_type - # @return [::String] - # Required. The message name of the metadata type for this long-running - # operation. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - class OperationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb deleted file mode 100644 index 53e7733b6592..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # - # Example (Comparison): - # - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # - # Example (Equality): - # - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # - # Example (Logic): - # - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # - # Example (Data Manipulation): - # - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. - # @!attribute [rw] expression - # @return [::String] - # Textual representation of an expression in Common Expression Language - # syntax. - # @!attribute [rw] title - # @return [::String] - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # @!attribute [rw] description - # @return [::String] - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # @!attribute [rw] location - # @return [::String] - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - class Expr - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile deleted file mode 100644 index f88d2bf31b17..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-bigtable-admin-v2", path: "../" -else - gem "google-cloud-bigtable-admin-v2" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb deleted file mode 100644 index 60b0e44dae42..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile. -# -def create_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new - - # Call the create_app_profile method. - result = client.create_app_profile request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb deleted file mode 100644 index 1923dfa3b593..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster. -# -def create_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new - - # Call the create_cluster method. - result = client.create_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb deleted file mode 100644 index 9bfb53227c80..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance. -# -def create_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new - - # Call the create_instance method. - result = client.create_instance request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb deleted file mode 100644 index 7523e3a3df7f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view. -# -def create_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new - - # Call the create_logical_view method. - result = client.create_logical_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb deleted file mode 100644 index 99be7f04ca20..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view. -# -def create_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new - - # Call the create_materialized_view method. - result = client.create_materialized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb deleted file mode 100644 index be07699500ed..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile. -# -def delete_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new - - # Call the delete_app_profile method. - result = client.delete_app_profile request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb deleted file mode 100644 index ad008ded7e08..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster. -# -def delete_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new - - # Call the delete_cluster method. - result = client.delete_cluster request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb deleted file mode 100644 index f161dc0445dd..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance. -# -def delete_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new - - # Call the delete_instance method. - result = client.delete_instance request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb deleted file mode 100644 index f486e799a373..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view. -# -def delete_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new - - # Call the delete_logical_view method. - result = client.delete_logical_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb deleted file mode 100644 index 1e869b43c09d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view. -# -def delete_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new - - # Call the delete_materialized_view method. - result = client.delete_materialized_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb deleted file mode 100644 index a6b51fecf7b8..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile. -# -def get_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new - - # Call the get_app_profile method. - result = client.get_app_profile request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb deleted file mode 100644 index e3a302d2fe21..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster. -# -def get_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new - - # Call the get_cluster method. - result = client.get_cluster request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb deleted file mode 100644 index 69ab829b07a6..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_iam_policy call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb deleted file mode 100644 index ccd0595fe780..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance. -# -def get_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new - - # Call the get_instance method. - result = client.get_instance request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb deleted file mode 100644 index adfe7a736595..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view. -# -def get_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new - - # Call the get_logical_view method. - result = client.get_logical_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb deleted file mode 100644 index 6233ab496c0f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view. -# -def get_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new - - # Call the get_materialized_view method. - result = client.get_materialized_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb deleted file mode 100644 index 57b0097b3518..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_app_profiles call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles. -# -def list_app_profiles - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new - - # Call the list_app_profiles method. - result = client.list_app_profiles request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb deleted file mode 100644 index 8545983eb3a3..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_clusters call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters. -# -def list_clusters - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new - - # Call the list_clusters method. - result = client.list_clusters request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb deleted file mode 100644 index 5090d8624697..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets. -# -def list_hot_tablets - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new - - # Call the list_hot_tablets method. - result = client.list_hot_tablets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb deleted file mode 100644 index a4038642c51f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_instances call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances. -# -def list_instances - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new - - # Call the list_instances method. - result = client.list_instances request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb deleted file mode 100644 index 09e85d564f89..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_logical_views call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views. -# -def list_logical_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new - - # Call the list_logical_views method. - result = client.list_logical_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb deleted file mode 100644 index 37d40ffb913e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_materialized_views call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views. -# -def list_materialized_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new - - # Call the list_materialized_views method. - result = client.list_materialized_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb deleted file mode 100644 index 3923f7ae400d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster. -# -def partial_update_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new - - # Call the partial_update_cluster method. - result = client.partial_update_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb deleted file mode 100644 index 1630801fd676..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the partial_update_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance. -# -def partial_update_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new - - # Call the partial_update_instance method. - result = client.partial_update_instance request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb deleted file mode 100644 index 834fab5b6899..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the set_iam_policy call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb deleted file mode 100644 index 1e00c002ab00..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb deleted file mode 100644 index 30f88f2bf050..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile. -# -def update_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new - - # Call the update_app_profile method. - result = client.update_app_profile request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb deleted file mode 100644 index da1c506529be..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster. -# -def update_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::Cluster.new - - # Call the update_cluster method. - result = client.update_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb deleted file mode 100644 index 2aeb910c78ba..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance. -# -def update_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::Instance.new - - # Call the update_instance method. - result = client.update_instance request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb deleted file mode 100644 index 1cb0d166a85e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view. -# -def update_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new - - # Call the update_logical_view method. - result = client.update_logical_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb deleted file mode 100644 index da78d73ca450..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view. -# -def update_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new - - # Call the update_materialized_view method. - result = client.update_materialized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb deleted file mode 100644 index 56bd26ccebc2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the check_consistency call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency. -# -def check_consistency - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new - - # Call the check_consistency method. - result = client.check_consistency request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb deleted file mode 100644 index 32e9e991b2e0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the copy_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup. -# -def copy_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new - - # Call the copy_backup method. - result = client.copy_backup request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb deleted file mode 100644 index 93ca1b05050a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view. -# -def create_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new - - # Call the create_authorized_view method. - result = client.create_authorized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb deleted file mode 100644 index bbd26b8f605e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup. -# -def create_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new - - # Call the create_backup method. - result = client.create_backup request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb deleted file mode 100644 index 3cf630415459..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle. -# -def create_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new - - # Call the create_schema_bundle method. - result = client.create_schema_bundle request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb deleted file mode 100644 index 8d98a8471082..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table. -# -def create_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new - - # Call the create_table method. - result = client.create_table request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb deleted file mode 100644 index 3cf2e7283166..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot. -# -def create_table_from_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new - - # Call the create_table_from_snapshot method. - result = client.create_table_from_snapshot request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb deleted file mode 100644 index c5937706f326..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view. -# -def delete_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new - - # Call the delete_authorized_view method. - result = client.delete_authorized_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb deleted file mode 100644 index d710addca48c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup. -# -def delete_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new - - # Call the delete_backup method. - result = client.delete_backup request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb deleted file mode 100644 index 3b07c8b887f2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle. -# -def delete_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new - - # Call the delete_schema_bundle method. - result = client.delete_schema_bundle request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb deleted file mode 100644 index c7ab27d40147..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot. -# -def delete_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new - - # Call the delete_snapshot method. - result = client.delete_snapshot request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb deleted file mode 100644 index 315ff9367627..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table. -# -def delete_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new - - # Call the delete_table method. - result = client.delete_table request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb deleted file mode 100644 index 2b6cd7d2303a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the drop_row_range call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range. -# -def drop_row_range - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new - - # Call the drop_row_range method. - result = client.drop_row_range request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb deleted file mode 100644 index 88734d55318b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the generate_consistency_token call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token. -# -def generate_consistency_token - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new - - # Call the generate_consistency_token method. - result = client.generate_consistency_token request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb deleted file mode 100644 index 79ae8f10cc46..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view. -# -def get_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new - - # Call the get_authorized_view method. - result = client.get_authorized_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb deleted file mode 100644 index 6c0f68dd6078..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup. -# -def get_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new - - # Call the get_backup method. - result = client.get_backup request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb deleted file mode 100644 index 33969bfecb74..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_iam_policy call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb deleted file mode 100644 index 108356d532d0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle. -# -def get_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new - - # Call the get_schema_bundle method. - result = client.get_schema_bundle request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb deleted file mode 100644 index da9903b816ee..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot. -# -def get_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new - - # Call the get_snapshot method. - result = client.get_snapshot request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb deleted file mode 100644 index de73a71a944b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table. -# -def get_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new - - # Call the get_table method. - result = client.get_table request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb deleted file mode 100644 index 975edad00358..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_authorized_views call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views. -# -def list_authorized_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new - - # Call the list_authorized_views method. - result = client.list_authorized_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb deleted file mode 100644 index 113b0761aba0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_backups call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups. -# -def list_backups - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new - - # Call the list_backups method. - result = client.list_backups request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb deleted file mode 100644 index 03b8c6193c5a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_schema_bundles call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles. -# -def list_schema_bundles - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new - - # Call the list_schema_bundles method. - result = client.list_schema_bundles request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb deleted file mode 100644 index 1c34195822a7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_snapshots call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots. -# -def list_snapshots - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new - - # Call the list_snapshots method. - result = client.list_snapshots request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb deleted file mode 100644 index 3c482ff03261..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_tables call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables. -# -def list_tables - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new - - # Call the list_tables method. - result = client.list_tables request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb deleted file mode 100644 index e711d7477c88..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the modify_column_families call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families. -# -def modify_column_families - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new - - # Call the modify_column_families method. - result = client.modify_column_families request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb deleted file mode 100644 index 3c28d6009330..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the restore_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table. -# -def restore_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new - - # Call the restore_table method. - result = client.restore_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb deleted file mode 100644 index ff5fff58358d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the set_iam_policy call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb deleted file mode 100644 index 4d171700843e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the snapshot_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table. -# -def snapshot_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new - - # Call the snapshot_table method. - result = client.snapshot_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb deleted file mode 100644 index abe2e3451d02..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the test_iam_permissions call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb deleted file mode 100644 index 00c9558cd83c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the undelete_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table. -# -def undelete_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new - - # Call the undelete_table method. - result = client.undelete_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb deleted file mode 100644 index 383be6ce0938..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view. -# -def update_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new - - # Call the update_authorized_view method. - result = client.update_authorized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb deleted file mode 100644 index 32aa9d456b3a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup. -# -def update_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new - - # Call the update_backup method. - result = client.update_backup request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb deleted file mode 100644 index c33e873f5e7d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle. -# -def update_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new - - # Call the update_schema_bundle method. - result = client.update_schema_bundle request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb deleted file mode 100644 index d49e5c04deca..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table. -# -def update_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new - - # Call the update_table method. - result = client.update_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json deleted file mode 100644 index 307c646525b1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json +++ /dev/null @@ -1,2655 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-bigtable-admin-v2", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.bigtable.admin.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", - "title": "Snippet for the create_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance.", - "file": "bigtable_instance_admin/create_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", - "title": "Snippet for the get_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance.", - "file": "bigtable_instance_admin/get_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", - "title": "Snippet for the list_instances call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances.", - "file": "bigtable_instance_admin/list_instances.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_instances", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListInstances", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", - "title": "Snippet for the update_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance.", - "file": "bigtable_instance_admin/update_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", - "title": "Snippet for the partial_update_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance.", - "file": "bigtable_instance_admin/partial_update_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "partial_update_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "PartialUpdateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", - "title": "Snippet for the delete_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance.", - "file": "bigtable_instance_admin/delete_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", - "title": "Snippet for the create_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster.", - "file": "bigtable_instance_admin/create_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", - "title": "Snippet for the get_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster.", - "file": "bigtable_instance_admin/get_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", - "title": "Snippet for the list_clusters call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters.", - "file": "bigtable_instance_admin/list_clusters.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_clusters", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListClusters", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", - "title": "Snippet for the update_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster.", - "file": "bigtable_instance_admin/update_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", - "title": "Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster.", - "file": "bigtable_instance_admin/partial_update_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "partial_update_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "PartialUpdateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", - "title": "Snippet for the delete_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster.", - "file": "bigtable_instance_admin/delete_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", - "title": "Snippet for the create_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile.", - "file": "bigtable_instance_admin/create_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", - "title": "Snippet for the get_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile.", - "file": "bigtable_instance_admin/get_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", - "title": "Snippet for the list_app_profiles call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles.", - "file": "bigtable_instance_admin/list_app_profiles.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_app_profiles", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListAppProfiles", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", - "title": "Snippet for the update_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile.", - "file": "bigtable_instance_admin/update_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", - "title": "Snippet for the delete_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile.", - "file": "bigtable_instance_admin/delete_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy.", - "file": "bigtable_instance_admin/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy.", - "file": "bigtable_instance_admin/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions.", - "file": "bigtable_instance_admin/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", - "title": "Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets.", - "file": "bigtable_instance_admin/list_hot_tablets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_hot_tablets", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListHotTablets", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync", - "title": "Snippet for the create_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view.", - "file": "bigtable_instance_admin/create_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync", - "title": "Snippet for the get_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view.", - "file": "bigtable_instance_admin/get_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::LogicalView", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync", - "title": "Snippet for the list_logical_views call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views.", - "file": "bigtable_instance_admin/list_logical_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_logical_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListLogicalViews", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync", - "title": "Snippet for the update_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view.", - "file": "bigtable_instance_admin/update_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync", - "title": "Snippet for the delete_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view.", - "file": "bigtable_instance_admin/delete_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync", - "title": "Snippet for the create_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view.", - "file": "bigtable_instance_admin/create_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync", - "title": "Snippet for the get_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view.", - "file": "bigtable_instance_admin/get_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::MaterializedView", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync", - "title": "Snippet for the list_materialized_views call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views.", - "file": "bigtable_instance_admin/list_materialized_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_materialized_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListMaterializedViews", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync", - "title": "Snippet for the update_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view.", - "file": "bigtable_instance_admin/update_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync", - "title": "Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view.", - "file": "bigtable_instance_admin/delete_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", - "title": "Snippet for the create_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table.", - "file": "bigtable_table_admin/create_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", - "title": "Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot.", - "file": "bigtable_table_admin/create_table_from_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_table_from_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateTableFromSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", - "title": "Snippet for the list_tables call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables.", - "file": "bigtable_table_admin/list_tables.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_tables", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListTables", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", - "title": "Snippet for the get_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table.", - "file": "bigtable_table_admin/get_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", - "title": "Snippet for the update_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table.", - "file": "bigtable_table_admin/update_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", - "title": "Snippet for the delete_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table.", - "file": "bigtable_table_admin/delete_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", - "title": "Snippet for the undelete_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table.", - "file": "bigtable_table_admin/undelete_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "undelete_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UndeleteTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", - "title": "Snippet for the create_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view.", - "file": "bigtable_table_admin/create_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", - "title": "Snippet for the list_authorized_views call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views.", - "file": "bigtable_table_admin/list_authorized_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_authorized_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListAuthorizedViews", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", - "title": "Snippet for the get_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view.", - "file": "bigtable_table_admin/get_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AuthorizedView", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", - "title": "Snippet for the update_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view.", - "file": "bigtable_table_admin/update_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", - "title": "Snippet for the delete_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view.", - "file": "bigtable_table_admin/delete_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", - "title": "Snippet for the modify_column_families call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families.", - "file": "bigtable_table_admin/modify_column_families.rb", - "language": "RUBY", - "client_method": { - "short_name": "modify_column_families", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ModifyColumnFamilies", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", - "title": "Snippet for the drop_row_range call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range.", - "file": "bigtable_table_admin/drop_row_range.rb", - "language": "RUBY", - "client_method": { - "short_name": "drop_row_range", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DropRowRange", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", - "title": "Snippet for the generate_consistency_token call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token.", - "file": "bigtable_table_admin/generate_consistency_token.rb", - "language": "RUBY", - "client_method": { - "short_name": "generate_consistency_token", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GenerateConsistencyToken", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", - "title": "Snippet for the check_consistency call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency.", - "file": "bigtable_table_admin/check_consistency.rb", - "language": "RUBY", - "client_method": { - "short_name": "check_consistency", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CheckConsistency", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", - "title": "Snippet for the snapshot_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table.", - "file": "bigtable_table_admin/snapshot_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "snapshot_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "SnapshotTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", - "title": "Snippet for the get_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot.", - "file": "bigtable_table_admin/get_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Snapshot", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", - "title": "Snippet for the list_snapshots call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots.", - "file": "bigtable_table_admin/list_snapshots.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_snapshots", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListSnapshots", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", - "title": "Snippet for the delete_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot.", - "file": "bigtable_table_admin/delete_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", - "title": "Snippet for the create_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup.", - "file": "bigtable_table_admin/create_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", - "title": "Snippet for the get_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup.", - "file": "bigtable_table_admin/get_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", - "title": "Snippet for the update_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup.", - "file": "bigtable_table_admin/update_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", - "title": "Snippet for the delete_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup.", - "file": "bigtable_table_admin/delete_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", - "title": "Snippet for the list_backups call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups.", - "file": "bigtable_table_admin/list_backups.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_backups", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListBackups", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", - "title": "Snippet for the restore_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table.", - "file": "bigtable_table_admin/restore_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "restore_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "RestoreTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", - "title": "Snippet for the copy_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup.", - "file": "bigtable_table_admin/copy_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "copy_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CopyBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy.", - "file": "bigtable_table_admin/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy.", - "file": "bigtable_table_admin/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions.", - "file": "bigtable_table_admin/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync", - "title": "Snippet for the create_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle.", - "file": "bigtable_table_admin/create_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync", - "title": "Snippet for the update_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle.", - "file": "bigtable_table_admin/update_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync", - "title": "Snippet for the get_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle.", - "file": "bigtable_table_admin/get_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::SchemaBundle", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync", - "title": "Snippet for the list_schema_bundles call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles.", - "file": "bigtable_table_admin/list_schema_bundles.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_schema_bundles", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListSchemaBundles", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync", - "title": "Snippet for the delete_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle.", - "file": "bigtable_table_admin/delete_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb deleted file mode 100644 index d7820c4ab5a3..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" -require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb deleted file mode 100644 index 2454f9a7005c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb +++ /dev/null @@ -1,139 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_app_profile_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.app_profile_path project: "value0", instance: "value1", app_profile: "value2" - assert_equal "projects/value0/instances/value1/appProfiles/value2", path - end - end - - def test_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" - assert_equal "projects/value0/instances/value1/clusters/value2", path - end - end - - def test_crypto_key_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path - end - end - - def test_instance_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.instance_path project: "value0", instance: "value1" - assert_equal "projects/value0/instances/value1", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_logical_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.logical_view_path project: "value0", instance: "value1", logical_view: "value2" - assert_equal "projects/value0/instances/value1/logicalViews/value2", path - end - end - - def test_materialized_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.materialized_view_path project: "value0", instance: "value1", materialized_view: "value2" - assert_equal "projects/value0/instances/value1/materializedViews/value2", path - end - end - - def test_project_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.project_path project: "value0" - assert_equal "projects/value0", path - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb deleted file mode 100644 index 9ff63d5bec0c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb +++ /dev/null @@ -1,2093 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_instance - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - instance_id = "hello world" - instance = {} - clusters = {} - - create_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["instance_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] - assert_equal({}, request["clusters"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_instance parent: parent, instance_id: instance_id, instance: instance, clusters: clusters do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_instance ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_instance(::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_instance_client_stub.call_rpc_count - end - end - - def test_get_instance - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_instance({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_instance name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_instance ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_instance({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_instance(::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_instance_client_stub.call_rpc_count - end - end - - def test_list_instances - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_token = "hello world" - - list_instances_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_instances, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_instances_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_instances({ parent: parent, page_token: page_token }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_instances parent: parent, page_token: page_token do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_instances ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_instances({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_instances(::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_instances_client_stub.call_rpc_count - end - end - - def test_update_instance - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - display_name = "hello world" - state = :STATE_NOT_KNOWN - type = :TYPE_UNSPECIFIED - labels = {} - create_time = {} - satisfies_pzs = true - satisfies_pzi = true - tags = {} - - update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Instance, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["display_name"] - assert_equal :STATE_NOT_KNOWN, request["state"] - assert_equal :TYPE_UNSPECIFIED, request["type"] - assert_equal({}, request["labels"].to_h) - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] - assert_equal true, request["satisfies_pzs"] - assert request.has_satisfies_pzs? - assert_equal true, request["satisfies_pzi"] - assert request.has_satisfies_pzi? - assert_equal({}, request["tags"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_instance name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_instance_client_stub.call_rpc_count - end - end - - def test_partial_update_instance - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - instance = {} - update_mask = {} - - partial_update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :partial_update_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, partial_update_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.partial_update_instance({ instance: instance, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.partial_update_instance instance: instance, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.partial_update_instance ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.partial_update_instance({ instance: instance, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.partial_update_instance(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, partial_update_instance_client_stub.call_rpc_count - end - end - - def test_delete_instance - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_instance({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_instance name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_instance ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_instance({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_instance(::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_instance_client_stub.call_rpc_count - end - end - - def test_create_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - cluster_id = "hello world" - cluster = {} - - create_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["cluster_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_cluster parent: parent, cluster_id: cluster_id, cluster: cluster do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_cluster ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_cluster(::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_cluster_client_stub.call_rpc_count - end - end - - def test_get_cluster - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Cluster.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_cluster ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_cluster(::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_cluster_client_stub.call_rpc_count - end - end - - def test_list_clusters - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_token = "hello world" - - list_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_clusters, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_clusters_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_clusters({ parent: parent, page_token: page_token }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_clusters parent: parent, page_token: page_token do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_clusters ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_clusters({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_clusters(::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_clusters_client_stub.call_rpc_count - end - end - - def test_update_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - location = "hello world" - state = :STATE_NOT_KNOWN - serve_nodes = 42 - node_scaling_factor = :NODE_SCALING_FACTOR_UNSPECIFIED - cluster_config = {} - default_storage_type = :STORAGE_TYPE_UNSPECIFIED - encryption_config = {} - - update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Cluster, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["location"] - assert_equal :STATE_NOT_KNOWN, request["state"] - assert_equal 42, request["serve_nodes"] - assert_equal :NODE_SCALING_FACTOR_UNSPECIFIED, request["node_scaling_factor"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig), request["cluster_config"] - assert_equal :cluster_config, request.config - assert_equal :STORAGE_TYPE_UNSPECIFIED, request["default_storage_type"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig), request["encryption_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_cluster name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_cluster ::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_cluster(::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_cluster_client_stub.call_rpc_count - end - end - - def test_partial_update_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - cluster = {} - update_mask = {} - - partial_update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :partial_update_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, partial_update_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.partial_update_cluster cluster: cluster, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.partial_update_cluster ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.partial_update_cluster(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, partial_update_cluster_client_stub.call_rpc_count - end - end - - def test_delete_cluster - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_cluster ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_cluster(::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_cluster_client_stub.call_rpc_count - end - end - - def test_create_app_profile - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - app_profile_id = "hello world" - app_profile = {} - ignore_warnings = true - - create_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["app_profile_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_app_profile parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_app_profile ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_app_profile(::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_app_profile_client_stub.call_rpc_count - end - end - - def test_get_app_profile - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_app_profile({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_app_profile name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_app_profile ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_app_profile({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_app_profile(::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_app_profile_client_stub.call_rpc_count - end - end - - def test_list_app_profiles - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_app_profiles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_app_profiles, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_app_profiles_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_app_profiles parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_app_profiles ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_app_profiles(::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_app_profiles_client_stub.call_rpc_count - end - end - - def test_update_app_profile - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - app_profile = {} - update_mask = {} - ignore_warnings = true - - update_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_app_profile app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_app_profile ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_app_profile(::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_app_profile_client_stub.call_rpc_count - end - end - - def test_delete_app_profile - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - ignore_warnings = true - - delete_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_app_profile name: name, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_app_profile ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_app_profile(::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_app_profile_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_list_hot_tablets - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - start_time = {} - end_time = {} - page_size = 42 - page_token = "hello world" - - list_hot_tablets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_hot_tablets, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_hot_tablets_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_hot_tablets parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_hot_tablets ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_hot_tablets(::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_hot_tablets_client_stub.call_rpc_count - end - end - - def test_create_logical_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - logical_view_id = "hello world" - logical_view = {} - - create_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["logical_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_logical_view parent: parent, logical_view_id: logical_view_id, logical_view: logical_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_logical_view ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_logical_view(::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_logical_view_client_stub.call_rpc_count - end - end - - def test_get_logical_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::LogicalView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_logical_view({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_logical_view name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_logical_view ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_logical_view({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_logical_view(::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_logical_view_client_stub.call_rpc_count - end - end - - def test_list_logical_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_logical_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_logical_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_logical_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_logical_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_logical_views ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_logical_views(::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_logical_views_client_stub.call_rpc_count - end - end - - def test_update_logical_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - logical_view = {} - update_mask = {} - - update_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_logical_view logical_view: logical_view, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_logical_view ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_logical_view(::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_logical_view_client_stub.call_rpc_count - end - end - - def test_delete_logical_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_logical_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_logical_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_logical_view ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_logical_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_logical_view(::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_logical_view_client_stub.call_rpc_count - end - end - - def test_create_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - materialized_view_id = "hello world" - materialized_view = {} - - create_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["materialized_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_materialized_view parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_materialized_view ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_materialized_view(::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_materialized_view_client_stub.call_rpc_count - end - end - - def test_get_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::MaterializedView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_materialized_view({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_materialized_view name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_materialized_view ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_materialized_view({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_materialized_view(::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_materialized_view_client_stub.call_rpc_count - end - end - - def test_list_materialized_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_materialized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_materialized_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_materialized_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_materialized_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_materialized_views ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_materialized_views(::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_materialized_views_client_stub.call_rpc_count - end - end - - def test_update_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - materialized_view = {} - update_mask = {} - - update_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_materialized_view materialized_view: materialized_view, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_materialized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_materialized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_materialized_view_client_stub.call_rpc_count - end - end - - def test_delete_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_materialized_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_materialized_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_materialized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_materialized_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_materialized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_materialized_view_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb deleted file mode 100644 index b4858530f9ca..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_table_admin_pb" -require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb deleted file mode 100644 index f660e3430c6e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb +++ /dev/null @@ -1,151 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_authorized_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.authorized_view_path project: "value0", instance: "value1", table: "value2", authorized_view: "value3" - assert_equal "projects/value0/instances/value1/tables/value2/authorizedViews/value3", path - end - end - - def test_backup_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.backup_path project: "value0", instance: "value1", cluster: "value2", backup: "value3" - assert_equal "projects/value0/instances/value1/clusters/value2/backups/value3", path - end - end - - def test_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" - assert_equal "projects/value0/instances/value1/clusters/value2", path - end - end - - def test_crypto_key_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path - end - end - - def test_instance_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.instance_path project: "value0", instance: "value1" - assert_equal "projects/value0/instances/value1", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_schema_bundle_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.schema_bundle_path project: "value0", instance: "value1", table: "value2", schema_bundle: "value3" - assert_equal "projects/value0/instances/value1/tables/value2/schemaBundles/value3", path - end - end - - def test_snapshot_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.snapshot_path project: "value0", instance: "value1", cluster: "value2", snapshot: "value3" - assert_equal "projects/value0/instances/value1/clusters/value2/snapshots/value3", path - end - end - - def test_table_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.table_path project: "value0", instance: "value1", table: "value2" - assert_equal "projects/value0/instances/value1/tables/value2", path - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb deleted file mode 100644 index 44ea7cd17fc5..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb +++ /dev/null @@ -1,2339 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_table_admin_pb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_table - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - table = {} - initial_splits = [{}] - - create_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, request["initial_splits"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_table parent: parent, table_id: table_id, table: table, initial_splits: initial_splits do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_table ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_table(::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_table_client_stub.call_rpc_count - end - end - - def test_create_table_from_snapshot - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - source_snapshot = "hello world" - - create_table_from_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_table_from_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal "hello world", request["source_snapshot"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_table_from_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_table_from_snapshot parent: parent, table_id: table_id, source_snapshot: source_snapshot do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_table_from_snapshot ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_table_from_snapshot(::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_table_from_snapshot_client_stub.call_rpc_count - end - end - - def test_list_tables - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - view = :VIEW_UNSPECIFIED - page_size = 42 - page_token = "hello world" - - list_tables_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_tables, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, request - assert_equal "hello world", request["parent"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_tables_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_tables parent: parent, view: view, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_tables ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_tables(::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_tables_client_stub.call_rpc_count - end - end - - def test_get_table - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :VIEW_UNSPECIFIED - - get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, request - assert_equal "hello world", request["name"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_table({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_table name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_table ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_table({ name: name, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_table(::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_table_client_stub.call_rpc_count - end - end - - def test_update_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - table = {} - update_mask = {} - ignore_warnings = true - - update_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_table table: table, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_table ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_table(::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_table_client_stub.call_rpc_count - end - end - - def test_delete_table - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_table({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_table name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_table ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_table({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_table(::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_table_client_stub.call_rpc_count - end - end - - def test_undelete_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - undelete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :undelete_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, undelete_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.undelete_table({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.undelete_table name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.undelete_table ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.undelete_table({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.undelete_table(::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, undelete_table_client_stub.call_rpc_count - end - end - - def test_create_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - authorized_view_id = "hello world" - authorized_view = {} - - create_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["authorized_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_authorized_view parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_authorized_view ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_authorized_view(::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_authorized_view_client_stub.call_rpc_count - end - end - - def test_list_authorized_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - view = :RESPONSE_VIEW_UNSPECIFIED - - list_authorized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_authorized_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_authorized_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_authorized_views parent: parent, page_size: page_size, page_token: page_token, view: view do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_authorized_views ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_authorized_views(::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_authorized_views_client_stub.call_rpc_count - end - end - - def test_get_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :RESPONSE_VIEW_UNSPECIFIED - - get_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_authorized_view({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_authorized_view name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_authorized_view ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_authorized_view({ name: name, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_authorized_view(::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_authorized_view_client_stub.call_rpc_count - end - end - - def test_update_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - authorized_view = {} - update_mask = {} - ignore_warnings = true - - update_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_authorized_view authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_authorized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_authorized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_authorized_view_client_stub.call_rpc_count - end - end - - def test_delete_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_authorized_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_authorized_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_authorized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_authorized_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_authorized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_authorized_view_client_stub.call_rpc_count - end - end - - def test_modify_column_families - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - modifications = [{}] - ignore_warnings = true - - modify_column_families_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :modify_column_families, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, request - assert_equal "hello world", request["name"] - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, request["modifications"].first - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, modify_column_families_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.modify_column_families name: name, modifications: modifications, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.modify_column_families ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.modify_column_families(::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, modify_column_families_client_stub.call_rpc_count - end - end - - def test_drop_row_range - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - row_key_prefix = "hello world" - - drop_row_range_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :drop_row_range, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["row_key_prefix"] - assert_equal :row_key_prefix, request.target - refute_nil options - end - - Gapic::ServiceStub.stub :new, drop_row_range_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.drop_row_range name: name, row_key_prefix: row_key_prefix do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.drop_row_range ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.drop_row_range(::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, drop_row_range_client_stub.call_rpc_count - end - end - - def test_generate_consistency_token - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - generate_consistency_token_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :generate_consistency_token, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, generate_consistency_token_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.generate_consistency_token({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.generate_consistency_token name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.generate_consistency_token ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.generate_consistency_token({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.generate_consistency_token(::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, generate_consistency_token_client_stub.call_rpc_count - end - end - - def test_check_consistency - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - consistency_token = "hello world" - standard_read_remote_writes = {} - - check_consistency_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :check_consistency, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["consistency_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites), request["standard_read_remote_writes"] - assert_equal :standard_read_remote_writes, request.mode - refute_nil options - end - - Gapic::ServiceStub.stub :new, check_consistency_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.check_consistency name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.check_consistency ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.check_consistency(::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, check_consistency_client_stub.call_rpc_count - end - end - - def test_snapshot_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - cluster = "hello world" - snapshot_id = "hello world" - ttl = {} - description = "hello world" - - snapshot_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :snapshot_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["cluster"] - assert_equal "hello world", request["snapshot_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] - assert_equal "hello world", request["description"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, snapshot_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.snapshot_table name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.snapshot_table ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.snapshot_table(::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, snapshot_table_client_stub.call_rpc_count - end - end - - def test_get_snapshot - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Snapshot.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_snapshot({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_snapshot name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_snapshot ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_snapshot({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_snapshot(::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_snapshot_client_stub.call_rpc_count - end - end - - def test_list_snapshots - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_snapshots, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_snapshots_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_snapshots parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_snapshots ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_snapshots(::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_snapshots_client_stub.call_rpc_count - end - end - - def test_delete_snapshot - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_snapshot({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_snapshot name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_snapshot ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_snapshot({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_snapshot(::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_snapshot_client_stub.call_rpc_count - end - end - - def test_create_backup - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - backup_id = "hello world" - backup = {} - - create_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["backup_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_backup parent: parent, backup_id: backup_id, backup: backup do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_backup ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_backup(::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_backup_client_stub.call_rpc_count - end - end - - def test_get_backup - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_backup({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_backup name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_backup ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_backup({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_backup(::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_backup_client_stub.call_rpc_count - end - end - - def test_update_backup - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - backup = {} - update_mask = {} - - update_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_backup({ backup: backup, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_backup backup: backup, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_backup ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_backup({ backup: backup, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_backup(::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_backup_client_stub.call_rpc_count - end - end - - def test_delete_backup - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_backup({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_backup name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_backup ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_backup({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_backup(::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_backup_client_stub.call_rpc_count - end - end - - def test_list_backups - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - order_by = "hello world" - page_size = 42 - page_token = "hello world" - - list_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_backups, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_backups_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_backups parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_backups ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_backups(::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_backups_client_stub.call_rpc_count - end - end - - def test_restore_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - backup = "hello world" - - restore_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :restore_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal "hello world", request["backup"] - assert_equal :backup, request.source - refute_nil options - end - - Gapic::ServiceStub.stub :new, restore_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.restore_table({ parent: parent, table_id: table_id, backup: backup }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.restore_table parent: parent, table_id: table_id, backup: backup do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.restore_table ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.restore_table({ parent: parent, table_id: table_id, backup: backup }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.restore_table(::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, restore_table_client_stub.call_rpc_count - end - end - - def test_copy_backup - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - backup_id = "hello world" - source_backup = "hello world" - expire_time = {} - - copy_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :copy_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["backup_id"] - assert_equal "hello world", request["source_backup"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["expire_time"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, copy_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.copy_backup parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.copy_backup ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.copy_backup(::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, copy_backup_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_create_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - schema_bundle_id = "hello world" - schema_bundle = {} - - create_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["schema_bundle_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_schema_bundle parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_schema_bundle_client_stub.call_rpc_count - end - end - - def test_update_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - schema_bundle = {} - update_mask = {} - ignore_warnings = true - - update_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_schema_bundle schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_schema_bundle_client_stub.call_rpc_count - end - end - - def test_get_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_schema_bundle({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_schema_bundle name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_schema_bundle({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_schema_bundle_client_stub.call_rpc_count - end - end - - def test_list_schema_bundles - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_schema_bundles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_schema_bundles, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_schema_bundles_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_schema_bundles parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_schema_bundles ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_schema_bundles(::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_schema_bundles_client_stub.call_rpc_count - end - end - - def test_delete_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_schema_bundle({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_schema_bundle name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_schema_bundle({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_schema_bundle_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct" From 44bae9f97e7fb3e0e569668d7d441bb41c6b9fc1 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 1 Apr 2026 08:02:01 +0000 Subject: [PATCH 5/8] docs: update SelectiveGapicGeneration usage doc PiperOrigin-RevId: 892649773 Source-Link: https://github.com/googleapis/googleapis/commit/06a20b286850ebcb792cd2085ae6d0556a7c5498 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d9ae66451f81c9df99dbdc9b23bd75d007380f4e Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWJpZ3RhYmxlLWFkbWluLXYyLy5Pd2xCb3QueWFtbCIsImgiOiJkOWFlNjY0NTFmODFjOWRmOTlkYmRjOWIyM2JkNzVkMDA3MzgwZjRlIn0= --- .../google-cloud-bigtable-admin-v2/.gitignore | 22 + .../.repo-metadata.json | 18 + .../.rubocop.yml | 33 + .../google-cloud-bigtable-admin-v2/.toys.rb | 28 + .../google-cloud-bigtable-admin-v2/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../CHANGELOG.md | 2 + .../google-cloud-bigtable-admin-v2/Gemfile | 14 + .../google-cloud-bigtable-admin-v2/LICENSE.md | 201 + .../google-cloud-bigtable-admin-v2/README.md | 154 + .../google-cloud-bigtable-admin-v2/Rakefile | 169 + .../gapic_metadata.json | 357 ++ .../google-cloud-bigtable-admin-v2.gemspec | 29 + .../lib/google-cloud-bigtable-admin-v2.rb | 21 + .../admin/v2/bigtable_instance_admin_pb.rb | 78 + .../v2/bigtable_instance_admin_services_pb.rb | 142 + .../admin/v2/bigtable_table_admin_pb.rb | 91 + .../v2/bigtable_table_admin_services_pb.rb | 182 + .../lib/google/bigtable/admin/v2/common_pb.rb | 26 + .../google/bigtable/admin/v2/instance_pb.rb | 49 + .../lib/google/bigtable/admin/v2/table_pb.rb | 58 + .../lib/google/bigtable/admin/v2/types_pb.rb | 57 + .../lib/google/cloud/bigtable/admin/v2.rb | 43 + .../admin/v2/bigtable_instance_admin.rb | 54 + .../v2/bigtable_instance_admin/client.rb | 3710 ++++++++++++++ .../v2/bigtable_instance_admin/credentials.rb | 59 + .../v2/bigtable_instance_admin/operations.rb | 843 ++++ .../admin/v2/bigtable_instance_admin/paths.rb | 180 + .../bigtable/admin/v2/bigtable_table_admin.rb | 56 + .../admin/v2/bigtable_table_admin/client.rb | 4266 +++++++++++++++++ .../v2/bigtable_table_admin/credentials.rb | 58 + .../v2/bigtable_table_admin/operations.rb | 843 ++++ .../admin/v2/bigtable_table_admin/paths.rb | 214 + .../google/cloud/bigtable/admin/v2/version.rb | 30 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 593 +++ .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../admin/v2/bigtable_instance_admin.rb | 767 +++ .../bigtable/admin/v2/bigtable_table_admin.rb | 1167 +++++ .../google/bigtable/admin/v2/common.rb | 58 + .../google/bigtable/admin/v2/instance.rb | 519 ++ .../google/bigtable/admin/v2/table.rb | 741 +++ .../google/bigtable/admin/v2/types.rb | 575 +++ .../proto_docs/google/iam/v1/iam_policy.rb | 87 + .../proto_docs/google/iam/v1/options.rb | 50 + .../proto_docs/google/iam/v1/policy.rb | 426 ++ .../google/longrunning/operations.rb | 191 + .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/rpc/status.rb | 48 + .../proto_docs/google/type/expr.rb | 75 + .../snippets/Gemfile | 32 + .../create_app_profile.rb | 47 + .../bigtable_instance_admin/create_cluster.rb | 54 + .../create_instance.rb | 54 + .../create_logical_view.rb | 54 + .../create_materialized_view.rb | 54 + .../delete_app_profile.rb | 47 + .../bigtable_instance_admin/delete_cluster.rb | 47 + .../delete_instance.rb | 47 + .../delete_logical_view.rb | 47 + .../delete_materialized_view.rb | 47 + .../get_app_profile.rb | 47 + .../bigtable_instance_admin/get_cluster.rb | 47 + .../bigtable_instance_admin/get_iam_policy.rb | 47 + .../bigtable_instance_admin/get_instance.rb | 47 + .../get_logical_view.rb | 47 + .../get_materialized_view.rb | 47 + .../list_app_profiles.rb | 51 + .../bigtable_instance_admin/list_clusters.rb | 47 + .../list_hot_tablets.rb | 51 + .../bigtable_instance_admin/list_instances.rb | 47 + .../list_logical_views.rb | 51 + .../list_materialized_views.rb | 51 + .../partial_update_cluster.rb | 54 + .../partial_update_instance.rb | 54 + .../bigtable_instance_admin/set_iam_policy.rb | 47 + .../test_iam_permissions.rb | 47 + .../update_app_profile.rb | 54 + .../bigtable_instance_admin/update_cluster.rb | 54 + .../update_instance.rb | 47 + .../update_logical_view.rb | 54 + .../update_materialized_view.rb | 54 + .../bigtable_table_admin/check_consistency.rb | 47 + .../bigtable_table_admin/copy_backup.rb | 54 + .../create_authorized_view.rb | 54 + .../bigtable_table_admin/create_backup.rb | 54 + .../create_schema_bundle.rb | 54 + .../bigtable_table_admin/create_table.rb | 47 + .../create_table_from_snapshot.rb | 54 + .../delete_authorized_view.rb | 47 + .../bigtable_table_admin/delete_backup.rb | 47 + .../delete_schema_bundle.rb | 47 + .../bigtable_table_admin/delete_snapshot.rb | 47 + .../bigtable_table_admin/delete_table.rb | 47 + .../bigtable_table_admin/drop_row_range.rb | 47 + .../generate_consistency_token.rb | 47 + .../get_authorized_view.rb | 47 + .../bigtable_table_admin/get_backup.rb | 47 + .../bigtable_table_admin/get_iam_policy.rb | 47 + .../bigtable_table_admin/get_schema_bundle.rb | 47 + .../bigtable_table_admin/get_snapshot.rb | 47 + .../bigtable_table_admin/get_table.rb | 47 + .../list_authorized_views.rb | 51 + .../bigtable_table_admin/list_backups.rb | 51 + .../list_schema_bundles.rb | 51 + .../bigtable_table_admin/list_snapshots.rb | 51 + .../bigtable_table_admin/list_tables.rb | 51 + .../modify_column_families.rb | 47 + .../bigtable_table_admin/restore_table.rb | 54 + .../bigtable_table_admin/set_iam_policy.rb | 47 + .../bigtable_table_admin/snapshot_table.rb | 54 + .../test_iam_permissions.rb | 47 + .../bigtable_table_admin/undelete_table.rb | 54 + .../update_authorized_view.rb | 54 + .../bigtable_table_admin/update_backup.rb | 47 + .../update_schema_bundle.rb | 54 + .../bigtable_table_admin/update_table.rb | 54 + ...pet_metadata_google.bigtable.admin.v2.json | 2655 ++++++++++ ...bigtable_instance_admin_operations_test.rb | 400 ++ .../v2/bigtable_instance_admin_paths_test.rb | 139 + .../admin/v2/bigtable_instance_admin_test.rb | 2093 ++++++++ .../bigtable_table_admin_operations_test.rb | 400 ++ .../v2/bigtable_table_admin_paths_test.rb | 151 + .../admin/v2/bigtable_table_admin_test.rb | 2339 +++++++++ .../test/helper.rb | 26 + 131 files changed, 30058 insertions(+) create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/README.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/common_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json new file mode 100644 index 000000000000..b1afcd60adc1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json @@ -0,0 +1,18 @@ +{ + "api_id": "bigtableadmin.googleapis.com", + "api_shortname": "bigtableadmin", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest", + "distribution_name": "google-cloud-bigtable-admin-v2", + "is_cloud": true, + "language": "ruby", + "name": "bigtableadmin", + "name_pretty": "Cloud Bigtable Admin V2 API", + "product_documentation": "https://cloud.google.com/bigtable", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details.", + "ruby-cloud-env-prefix": "BIGTABLE", + "ruby-cloud-product-url": "https://cloud.google.com/bigtable", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml new file mode 100644 index 000000000000..8b307e35af07 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-bigtable-admin-v2.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-bigtable-admin-v2.rb" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts new file mode 100644 index 000000000000..73aed5753bd5 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Cloud Bigtable Admin V2 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md new file mode 100644 index 000000000000..1bb27d1cc834 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-bigtable-admin-v2 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-bigtable-admin-v2 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/bigtable/admin/v2" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/bigtable/admin/v2" + +::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-bigtable-admin-v2 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/bigtable/admin/v2" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md new file mode 100644 index 000000000000..7fe6da059f1e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Cloud Bigtable Admin V2 API + +Administer your Cloud Bigtable tables and instances. + +Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Cloud Bigtable Admin V2 API. Most users should consider using +the main client gem, +[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-bigtable-admin-v2 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/bigtable/admin/v2" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +request = ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new # (request fields as keyword arguments...) +response = client.create_instance request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/bigtable) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/bigtable/admin/v2" +require "logger" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-bigtable`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-bigtable-admin-v2`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-bigtable`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-bigtable-admin-v2`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile new file mode 100644 index 000000000000..485278a34b9d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-bigtable-admin-v2 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["BIGTABLE_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["BIGTABLE_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["BIGTABLE_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or BIGTABLE_TEST_PROJECT=test123 BIGTABLE_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" + ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["BIGTABLE_PROJECT"] = project + ENV["BIGTABLE_TEST_PROJECT"] = project + ENV["BIGTABLE_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-bigtable-admin-v2 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-bigtable-admin-v2 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-bigtable-admin-v2" + header "google-cloud-bigtable-admin-v2 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-bigtable-admin-v2 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-bigtable-admin-v2 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-bigtable-admin-v2 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-bigtable-admin-v2 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json new file mode 100644 index 000000000000..2370ce3ced54 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json @@ -0,0 +1,357 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.bigtable.admin.v2", + "libraryPackage": "::Google::Cloud::Bigtable::Admin::V2", + "services": { + "BigtableInstanceAdmin": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client", + "rpcs": { + "CreateInstance": { + "methods": [ + "create_instance" + ] + }, + "GetInstance": { + "methods": [ + "get_instance" + ] + }, + "ListInstances": { + "methods": [ + "list_instances" + ] + }, + "UpdateInstance": { + "methods": [ + "update_instance" + ] + }, + "PartialUpdateInstance": { + "methods": [ + "partial_update_instance" + ] + }, + "DeleteInstance": { + "methods": [ + "delete_instance" + ] + }, + "CreateCluster": { + "methods": [ + "create_cluster" + ] + }, + "GetCluster": { + "methods": [ + "get_cluster" + ] + }, + "ListClusters": { + "methods": [ + "list_clusters" + ] + }, + "UpdateCluster": { + "methods": [ + "update_cluster" + ] + }, + "PartialUpdateCluster": { + "methods": [ + "partial_update_cluster" + ] + }, + "DeleteCluster": { + "methods": [ + "delete_cluster" + ] + }, + "CreateAppProfile": { + "methods": [ + "create_app_profile" + ] + }, + "GetAppProfile": { + "methods": [ + "get_app_profile" + ] + }, + "ListAppProfiles": { + "methods": [ + "list_app_profiles" + ] + }, + "UpdateAppProfile": { + "methods": [ + "update_app_profile" + ] + }, + "DeleteAppProfile": { + "methods": [ + "delete_app_profile" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, + "ListHotTablets": { + "methods": [ + "list_hot_tablets" + ] + }, + "CreateLogicalView": { + "methods": [ + "create_logical_view" + ] + }, + "GetLogicalView": { + "methods": [ + "get_logical_view" + ] + }, + "ListLogicalViews": { + "methods": [ + "list_logical_views" + ] + }, + "UpdateLogicalView": { + "methods": [ + "update_logical_view" + ] + }, + "DeleteLogicalView": { + "methods": [ + "delete_logical_view" + ] + }, + "CreateMaterializedView": { + "methods": [ + "create_materialized_view" + ] + }, + "GetMaterializedView": { + "methods": [ + "get_materialized_view" + ] + }, + "ListMaterializedViews": { + "methods": [ + "list_materialized_views" + ] + }, + "UpdateMaterializedView": { + "methods": [ + "update_materialized_view" + ] + }, + "DeleteMaterializedView": { + "methods": [ + "delete_materialized_view" + ] + } + } + } + } + }, + "BigtableTableAdmin": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client", + "rpcs": { + "CreateTable": { + "methods": [ + "create_table" + ] + }, + "CreateTableFromSnapshot": { + "methods": [ + "create_table_from_snapshot" + ] + }, + "ListTables": { + "methods": [ + "list_tables" + ] + }, + "GetTable": { + "methods": [ + "get_table" + ] + }, + "UpdateTable": { + "methods": [ + "update_table" + ] + }, + "DeleteTable": { + "methods": [ + "delete_table" + ] + }, + "UndeleteTable": { + "methods": [ + "undelete_table" + ] + }, + "CreateAuthorizedView": { + "methods": [ + "create_authorized_view" + ] + }, + "ListAuthorizedViews": { + "methods": [ + "list_authorized_views" + ] + }, + "GetAuthorizedView": { + "methods": [ + "get_authorized_view" + ] + }, + "UpdateAuthorizedView": { + "methods": [ + "update_authorized_view" + ] + }, + "DeleteAuthorizedView": { + "methods": [ + "delete_authorized_view" + ] + }, + "ModifyColumnFamilies": { + "methods": [ + "modify_column_families" + ] + }, + "DropRowRange": { + "methods": [ + "drop_row_range" + ] + }, + "GenerateConsistencyToken": { + "methods": [ + "generate_consistency_token" + ] + }, + "CheckConsistency": { + "methods": [ + "check_consistency" + ] + }, + "SnapshotTable": { + "methods": [ + "snapshot_table" + ] + }, + "GetSnapshot": { + "methods": [ + "get_snapshot" + ] + }, + "ListSnapshots": { + "methods": [ + "list_snapshots" + ] + }, + "DeleteSnapshot": { + "methods": [ + "delete_snapshot" + ] + }, + "CreateBackup": { + "methods": [ + "create_backup" + ] + }, + "GetBackup": { + "methods": [ + "get_backup" + ] + }, + "UpdateBackup": { + "methods": [ + "update_backup" + ] + }, + "DeleteBackup": { + "methods": [ + "delete_backup" + ] + }, + "ListBackups": { + "methods": [ + "list_backups" + ] + }, + "RestoreTable": { + "methods": [ + "restore_table" + ] + }, + "CopyBackup": { + "methods": [ + "copy_backup" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, + "CreateSchemaBundle": { + "methods": [ + "create_schema_bundle" + ] + }, + "UpdateSchemaBundle": { + "methods": [ + "update_schema_bundle" + ] + }, + "GetSchemaBundle": { + "methods": [ + "get_schema_bundle" + ] + }, + "ListSchemaBundles": { + "methods": [ + "list_schema_bundles" + ] + }, + "DeleteSchemaBundle": { + "methods": [ + "delete_schema_bundle" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec new file mode 100644 index 000000000000..d15e999177a9 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec @@ -0,0 +1,29 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/bigtable/admin/v2/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-bigtable-admin-v2" + gem.version = Google::Cloud::Bigtable::Admin::V2::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details." + gem.summary = "Administer your Cloud Bigtable tables and instances." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "grpc-google-iam-v1", "~> 1.11" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb new file mode 100644 index 000000000000..0c7aa4cc6208 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/bigtable/admin/v2" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb new file mode 100644 index 000000000000..ada921bfd341 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb @@ -0,0 +1,78 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/bigtable_instance_admin.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/instance_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"Q\n\x12GetInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"T\n\x15\x44\x65leteInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"\xa7\x01\n\x14\x43reateClusterRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\"O\n\x11GetClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"h\n\x13ListClustersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"R\n\x14\x44\x65leteClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfb\x04\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x06tables\x18\x04 \x03(\x0b\x32;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1a\xf9\x01\n\rTableProgress\x12\x1c\n\x14\x65stimated_size_bytes\x18\x02 \x01(\x03\x12\x1e\n\x16\x65stimated_copied_bytes\x18\x03 \x01(\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32\x43.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07\x43OPYING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1al\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x02\x38\x01\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd2\x01\n\x1cPartialUpdateClusterMetadata\x12\x30\n\x0crequest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x10original_request\x18\x03 \x01(\x0b\x32\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8c\x01\n\x1bPartialUpdateClusterRequest\x12\x37\n\x07\x63luster\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xce\x01\n\x17\x43reateAppProfileRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"U\n\x14GetAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\"~\n\x16ListAppProfilesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"v\n\x17\x44\x65leteAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\x12\x1c\n\x0fignore_warnings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\xda\x01\n\x15ListHotTabletsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"k\n\x16ListHotTabletsResponse\x12\x38\n\x0bhot_tablets\x18\x01 \x03(\x0b\x32#.google.bigtable.admin.v2.HotTablet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\x18\x43reateLogicalViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1c\n\x0flogical_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0clogical_view\x18\x03 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\"\xc7\x01\n\x19\x43reateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x15GetLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\"\x8c\x01\n\x17ListLogicalViewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"q\n\x18ListLogicalViewsResponse\x12<\n\rlogical_views\x18\x01 \x03(\x0b\x32%.google.bigtable.admin.v2.LogicalView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x92\x01\n\x18UpdateLogicalViewRequest\x12@\n\x0clogical_view\x18\x01 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xc7\x01\n\x19UpdateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"m\n\x18\x44\x65leteLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1d\x43reateMaterializedViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12!\n\x14materialized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11materialized_view\x18\x03 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\"\xd1\x01\n\x1e\x43reateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1aGetMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\n\x1cListMaterializedViewsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1dListMaterializedViewsResponse\x12\x46\n\x12materialized_views\x18\x01 \x03(\x0b\x32*.google.bigtable.admin.v2.MaterializedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa1\x01\n\x1dUpdateMaterializedViewRequest\x12J\n\x11materialized_view\x18\x01 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xd1\x01\n\x1eUpdateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1d\x44\x65leteMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xe6\x36\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16\x43reateInstanceMetadata\xda\x41$parent,instance_id,instance,clusters\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16UpdateInstanceMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\xda\x41\x19parent,cluster_id,cluster\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\x12\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\'\n\x07\x43luster\x12\x1cPartialUpdateClusterMetadata\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07\x63luster\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"h\xda\x41!parent,app_profile_id,app_profile\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\xda\x41\x17\x61pp_profile,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\xb4\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\xda\x41\x14name,ignore_warnings\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaa\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xde\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xb1\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xe5\x01\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xe8\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xfc\x01\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\xde\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xbf\x01\n\x0eListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a\x30.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\n\x11\x43reateLogicalView\x12\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41(\n\x0bLogicalView\x12\x19\x43reateLogicalViewMetadata\xda\x41#parent,logical_view,logical_view_id\x82\xd3\xe4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0clogical_view\x12\xa9\x01\n\x0eGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1a%.google.bigtable.admin.v2.LogicalView\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xbc\x01\n\x10ListLogicalViews\x12\x31.google.bigtable.admin.v2.ListLogicalViewsRequest\x1a\x32.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\n\x11UpdateLogicalView\x12\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41(\n\x0bLogicalView\x12\x19UpdateLogicalViewMetadata\xda\x41\x18logical_view,update_mask\x82\xd3\xe4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0clogical_view\x12\xa0\x01\n\x11\x44\x65leteLogicalView\x12\x32.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xa8\x02\n\x16\x43reateMaterializedView\x12\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41\x32\n\x10MaterializedView\x12\x1e\x43reateMaterializedViewMetadata\xda\x41-parent,materialized_view,materialized_view_id\x82\xd3\xe4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xbd\x01\n\x13GetMaterializedView\x12\x34.google.bigtable.admin.v2.GetMaterializedViewRequest\x1a*.google.bigtable.admin.v2.MaterializedView\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xd0\x01\n\x15ListMaterializedViews\x12\x36.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1a\x37.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/instances/*}/materializedViews\x12\xaa\x02\n\x16UpdateMaterializedView\x12\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x32\n\x10MaterializedView\x12\x1eUpdateMaterializedViewMetadata\xda\x41\x1dmaterialized_view,update_mask\x82\xd3\xe4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xaf\x01\n\x16\x44\x65leteMaterializedView\x12\x37.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xdd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass + GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass + ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass + ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass + PartialUpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass + DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass + CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass + GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass + ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass + ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass + DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass + CreateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass + UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass + CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass + CreateClusterMetadata::TableProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress").msgclass + CreateClusterMetadata::TableProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State").enummodule + UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass + PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass + PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass + CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass + GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass + ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass + ListAppProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass + UpdateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass + DeleteAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass + UpdateAppProfileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass + ListHotTabletsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsRequest").msgclass + ListHotTabletsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsResponse").msgclass + CreateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewRequest").msgclass + CreateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewMetadata").msgclass + GetLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetLogicalViewRequest").msgclass + ListLogicalViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsRequest").msgclass + ListLogicalViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsResponse").msgclass + UpdateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewRequest").msgclass + UpdateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewMetadata").msgclass + DeleteLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteLogicalViewRequest").msgclass + CreateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewRequest").msgclass + CreateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewMetadata").msgclass + GetMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetMaterializedViewRequest").msgclass + ListMaterializedViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsRequest").msgclass + ListMaterializedViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsResponse").msgclass + UpdateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewRequest").msgclass + UpdateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewMetadata").msgclass + DeleteMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteMaterializedViewRequest").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb new file mode 100644 index 000000000000..5719dfcb7960 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb @@ -0,0 +1,142 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2' +# Original file comments: +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/bigtable/admin/v2/bigtable_instance_admin_pb' + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin' + + # Create an instance within a project. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation + # Gets information about an instance. + rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance + # Lists information about instances in a project. + rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse + # Updates an instance within a project. This method updates only the display + # name and type for an Instance. To update other Instance properties, such as + # labels, use PartialUpdateInstance. + rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance + # Partially updates an instance within a project. This method can modify all + # fields of an Instance and is the preferred way to update an Instance. + rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation + # Delete an instance from a project. + rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty + # Creates a cluster within an instance. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation + # Gets information about a cluster. + rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster + # Lists information about clusters in an instance. + rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse + # Updates a cluster within an instance. + # + # Note that UpdateCluster does not support updating + # cluster_config.cluster_autoscaling_config. In order to update it, you + # must use PartialUpdateCluster. + rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation + # Partially updates a cluster within a project. This method is the preferred + # way to update a Cluster. + # + # To enable and update autoscaling, set + # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + # are ignored. Note that an update cannot simultaneously set serve_nodes to + # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + # also specify both in the update_mask. + # + # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + # and explicitly set a serve_node count via the update_mask. + rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation + # Deletes a cluster from an instance. + rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty + # Creates an app profile within an instance. + rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile + # Gets information about an app profile. + rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile + # Lists information about app profiles in an instance. + rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse + # Updates an app profile within an instance. + rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation + # Deletes an app profile from an instance. + rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty + # Gets the access control policy for an instance resource. Returns an empty + # policy if an instance exists but does not have a policy set. + rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy + # Sets the access control policy on an instance resource. Replaces any + # existing policy. + rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy + # Returns permissions that the caller has on the specified instance resource. + rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse + # Lists hot tablets in a cluster, within the time range provided. Hot + # tablets are ordered based on CPU usage. + rpc :ListHotTablets, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse + # Creates a logical view within an instance. + rpc :CreateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Google::Longrunning::Operation + # Gets information about a logical view. + rpc :GetLogicalView, ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Google::Cloud::Bigtable::Admin::V2::LogicalView + # Lists information about logical views in an instance. + rpc :ListLogicalViews, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse + # Updates a logical view within an instance. + rpc :UpdateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Google::Longrunning::Operation + # Deletes a logical view from an instance. + rpc :DeleteLogicalView, ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Google::Protobuf::Empty + # Creates a materialized view within an instance. + rpc :CreateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Google::Longrunning::Operation + # Gets information about a materialized view. + rpc :GetMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Google::Cloud::Bigtable::Admin::V2::MaterializedView + # Lists information about materialized views in an instance. + rpc :ListMaterializedViews, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse + # Updates a materialized view within an instance. + rpc :UpdateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Google::Longrunning::Operation + # Deletes a materialized view from an instance. + rpc :DeleteMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Google::Protobuf::Empty + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb new file mode 100644 index 000000000000..52a9ea2d2e01 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb @@ -0,0 +1,91 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/bigtable_table_admin.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/common_pb' +require 'google/bigtable/admin/v2/table_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x13RestoreTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info\"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\n\x12\x43reateTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"\xbe\x01\n\x1e\x43reateTableFromSnapshotRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0fsource_snapshot\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\n\x13\x44ropRowRangeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"\xad\x01\n\x11ListTablesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\x9d\x01\n\x12UpdateTableRequest\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13UpdateTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n\x12\x44\x65leteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"P\n\x14UndeleteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"\x83\x01\n\x15UndeleteTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x03\n\x1bModifyColumnFamiliesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xdb\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x12\x34\n\x0bupdate_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x05\n\x03mod\"[\n\x1fGenerateConsistencyTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"\xb2\x02\n\x17\x43heckConsistencyRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1bstandard_read_remote_writes\x18\x03 \x01(\x0b\x32\x32.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\n\x1c\x64\x61ta_boost_read_local_writes\x18\x04 \x01(\x0b\x32\x32.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00\x42\x06\n\x04mode\"\x1a\n\x18StandardReadRemoteWrites\"\x1a\n\x18\x44\x61taBoostReadLocalWrites\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\xe6\x01\n\x14SnapshotTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12=\n\x07\x63luster\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"Q\n\x12GetSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"{\n\x14ListSnapshotsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15\x44\x65leteSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa2\x01\n\x13\x43reateBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"M\n\x10GetBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"P\n\x13\x44\x65leteBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"\x9b\x01\n\x12ListBackupsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe3\x01\n\x11\x43opyBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rsource_backup\x18\x03 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xcd\x01\n\x12\x43opyBackupMetadata\x12\x36\n\x04name\x18\x01 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12@\n\x12source_backup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfo\x12=\n\x08progress\x18\x03 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\xcb\x01\n\x1b\x43reateAuthorizedViewRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1f\n\x12\x61uthorized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0f\x61uthorized_view\x18\x03 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\"\xd2\x01\n\x1c\x43reateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x1aListAuthorizedViewsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x04view\x18\x04 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"z\n\x1bListAuthorizedViewsResponse\x12\x42\n\x10\x61uthorized_views\x18\x01 \x03(\x0b\x32(.google.bigtable.admin.v2.AuthorizedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x18GetAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"\xb9\x01\n\x1bUpdateAuthorizedViewRequest\x12\x46\n\x0f\x61uthorized_view\x18\x01 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x1cUpdateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x1b\x44\x65leteAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x19\x43reateSchemaBundleRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1d\n\x10schema_bundle_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rschema_bundle\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\"\x88\x01\n\x1a\x43reateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x01\n\x19UpdateSchemaBundleRequest\x12\x42\n\rschema_bundle\x18\x01 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x1aUpdateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x16GetSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\n\x18ListSchemaBundlesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x19ListSchemaBundlesResponse\x12>\n\x0eschema_bundles\x18\x01 \x03(\x0b\x32&.google.bigtable.admin.v2.SchemaBundle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x19\x44\x65leteSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\x92@\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\xda\x41\x15parent,table_id,table\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\xda\x41\x1fparent,table_id,source_snapshot\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xce\x01\n\x0bUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1c\n\x05Table\x12\x13UpdateTableMetadata\xda\x41\x11table,update_mask\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xca\x41\x1e\n\x05Table\x12\x15UndeleteTableMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xa1\x02\n\x14\x43reateAuthorizedView\x12\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41.\n\x0e\x41uthorizedView\x12\x1c\x43reateAuthorizedViewMetadata\xda\x41)parent,authorized_view,authorized_view_id\x82\xd3\xe4\x93\x02O\"\x12\x12*\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass + Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule + Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule + AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass + AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass + Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass + Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass + Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass + Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass + Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule + Cluster::NodeScalingFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.NodeScalingFactor").enummodule + AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass + AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass + AppProfile::MultiClusterRoutingUseAny::RowAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity").msgclass + AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass + AppProfile::StandardIsolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.StandardIsolation").msgclass + AppProfile::DataBoostIsolationReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly").msgclass + AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner").enummodule + AppProfile::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.Priority").enummodule + HotTablet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.HotTablet").msgclass + LogicalView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.LogicalView").msgclass + MaterializedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.MaterializedView").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb new file mode 100644 index 000000000000..4b069137666b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/table.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/types_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/timestamp_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass + ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass + Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass + Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass + Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule + Table::AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.AutomatedBackupPolicy").msgclass + Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule + Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule + AuthorizedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView").msgclass + AuthorizedView::FamilySubsets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.FamilySubsets").msgclass + AuthorizedView::SubsetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.SubsetView").msgclass + AuthorizedView::ResponseView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.ResponseView").enummodule + ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass + GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass + GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass + GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass + EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass + EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule + Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass + Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule + Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass + Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule + Backup::BackupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.BackupType").enummodule + BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass + TieredStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageConfig").msgclass + TieredStorageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageRule").msgclass + ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ProtoSchema").msgclass + SchemaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SchemaBundle").msgclass + RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb new file mode 100644 index 000000000000..7a9e1c6a0620 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/types.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc7\x19\n\x04Type\x12:\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\n\x0bstring_type\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StringH\x00\x12:\n\nint64_type\x18\x05 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float64H\x00\x12\x38\n\tbool_type\x18\x08 \x01(\x0b\x32#.google.bigtable.admin.v2.Type.BoolH\x00\x12\x42\n\x0etimestamp_type\x18\n \x01(\x0b\x32(.google.bigtable.admin.v2.Type.TimestampH\x00\x12\x38\n\tdate_type\x18\x0b \x01(\x0b\x32#.google.bigtable.admin.v2.Type.DateH\x00\x12\x42\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\n\x0bstruct_type\x18\x07 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StructH\x00\x12:\n\narray_type\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ArrayH\x00\x12\x36\n\x08map_type\x18\x04 \x01(\x0b\x32\".google.bigtable.admin.v2.Type.MapH\x00\x12:\n\nproto_type\x18\r \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ProtoH\x00\x12\x38\n\tenum_type\x18\x0e \x01(\x0b\x32#.google.bigtable.admin.v2.Type.EnumH\x00\x1a\xa9\x01\n\x05\x42ytes\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1a_\n\x08\x45ncoding\x12@\n\x03raw\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\x9f\x02\n\x06String\x12@\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.Type.String.Encoding\x1a\xd2\x01\n\x08\x45ncoding\x12N\n\x08utf8_raw\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\r\n\x07Utf8Raw:\x02\x18\x01\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xfd\x02\n\x05Int64\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.Encoding\x1a\xb2\x02\n\x08\x45ncoding\x12X\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\n\x12ordered_code_bytes\x18\x02 \x01(\x0b\x32>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1aN\n\x0e\x42igEndianBytes\x12<\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\xb4\x01\n\tTimestamp\x12\x43\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1a\x62\n\x08\x45ncoding\x12J\n\x11unix_micros_int64\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00\x42\n\n\x08\x65ncoding\x1a\x06\n\x04\x44\x61te\x1a\xb9\x04\n\x06Struct\x12;\n\x06\x66ields\x18\x01 \x03(\x0b\x32+.google.bigtable.admin.v2.Type.Struct.Field\x12@\n\x08\x65ncoding\x18\x02 \x01(\x0b\x32..google.bigtable.admin.v2.Type.Struct.Encoding\x1aI\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xe4\x02\n\x08\x45ncoding\x12M\n\tsingleton\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\n\x0f\x64\x65limited_bytes\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\n\x12ordered_code_bytes\x18\x03 \x01(\x0b\x32?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1a\x0b\n\tSingleton\x1a#\n\x0e\x44\x65limitedBytes\x12\x11\n\tdelimiter\x18\x01 \x01(\x0c\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x37\n\x05Proto\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x14\n\x0cmessage_name\x18\x02 \x01(\t\x1a\x33\n\x04\x45num\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x11\n\tenum_name\x18\x02 \x01(\t\x1a=\n\x05\x41rray\x12\x34\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1ak\n\x03Map\x12\x30\n\x08key_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x32\n\nvalue_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xdb\x03\n\tAggregate\x12\x32\n\ninput_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x37\n\nstate_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.TypeB\x03\xe0\x41\x03\x12;\n\x03sum\x18\x04 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12\x65\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\n\x03max\x18\x06 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\n\x03min\x18\x07 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xcd\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type").msgclass + Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes").msgclass + Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding").msgclass + Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding.Raw").msgclass + Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String").msgclass + Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding").msgclass + Type::String::Encoding::Utf8Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw").msgclass + Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes").msgclass + Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64").msgclass + Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding").msgclass + Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes").msgclass + Type::Int64::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes").msgclass + Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bool").msgclass + Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float32").msgclass + Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float64").msgclass + Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp").msgclass + Type::Timestamp::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp.Encoding").msgclass + Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Date").msgclass + Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct").msgclass + Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Field").msgclass + Type::Struct::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding").msgclass + Type::Struct::Encoding::Singleton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.Singleton").msgclass + Type::Struct::Encoding::DelimitedBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes").msgclass + Type::Struct::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes").msgclass + Type::Proto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Proto").msgclass + Type::Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Enum").msgclass + Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Array").msgclass + Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Map").msgclass + Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate").msgclass + Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Sum").msgclass + Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Max").msgclass + Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Min").msgclass + Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb new file mode 100644 index 000000000000..19a6f94a9e3e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" +require "google/cloud/bigtable/admin/v2/version" + +module Google + module Cloud + module Bigtable + module Admin + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + module V2 + end + end + end + end +end + +helper_path = ::File.join __dir__, "v2", "_helpers.rb" +require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb new file mode 100644 index 000000000000..aeb89a361209 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/bigtable/admin/v2/version" + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + ## + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + module BigtableInstanceAdmin + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb new file mode 100644 index 000000000000..4dbd45245ace --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb @@ -0,0 +1,3710 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + ## + # Client for the BigtableInstanceAdmin service. + # + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bigtable_instance_admin_stub + + ## + # Configure the BigtableInstanceAdmin Client class. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BigtableInstanceAdmin clients + # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.create_instance.timeout = 300.0 + + default_config.rpcs.get_instance.timeout = 60.0 + default_config.rpcs.get_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_instances.timeout = 60.0 + default_config.rpcs.list_instances.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_instance.timeout = 60.0 + default_config.rpcs.update_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.partial_update_instance.timeout = 60.0 + default_config.rpcs.partial_update_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_instance.timeout = 60.0 + + default_config.rpcs.create_cluster.timeout = 60.0 + + default_config.rpcs.get_cluster.timeout = 60.0 + default_config.rpcs.get_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_clusters.timeout = 60.0 + default_config.rpcs.list_clusters.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_cluster.timeout = 60.0 + default_config.rpcs.update_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_cluster.timeout = 60.0 + + default_config.rpcs.create_app_profile.timeout = 60.0 + + default_config.rpcs.get_app_profile.timeout = 60.0 + default_config.rpcs.get_app_profile.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_app_profiles.timeout = 60.0 + default_config.rpcs.list_app_profiles.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_app_profile.timeout = 60.0 + default_config.rpcs.update_app_profile.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_app_profile.timeout = 60.0 + + default_config.rpcs.get_iam_policy.timeout = 60.0 + default_config.rpcs.get_iam_policy.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.set_iam_policy.timeout = 60.0 + + default_config.rpcs.test_iam_permissions.timeout = 60.0 + default_config.rpcs.test_iam_permissions.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_hot_tablets.timeout = 60.0 + default_config.rpcs.list_hot_tablets.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableInstanceAdmin Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bigtable_instance_admin_stub.universe_domain + end + + ## + # Create a new BigtableInstanceAdmin client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BigtableInstanceAdmin client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @bigtable_instance_admin_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @bigtable_instance_admin_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations] + # + attr_reader :operations_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @bigtable_instance_admin_stub.logger + end + + # Service calls + + ## + # Create an instance within a project. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + # + # @overload create_instance(request, options = nil) + # Pass arguments to `create_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_instance(parent: nil, instance_id: nil, instance: nil, clusters: nil) + # Pass arguments to `create_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the project in which to create the new + # instance. Values are of the form `projects/{project}`. + # @param instance_id [::String] + # Required. The ID to be used when referring to the new instance within its + # project, e.g., just `myinstance` rather than + # `projects/myproject/instances/myinstance`. + # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # Required. The instance to create. + # Fields marked `OutputOnly` must be left blank. + # @param clusters [::Hash{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash}] + # Required. The clusters to be created within the instance, mapped by desired + # cluster ID, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # Fields marked `OutputOnly` must be left blank. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new + # + # # Call the create_instance method. + # result = client.create_instance request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an instance. + # + # @overload get_instance(request, options = nil) + # Pass arguments to `get_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_instance(name: nil) + # Pass arguments to `get_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested instance. Values are of the form + # `projects/{project}/instances/{instance}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new + # + # # Call the get_instance method. + # result = client.get_instance request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + # p result + # + def get_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about instances in a project. + # + # @overload list_instances(request, options = nil) + # Pass arguments to `list_instances` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_instances(parent: nil, page_token: nil) + # Pass arguments to `list_instances` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the project for which a list of instances is + # requested. Values are of the form `projects/{project}`. + # @param page_token [::String] + # DEPRECATED: This field is unused and ignored. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new + # + # # Call the list_instances method. + # result = client.list_instances request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. + # p result + # + def list_instances request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_instances.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_instances.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_instances.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an instance within a project. This method updates only the display + # name and type for an Instance. To update other Instance properties, such as + # labels, use PartialUpdateInstance. + # + # @overload update_instance(request, options = nil) + # Pass arguments to `update_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::Instance} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_instance(name: nil, display_name: nil, type: nil, labels: nil, tags: nil) + # Pass arguments to `update_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The unique name of the instance. Values are of the form + # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + # @param display_name [::String] + # Required. The descriptive name for this instance as it appears in UIs. + # Can be changed at any time, but should be kept globally unique + # to avoid confusion. + # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] + # The type of the instance. Defaults to `PRODUCTION`. + # @param labels [::Hash{::String => ::String}] + # Labels are a flexible and lightweight mechanism for organizing cloud + # resources into groups that reflect a customer's organizational needs and + # deployment strategies. They can be used to filter resources and aggregate + # metrics. + # + # * Label keys must be between 1 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + # * Label values must be between 0 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + # * No more than 64 labels can be associated with a given resource. + # * Keys and values must both be under 128 bytes. + # @param tags [::Hash{::String => ::String}] + # Optional. Input only. Immutable. Tag keys/values directly bound to this + # resource. For example: + # - "123/environment": "production", + # - "123/costCenter": "marketing" + # + # Tags and Labels (above) are both used to bind metadata to resources, with + # different use-cases. See + # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + # in-depth overview on the difference between tags and labels. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::Instance.new + # + # # Call the update_instance method. + # result = client.update_instance request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + # p result + # + def update_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Instance + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Partially updates an instance within a project. This method can modify all + # fields of an Instance and is the preferred way to update an Instance. + # + # @overload partial_update_instance(request, options = nil) + # Pass arguments to `partial_update_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload partial_update_instance(instance: nil, update_mask: nil) + # Pass arguments to `partial_update_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # Required. The Instance which will (partially) replace the current value. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of Instance fields which should be replaced. + # Must be explicitly set. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new + # + # # Call the partial_update_instance method. + # result = client.partial_update_instance request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def partial_update_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.partial_update_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.instance&.name + header_params["instance.name"] = request.instance.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.partial_update_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete an instance from a project. + # + # @overload delete_instance(request, options = nil) + # Pass arguments to `delete_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_instance(name: nil) + # Pass arguments to `delete_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the instance to be deleted. + # Values are of the form `projects/{project}/instances/{instance}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new + # + # # Call the delete_instance method. + # result = client.delete_instance request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a cluster within an instance. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + # + # @overload create_cluster(request, options = nil) + # Pass arguments to `create_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil) + # Pass arguments to `create_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the new + # cluster. Values are of the form `projects/{project}/instances/{instance}`. + # @param cluster_id [::String] + # Required. The ID to be used when referring to the new cluster within its + # instance, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # Required. The cluster to be created. + # Fields marked `OutputOnly` must be left blank. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new + # + # # Call the create_cluster method. + # result = client.create_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a cluster. + # + # @overload get_cluster(request, options = nil) + # Pass arguments to `get_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_cluster(name: nil) + # Pass arguments to `get_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new + # + # # Call the get_cluster method. + # result = client.get_cluster request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. + # p result + # + def get_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about clusters in an instance. + # + # @overload list_clusters(request, options = nil) + # Pass arguments to `list_clusters` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_clusters(parent: nil, page_token: nil) + # Pass arguments to `list_clusters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which a list of clusters is + # requested. Values are of the form + # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + # Clusters for all Instances in a project, e.g., + # `projects/myproject/instances/-`. + # @param page_token [::String] + # DEPRECATED: This field is unused and ignored. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new + # + # # Call the list_clusters method. + # result = client.list_clusters request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. + # p result + # + def list_clusters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_clusters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_clusters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_clusters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a cluster within an instance. + # + # Note that UpdateCluster does not support updating + # cluster_config.cluster_autoscaling_config. In order to update it, you + # must use PartialUpdateCluster. + # + # @overload update_cluster(request, options = nil) + # Pass arguments to `update_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_cluster(name: nil, location: nil, serve_nodes: nil, node_scaling_factor: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil) + # Pass arguments to `update_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The unique name of the cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + # @param location [::String] + # Immutable. The location where this cluster's nodes and storage reside. For + # best performance, clients should be located as close as possible to this + # cluster. Currently only zones are supported, so values should be of the + # form `projects/{project}/locations/{zone}`. + # @param serve_nodes [::Integer] + # The number of nodes in the cluster. If no value is set, + # Cloud Bigtable automatically allocates nodes based on your data footprint + # and optimized for 50% storage utilization. + # @param node_scaling_factor [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] + # Immutable. The node scaling factor of this cluster. + # @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash] + # Configuration for this cluster. + # @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType] + # Immutable. The type of storage used by this cluster to serve its + # parent instance's tables, unless explicitly overridden. + # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash] + # Immutable. The encryption configuration for CMEK-protected clusters. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::Cluster.new + # + # # Call the update_cluster method. + # result = client.update_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Partially updates a cluster within a project. This method is the preferred + # way to update a Cluster. + # + # To enable and update autoscaling, set + # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + # are ignored. Note that an update cannot simultaneously set serve_nodes to + # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + # also specify both in the update_mask. + # + # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + # and explicitly set a serve_node count via the update_mask. + # + # @overload partial_update_cluster(request, options = nil) + # Pass arguments to `partial_update_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload partial_update_cluster(cluster: nil, update_mask: nil) + # Pass arguments to `partial_update_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # Required. The Cluster which contains the partial updates to be applied, + # subject to the update_mask. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of Cluster fields which should be replaced. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new + # + # # Call the partial_update_cluster method. + # result = client.partial_update_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def partial_update_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.partial_update_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.cluster&.name + header_params["cluster.name"] = request.cluster.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.partial_update_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a cluster from an instance. + # + # @overload delete_cluster(request, options = nil) + # Pass arguments to `delete_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_cluster(name: nil) + # Pass arguments to `delete_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the cluster to be deleted. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new + # + # # Call the delete_cluster method. + # result = client.delete_cluster request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an app profile within an instance. + # + # @overload create_app_profile(request, options = nil) + # Pass arguments to `create_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_app_profile(parent: nil, app_profile_id: nil, app_profile: nil, ignore_warnings: nil) + # Pass arguments to `create_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the new app + # profile. Values are of the form `projects/{project}/instances/{instance}`. + # @param app_profile_id [::String] + # Required. The ID to be used when referring to the new app profile within + # its instance, e.g., just `myprofile` rather than + # `projects/myproject/instances/myinstance/appProfiles/myprofile`. + # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] + # Required. The app profile to be created. + # Fields marked `OutputOnly` will be ignored. + # @param ignore_warnings [::Boolean] + # If true, ignore safety checks when creating the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new + # + # # Call the create_app_profile method. + # result = client.create_app_profile request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p result + # + def create_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an app profile. + # + # @overload get_app_profile(request, options = nil) + # Pass arguments to `get_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_app_profile(name: nil) + # Pass arguments to `get_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested app profile. Values are of the + # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new + # + # # Call the get_app_profile method. + # result = client.get_app_profile request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p result + # + def get_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about app profiles in an instance. + # + # @overload list_app_profiles(request, options = nil) + # Pass arguments to `list_app_profiles` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_app_profiles(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_app_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which a list of app profiles + # is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + # e.g., `projects/myproject/instances/-`. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new + # + # # Call the list_app_profiles method. + # result = client.list_app_profiles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p item + # end + # + def list_app_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_app_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_app_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_app_profiles, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an app profile within an instance. + # + # @overload update_app_profile(request, options = nil) + # Pass arguments to `update_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_app_profile(app_profile: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] + # Required. The app profile which will (partially) replace the current value. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of app profile fields which should be replaced. + # If unset, all fields will be replaced. + # @param ignore_warnings [::Boolean] + # If true, ignore safety checks when updating the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new + # + # # Call the update_app_profile method. + # result = client.update_app_profile request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.app_profile&.name + header_params["app_profile.name"] = request.app_profile.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an app profile from an instance. + # + # @overload delete_app_profile(request, options = nil) + # Pass arguments to `delete_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_app_profile(name: nil, ignore_warnings: nil) + # Pass arguments to `delete_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the app profile to be deleted. Values are of + # the form + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # @param ignore_warnings [::Boolean] + # Required. If true, ignore safety checks when deleting the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new + # + # # Call the delete_app_profile method. + # result = client.delete_app_profile request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for an instance resource. Returns an empty + # policy if an instance exists but does not have a policy set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on an instance resource. Replaces any + # existing policy. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns permissions that the caller has on the specified instance resource. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists hot tablets in a cluster, within the time range provided. Hot + # tablets are ordered based on CPU usage. + # + # @overload list_hot_tablets(request, options = nil) + # Pass arguments to `list_hot_tablets` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_hot_tablets(parent: nil, start_time: nil, end_time: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_hot_tablets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The cluster name to list hot tablets. + # Value is in the following form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # The start time to list hot tablets. The hot tablets in the response will + # have start times between the requested start time and end time. Start time + # defaults to Now if it is unset, and end time defaults to Now - 24 hours if + # it is unset. The start time should be less than the end time, and the + # maximum allowed time range between start time and end time is 48 hours. + # Start time and end time should have values between Now and Now - 14 days. + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # The end time to list hot tablets. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size that is empty or zero lets the server choose the number of + # items to return. A page_size which is strictly positive will return at most + # that many items. A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls do not need a + # page_size field. If a page_size is set in subsequent calls, it must match + # the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new + # + # # Call the list_hot_tablets method. + # result = client.list_hot_tablets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. + # p item + # end + # + def list_hot_tablets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_hot_tablets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_hot_tablets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_hot_tablets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_hot_tablets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_hot_tablets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a logical view within an instance. + # + # @overload create_logical_view(request, options = nil) + # Pass arguments to `create_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_logical_view(parent: nil, logical_view_id: nil, logical_view: nil) + # Pass arguments to `create_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent instance where this logical view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @param logical_view_id [::String] + # Required. The ID to use for the logical view, which will become the final + # component of the logical view's resource name. + # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] + # Required. The logical view to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new + # + # # Call the create_logical_view method. + # result = client.create_logical_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_logical_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a logical view. + # + # @overload get_logical_view(request, options = nil) + # Pass arguments to `get_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_logical_view(name: nil) + # Pass arguments to `get_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested logical view. Values are of the + # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new + # + # # Call the get_logical_view method. + # result = client.get_logical_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. + # p result + # + def get_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_logical_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about logical views in an instance. + # + # @overload list_logical_views(request, options = nil) + # Pass arguments to `list_logical_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_logical_views(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_logical_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which the list of logical + # views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @param page_size [::Integer] + # Optional. The maximum number of logical views to return. The service may + # return fewer than this value + # @param page_token [::String] + # Optional. A page token, received from a previous `ListLogicalViews` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListLogicalViews` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new + # + # # Call the list_logical_views method. + # result = client.list_logical_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. + # p item + # end + # + def list_logical_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_logical_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_logical_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_logical_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_logical_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_logical_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a logical view within an instance. + # + # @overload update_logical_view(request, options = nil) + # Pass arguments to `update_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_logical_view(logical_view: nil, update_mask: nil) + # Pass arguments to `update_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] + # Required. The logical view to update. + # + # The logical view's `name` field is used to identify the view to update. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new + # + # # Call the update_logical_view method. + # result = client.update_logical_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.logical_view&.name + header_params["logical_view.name"] = request.logical_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_logical_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a logical view from an instance. + # + # @overload delete_logical_view(request, options = nil) + # Pass arguments to `delete_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_logical_view(name: nil, etag: nil) + # Pass arguments to `delete_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the logical view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @param etag [::String] + # Optional. The current etag of the logical view. + # If an etag is provided and does not match the current etag of the + # logical view, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new + # + # # Call the delete_logical_view method. + # result = client.delete_logical_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_logical_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a materialized view within an instance. + # + # @overload create_materialized_view(request, options = nil) + # Pass arguments to `create_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_materialized_view(parent: nil, materialized_view_id: nil, materialized_view: nil) + # Pass arguments to `create_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent instance where this materialized view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @param materialized_view_id [::String] + # Required. The ID to use for the materialized view, which will become the + # final component of the materialized view's resource name. + # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] + # Required. The materialized view to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new + # + # # Call the create_materialized_view method. + # result = client.create_materialized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_materialized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a materialized view. + # + # @overload get_materialized_view(request, options = nil) + # Pass arguments to `get_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_materialized_view(name: nil) + # Pass arguments to `get_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested materialized view. Values are of + # the form + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new + # + # # Call the get_materialized_view method. + # result = client.get_materialized_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. + # p result + # + def get_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_materialized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about materialized views in an instance. + # + # @overload list_materialized_views(request, options = nil) + # Pass arguments to `list_materialized_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_materialized_views(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_materialized_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which the list of + # materialized views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @param page_size [::Integer] + # Optional. The maximum number of materialized views to return. The service + # may return fewer than this value + # @param page_token [::String] + # Optional. A page token, received from a previous `ListMaterializedViews` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListMaterializedViews` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new + # + # # Call the list_materialized_views method. + # result = client.list_materialized_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. + # p item + # end + # + def list_materialized_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_materialized_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_materialized_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_materialized_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_materialized_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_materialized_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a materialized view within an instance. + # + # @overload update_materialized_view(request, options = nil) + # Pass arguments to `update_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_materialized_view(materialized_view: nil, update_mask: nil) + # Pass arguments to `update_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] + # Required. The materialized view to update. + # + # The materialized view's `name` field is used to identify the view to + # update. Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new + # + # # Call the update_materialized_view method. + # result = client.update_materialized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.materialized_view&.name + header_params["materialized_view.name"] = request.materialized_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_materialized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a materialized view from an instance. + # + # @overload delete_materialized_view(request, options = nil) + # Pass arguments to `delete_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_materialized_view(name: nil, etag: nil) + # Pass arguments to `delete_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the materialized view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @param etag [::String] + # Optional. The current etag of the materialized view. + # If an etag is provided and does not match the current etag of the + # materialized view, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new + # + # # Call the delete_materialized_view method. + # result = client.delete_materialized_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_materialized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the BigtableInstanceAdmin API. + # + # This class represents the configuration for BigtableInstanceAdmin, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_instance to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_instance.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_instance.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BigtableInstanceAdmin API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :create_instance + ## + # RPC-specific configuration for `get_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :get_instance + ## + # RPC-specific configuration for `list_instances` + # @return [::Gapic::Config::Method] + # + attr_reader :list_instances + ## + # RPC-specific configuration for `update_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :update_instance + ## + # RPC-specific configuration for `partial_update_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :partial_update_instance + ## + # RPC-specific configuration for `delete_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_instance + ## + # RPC-specific configuration for `create_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :create_cluster + ## + # RPC-specific configuration for `get_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :get_cluster + ## + # RPC-specific configuration for `list_clusters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_clusters + ## + # RPC-specific configuration for `update_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :update_cluster + ## + # RPC-specific configuration for `partial_update_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :partial_update_cluster + ## + # RPC-specific configuration for `delete_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_cluster + ## + # RPC-specific configuration for `create_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :create_app_profile + ## + # RPC-specific configuration for `get_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :get_app_profile + ## + # RPC-specific configuration for `list_app_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_app_profiles + ## + # RPC-specific configuration for `update_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :update_app_profile + ## + # RPC-specific configuration for `delete_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_app_profile + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + ## + # RPC-specific configuration for `list_hot_tablets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_hot_tablets + ## + # RPC-specific configuration for `create_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_logical_view + ## + # RPC-specific configuration for `get_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_logical_view + ## + # RPC-specific configuration for `list_logical_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_logical_views + ## + # RPC-specific configuration for `update_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_logical_view + ## + # RPC-specific configuration for `delete_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_logical_view + ## + # RPC-specific configuration for `create_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_materialized_view + ## + # RPC-specific configuration for `get_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_materialized_view + ## + # RPC-specific configuration for `list_materialized_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_materialized_views + ## + # RPC-specific configuration for `update_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_materialized_view + ## + # RPC-specific configuration for `delete_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_materialized_view + + # @private + def initialize parent_rpcs = nil + create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance + @create_instance = ::Gapic::Config::Method.new create_instance_config + get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance + @get_instance = ::Gapic::Config::Method.new get_instance_config + list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances + @list_instances = ::Gapic::Config::Method.new list_instances_config + update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance + @update_instance = ::Gapic::Config::Method.new update_instance_config + partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance + @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config + delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance + @delete_instance = ::Gapic::Config::Method.new delete_instance_config + create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster + @create_cluster = ::Gapic::Config::Method.new create_cluster_config + get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster + @get_cluster = ::Gapic::Config::Method.new get_cluster_config + list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters + @list_clusters = ::Gapic::Config::Method.new list_clusters_config + update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster + @update_cluster = ::Gapic::Config::Method.new update_cluster_config + partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster + @partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config + delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster + @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config + create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile + @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config + get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile + @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config + list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles + @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config + update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile + @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config + delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile + @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + list_hot_tablets_config = parent_rpcs.list_hot_tablets if parent_rpcs.respond_to? :list_hot_tablets + @list_hot_tablets = ::Gapic::Config::Method.new list_hot_tablets_config + create_logical_view_config = parent_rpcs.create_logical_view if parent_rpcs.respond_to? :create_logical_view + @create_logical_view = ::Gapic::Config::Method.new create_logical_view_config + get_logical_view_config = parent_rpcs.get_logical_view if parent_rpcs.respond_to? :get_logical_view + @get_logical_view = ::Gapic::Config::Method.new get_logical_view_config + list_logical_views_config = parent_rpcs.list_logical_views if parent_rpcs.respond_to? :list_logical_views + @list_logical_views = ::Gapic::Config::Method.new list_logical_views_config + update_logical_view_config = parent_rpcs.update_logical_view if parent_rpcs.respond_to? :update_logical_view + @update_logical_view = ::Gapic::Config::Method.new update_logical_view_config + delete_logical_view_config = parent_rpcs.delete_logical_view if parent_rpcs.respond_to? :delete_logical_view + @delete_logical_view = ::Gapic::Config::Method.new delete_logical_view_config + create_materialized_view_config = parent_rpcs.create_materialized_view if parent_rpcs.respond_to? :create_materialized_view + @create_materialized_view = ::Gapic::Config::Method.new create_materialized_view_config + get_materialized_view_config = parent_rpcs.get_materialized_view if parent_rpcs.respond_to? :get_materialized_view + @get_materialized_view = ::Gapic::Config::Method.new get_materialized_view_config + list_materialized_views_config = parent_rpcs.list_materialized_views if parent_rpcs.respond_to? :list_materialized_views + @list_materialized_views = ::Gapic::Config::Method.new list_materialized_views_config + update_materialized_view_config = parent_rpcs.update_materialized_view if parent_rpcs.respond_to? :update_materialized_view + @update_materialized_view = ::Gapic::Config::Method.new update_materialized_view_config + delete_materialized_view_config = parent_rpcs.delete_materialized_view if parent_rpcs.respond_to? :delete_materialized_view + @delete_materialized_view = ::Gapic::Config::Method.new delete_materialized_view_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb new file mode 100644 index 000000000000..4b166e3ac286 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Credentials for the BigtableInstanceAdmin API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.cluster", + "https://www.googleapis.com/auth/bigtable.admin.instance", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + self.env_vars = [ + "BIGTABLE_CREDENTIALS", + "BIGTABLE_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "BIGTABLE_CREDENTIALS_JSON", + "BIGTABLE_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb new file mode 100644 index 000000000000..d49308f480c1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb @@ -0,0 +1,843 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BigtableInstanceAdmin Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableInstanceAdmin Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb new file mode 100644 index 000000000000..8ee57571df69 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb @@ -0,0 +1,180 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Path helper methods for the BigtableInstanceAdmin API. + module Paths + ## + # Create a fully-qualified AppProfile resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}` + # + # @param project [String] + # @param instance [String] + # @param app_profile [String] + # + # @return [::String] + def app_profile_path project:, instance:, app_profile: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/appProfiles/#{app_profile}" + end + + ## + # Create a fully-qualified Cluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # + # @return [::String] + def cluster_path project:, instance:, cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}" + end + + ## + # Create a fully-qualified CryptoKey resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # + # @return [::String] + def crypto_key_path project:, location:, key_ring:, crypto_key: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" + end + + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}` + # + # @param project [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/instances/#{instance}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified LogicalView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + # + # @param project [String] + # @param instance [String] + # @param logical_view [String] + # + # @return [::String] + def logical_view_path project:, instance:, logical_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/logicalViews/#{logical_view}" + end + + ## + # Create a fully-qualified MaterializedView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + # + # @param project [String] + # @param instance [String] + # @param materialized_view [String] + # + # @return [::String] + def materialized_view_path project:, instance:, materialized_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/materializedViews/#{materialized_view}" + end + + ## + # Create a fully-qualified Project resource string. + # + # The resource will be in the following format: + # + # `projects/{project}` + # + # @param project [String] + # + # @return [::String] + def project_path project: + "projects/#{project}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb new file mode 100644 index 000000000000..cc08c6872c99 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/bigtable/admin/v2/version" + +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/paths" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/operations" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/client" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + ## + # Service for creating, configuring, and deleting Cloud Bigtable tables. + # + # + # Provides access to the table schemas only, not the data stored within + # the tables. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + module BigtableTableAdmin + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "bigtable_table_admin", "helpers.rb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb new file mode 100644 index 000000000000..a6a0d9ba05cd --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb @@ -0,0 +1,4266 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/bigtable/admin/v2/bigtable_table_admin_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + ## + # Client for the BigtableTableAdmin service. + # + # Service for creating, configuring, and deleting Cloud Bigtable tables. + # + # + # Provides access to the table schemas only, not the data stored within + # the tables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bigtable_table_admin_stub + + ## + # Configure the BigtableTableAdmin Client class. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BigtableTableAdmin clients + # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.create_table.timeout = 300.0 + + default_config.rpcs.list_tables.timeout = 60.0 + default_config.rpcs.list_tables.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.get_table.timeout = 60.0 + default_config.rpcs.get_table.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_table.timeout = 300.0 + + default_config.rpcs.modify_column_families.timeout = 300.0 + + default_config.rpcs.drop_row_range.timeout = 3600.0 + + default_config.rpcs.generate_consistency_token.timeout = 60.0 + default_config.rpcs.generate_consistency_token.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.check_consistency.timeout = 3600.0 + default_config.rpcs.check_consistency.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.get_snapshot.timeout = 60.0 + default_config.rpcs.get_snapshot.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_snapshots.timeout = 60.0 + default_config.rpcs.list_snapshots.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_snapshot.timeout = 300.0 + + default_config.rpcs.create_backup.timeout = 60.0 + + default_config.rpcs.get_backup.timeout = 60.0 + default_config.rpcs.get_backup.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_backup.timeout = 60.0 + + default_config.rpcs.delete_backup.timeout = 300.0 + + default_config.rpcs.list_backups.timeout = 60.0 + default_config.rpcs.list_backups.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.restore_table.timeout = 60.0 + + default_config.rpcs.get_iam_policy.timeout = 60.0 + default_config.rpcs.get_iam_policy.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.set_iam_policy.timeout = 60.0 + + default_config.rpcs.test_iam_permissions.timeout = 60.0 + default_config.rpcs.test_iam_permissions.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableTableAdmin Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bigtable_table_admin_stub.universe_domain + end + + ## + # Create a new BigtableTableAdmin client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BigtableTableAdmin client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @bigtable_table_admin_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @bigtable_table_admin_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations] + # + attr_reader :operations_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @bigtable_table_admin_stub.logger + end + + # Service calls + + ## + # Creates a new table in the specified instance. + # The table can be created with a full set of initial column families, + # specified in the request. + # + # @overload create_table(request, options = nil) + # Pass arguments to `create_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_table(parent: nil, table_id: nil, table: nil, initial_splits: nil) + # Pass arguments to `create_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @param table_id [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # Maximum 50 characters. + # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] + # Required. The Table to create. + # @param initial_splits [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, ::Hash>] + # The optional list of row keys that will be used to initially split the + # table into several tablets (tablets are similar to HBase regions). + # Given two split keys, `s1` and `s2`, three tablets will be created, + # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + # + # Example: + # + # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + # `"other", "zz"]` + # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + # * Key assignment: + # - Tablet 1 `[, apple) => {"a"}.` + # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + # - Tablet 4 `[customer_2, other) => {"customer_2"}.` + # - Tablet 5 `[other, ) => {"other", "zz"}.` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new + # + # # Call the create_table method. + # result = client.create_table request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def create_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new table from the specified snapshot. The target table must + # not exist. The snapshot and the table must be in the same instance. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload create_table_from_snapshot(request, options = nil) + # Pass arguments to `create_table_from_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_table_from_snapshot(parent: nil, table_id: nil, source_snapshot: nil) + # Pass arguments to `create_table_from_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @param table_id [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # @param source_snapshot [::String] + # Required. The unique name of the snapshot from which to restore the table. + # The snapshot and the table must be in the same instance. Values are of the + # form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new + # + # # Call the create_table_from_snapshot method. + # result = client.create_table_from_snapshot request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_table_from_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_table_from_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all tables served from a specified instance. + # + # @overload list_tables(request, options = nil) + # Pass arguments to `list_tables` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_tables(parent: nil, view: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_tables` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which tables should be + # listed. Values are of the form `projects/{project}/instances/{instance}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned tables' fields. + # NAME_ONLY view (default) and REPLICATION_VIEW are supported. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new + # + # # Call the list_tables method. + # result = client.list_tables request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. + # p item + # end + # + def list_tables request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_tables.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_tables.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_tables.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_tables, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified table. + # + # @overload get_table(request, options = nil) + # Pass arguments to `get_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_table(name: nil, view: nil) + # Pass arguments to `get_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested table. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned table's fields. + # Defaults to `SCHEMA_VIEW` if unspecified. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new + # + # # Call the get_table method. + # result = client.get_table request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def get_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a specified table. + # + # @overload update_table(request, options = nil) + # Pass arguments to `update_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_table(table: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] + # Required. The table to update. + # The table's `name` field is used to identify the table to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to update. + # A mask specifying which fields (e.g. `change_stream_config`) in the `table` + # field should be updated. This mask is relative to the `table` field, not to + # the request message. The wildcard (*) path is currently not supported. + # Currently UpdateTable is only supported for the following fields: + # + # * `change_stream_config` + # * `change_stream_config.retention_period` + # * `deletion_protection` + # * `row_key_schema` + # + # If `column_families` is set in `update_mask`, it will return an + # UNIMPLEMENTED error. + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore safety checks when updating the table. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new + # + # # Call the update_table method. + # result = client.update_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.table&.name + header_params["table.name"] = request.table.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes a specified table and all of its data. + # + # @overload delete_table(request, options = nil) + # Pass arguments to `delete_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_table(name: nil) + # Pass arguments to `delete_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new + # + # # Call the delete_table method. + # result = client.delete_table request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Restores a specified table which was accidentally deleted. + # + # @overload undelete_table(request, options = nil) + # Pass arguments to `undelete_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload undelete_table(name: nil) + # Pass arguments to `undelete_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to be restored. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new + # + # # Call the undelete_table method. + # result = client.undelete_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def undelete_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.undelete_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.undelete_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.undelete_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new AuthorizedView in a table. + # + # @overload create_authorized_view(request, options = nil) + # Pass arguments to `create_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_authorized_view(parent: nil, authorized_view_id: nil, authorized_view: nil) + # Pass arguments to `create_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. This is the name of the table the AuthorizedView belongs to. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param authorized_view_id [::String] + # Required. The id of the AuthorizedView to create. This AuthorizedView must + # not already exist. The `authorized_view_id` appended to `parent` forms the + # full AuthorizedView name of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] + # Required. The AuthorizedView to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new + # + # # Call the create_authorized_view method. + # result = client.create_authorized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_authorized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all AuthorizedViews from a specific table. + # + # @overload list_authorized_views(request, options = nil) + # Pass arguments to `list_authorized_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_authorized_views(parent: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `list_authorized_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the table for which AuthorizedViews should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param page_size [::Integer] + # Optional. Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # Optional. The value of `next_page_token` returned by a previous call. + # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedViews' + # fields. Default to NAME_ONLY. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new + # + # # Call the list_authorized_views method. + # result = client.list_authorized_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + # p item + # end + # + def list_authorized_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_authorized_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_authorized_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_authorized_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_authorized_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_authorized_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information from a specified AuthorizedView. + # + # @overload get_authorized_view(request, options = nil) + # Pass arguments to `get_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_authorized_view(name: nil, view: nil) + # Pass arguments to `get_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedView's + # fields. Default to BASIC. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new + # + # # Call the get_authorized_view method. + # result = client.get_authorized_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + # p result + # + def get_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_authorized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an AuthorizedView in a table. + # + # @overload update_authorized_view(request, options = nil) + # Pass arguments to `update_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_authorized_view(authorized_view: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] + # Required. The AuthorizedView to update. The `name` in `authorized_view` is + # used to identify the AuthorizedView. AuthorizedView name must in this + # format: + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # A mask specifying which fields in the AuthorizedView resource should be + # updated. This mask is relative to the AuthorizedView resource, not to the + # request message. A field will be overwritten if it is in the mask. If + # empty, all fields set in the request will be overwritten. A special value + # `*` means to overwrite all fields (including fields not set in the + # request). + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore the safety checks when updating the + # AuthorizedView. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new + # + # # Call the update_authorized_view method. + # result = client.update_authorized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.authorized_view&.name + header_params["authorized_view.name"] = request.authorized_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_authorized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes a specified AuthorizedView. + # + # @overload delete_authorized_view(request, options = nil) + # Pass arguments to `delete_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_authorized_view(name: nil, etag: nil) + # Pass arguments to `delete_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the AuthorizedView to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param etag [::String] + # Optional. The current etag of the AuthorizedView. + # If an etag is provided and does not match the current etag of the + # AuthorizedView, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new + # + # # Call the delete_authorized_view method. + # result = client.delete_authorized_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_authorized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a series of column family modifications on the specified table. + # Either all or none of the modifications will occur before this method + # returns, but data requests received prior to that point may see a table + # where only some modifications have taken effect. + # + # @overload modify_column_families(request, options = nil) + # Pass arguments to `modify_column_families` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload modify_column_families(name: nil, modifications: nil, ignore_warnings: nil) + # Pass arguments to `modify_column_families` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table whose families should be modified. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param modifications [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, ::Hash>] + # Required. Modifications to be atomically applied to the specified table's + # families. Entries are applied in order, meaning that earlier modifications + # can be masked by later ones (in the case of repeated updates to the same + # family, for example). + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore safety checks when modifying the column families. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new + # + # # Call the modify_column_families method. + # result = client.modify_column_families request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def modify_column_families request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.modify_column_families.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout, + metadata: metadata, + retry_policy: @config.rpcs.modify_column_families.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently drop/delete a row range from a specified table. The request can + # specify whether to delete all rows in a table, or only those that match a + # particular prefix. + # + # @overload drop_row_range(request, options = nil) + # Pass arguments to `drop_row_range` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload drop_row_range(name: nil, row_key_prefix: nil, delete_all_data_from_table: nil) + # Pass arguments to `drop_row_range` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table on which to drop a range of rows. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param row_key_prefix [::String] + # Delete all rows that start with this row key prefix. Prefix cannot be + # zero length. + # + # Note: The following parameters are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param delete_all_data_from_table [::Boolean] + # Delete all rows in the table. Setting this to false is a no-op. + # + # Note: The following parameters are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new + # + # # Call the drop_row_range method. + # result = client.drop_row_range request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def drop_row_range request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.drop_row_range.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout, + metadata: metadata, + retry_policy: @config.rpcs.drop_row_range.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Generates a consistency token for a Table, which can be used in + # CheckConsistency to check whether mutations to the table that finished + # before this call started have been replicated. The tokens will be available + # for 90 days. + # + # @overload generate_consistency_token(request, options = nil) + # Pass arguments to `generate_consistency_token` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_consistency_token(name: nil) + # Pass arguments to `generate_consistency_token` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the Table for which to create a consistency + # token. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new + # + # # Call the generate_consistency_token method. + # result = client.generate_consistency_token request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. + # p result + # + def generate_consistency_token request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_consistency_token.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_consistency_token.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Checks replication consistency based on a consistency token, that is, if + # replication has caught up based on the conditions specified in the token + # and the check request. + # + # @overload check_consistency(request, options = nil) + # Pass arguments to `check_consistency` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload check_consistency(name: nil, consistency_token: nil, standard_read_remote_writes: nil, data_boost_read_local_writes: nil) + # Pass arguments to `check_consistency` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the Table for which to check replication + # consistency. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param consistency_token [::String] + # Required. The token created using GenerateConsistencyToken for the Table. + # @param standard_read_remote_writes [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites, ::Hash] + # Checks that reads using an app profile with `StandardIsolation` can + # see all writes committed before the token was created, even if the + # read and write target different clusters. + # + # Note: The following parameters are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param data_boost_read_local_writes [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites, ::Hash] + # Checks that reads using an app profile with `DataBoostIsolationReadOnly` + # can see all writes committed before the token was created, but only if + # the read and write target the same cluster. + # + # Note: The following parameters are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new + # + # # Call the check_consistency method. + # result = client.check_consistency request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. + # p result + # + def check_consistency request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.check_consistency.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.check_consistency.timeout, + metadata: metadata, + retry_policy: @config.rpcs.check_consistency.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new snapshot in the specified cluster from the specified + # source table. The cluster and the table must be in the same instance. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload snapshot_table(request, options = nil) + # Pass arguments to `snapshot_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload snapshot_table(name: nil, cluster: nil, snapshot_id: nil, ttl: nil, description: nil) + # Pass arguments to `snapshot_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to have the snapshot taken. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param cluster [::String] + # Required. The name of the cluster where the snapshot will be created in. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param snapshot_id [::String] + # Required. The ID by which the new snapshot should be referred to within the + # parent cluster, e.g., `mysnapshot` of the form: + # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + # @param ttl [::Google::Protobuf::Duration, ::Hash] + # The amount of time that the new snapshot can stay active after it is + # created. Once 'ttl' expires, the snapshot will get deleted. The maximum + # amount of time a snapshot can stay active is 7 days. If 'ttl' is not + # specified, the default value of 24 hours will be used. + # @param description [::String] + # Description of the snapshot. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new + # + # # Call the snapshot_table method. + # result = client.snapshot_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def snapshot_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.snapshot_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.snapshot_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified snapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload get_snapshot(request, options = nil) + # Pass arguments to `get_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_snapshot(name: nil) + # Pass arguments to `get_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Snapshot] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new + # + # # Call the get_snapshot method. + # result = client.get_snapshot request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. + # p result + # + def get_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all snapshots associated with the specified cluster. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload list_snapshots(request, options = nil) + # Pass arguments to `list_snapshots` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_snapshots(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_snapshots` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the cluster for which snapshots should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @param page_size [::Integer] + # The maximum number of snapshots to return per page. + # CURRENTLY UNIMPLEMENTED AND IGNORED. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new + # + # # Call the list_snapshots method. + # result = client.list_snapshots request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. + # p item + # end + # + def list_snapshots request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_snapshots.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_snapshots.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_snapshots, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes the specified snapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload delete_snapshot(request, options = nil) + # Pass arguments to `delete_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_snapshot(name: nil) + # Pass arguments to `delete_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the snapshot to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new + # + # # Call the delete_snapshot method. + # result = client.delete_snapshot request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts creating a new Cloud Bigtable Backup. The returned backup + # {::Google::Longrunning::Operation long-running operation} can be used to + # track creation of the backup. The + # {::Google::Longrunning::Operation#metadata metadata} field type is + # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupMetadata CreateBackupMetadata}. The + # {::Google::Longrunning::Operation#response response} field type is + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}, if successful. Cancelling the + # returned operation will stop the creation and delete the backup. + # + # @overload create_backup(request, options = nil) + # Pass arguments to `create_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_backup(parent: nil, backup_id: nil, backup: nil) + # Pass arguments to `create_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. This must be one of the clusters in the instance in which this + # table is located. The backup will be stored in this cluster. Values are + # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param backup_id [::String] + # Required. The id of the backup to be created. The `backup_id` along with + # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create + # the full backup name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] + # Required. The backup to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new + # + # # Call the create_backup method. + # result = client.create_backup request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata on a pending or completed Cloud Bigtable Backup. + # + # @overload get_backup(request, options = nil) + # Pass arguments to `get_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_backup(name: nil) + # Pass arguments to `get_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the backup. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new + # + # # Call the get_backup method. + # result = client.get_backup request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + # p result + # + def get_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a pending or completed Cloud Bigtable Backup. + # + # @overload update_backup(request, options = nil) + # Pass arguments to `update_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_backup(backup: nil, update_mask: nil) + # Pass arguments to `update_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] + # Required. The backup to update. `backup.name`, and the fields to be updated + # as specified by `update_mask` are required. Other fields are ignored. + # Update is only supported for the following fields: + # + # * `backup.expire_time`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. A mask specifying which fields (e.g. `expire_time`) in the + # Backup resource should be updated. This mask is relative to the Backup + # resource, not to the request message. The field mask must always be + # specified; this prevents any future fields from being erased accidentally + # by clients that do not know about them. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new + # + # # Call the update_backup method. + # result = client.update_backup request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + # p result + # + def update_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.backup&.name + header_params["backup.name"] = request.backup.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a pending or completed Cloud Bigtable backup. + # + # @overload delete_backup(request, options = nil) + # Pass arguments to `delete_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_backup(name: nil) + # Pass arguments to `delete_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the backup to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new + # + # # Call the delete_backup method. + # result = client.delete_backup request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Cloud Bigtable backups. Returns both completed and pending + # backups. + # + # @overload list_backups(request, options = nil) + # Pass arguments to `list_backups` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_backups(parent: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_backups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The cluster to list backups from. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list backups for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @param filter [::String] + # A filter expression that filters backups listed in the response. + # The expression must specify the field name, a comparison operator, + # and the value that you want to use for filtering. The value must be a + # string, a number, or a boolean. The comparison operator must be + # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + # roughly synonymous with equality. Filter rules are case insensitive. + # + # The fields eligible for filtering are: + # + # * `name` + # * `source_table` + # * `state` + # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `size_bytes` + # + # To filter on multiple expressions, provide each separate expression within + # parentheses. By default, each expression is an AND expression. However, + # you can include AND, OR, and NOT expressions explicitly. + # + # Some examples of using filters are: + # + # * `name:"exact"` --> The backup's name is the string "exact". + # * `name:howl` --> The backup's name contains the string "howl". + # * `source_table:prod` + # --> The source_table's name contains the string "prod". + # * `state:CREATING` --> The backup is pending creation. + # * `state:READY` --> The backup is fully created and ready for use. + # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + # --> The backup name contains the string "howl" and start_time + # of the backup is before 2018-03-28T14:50:00Z. + # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + # @param order_by [::String] + # An expression for specifying the sort order of the results of the request. + # The string value should specify one or more fields in + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at + # https://aip.dev/132#ordering. + # + # Fields supported are: + # + # * name + # * source_table + # * expire_time + # * start_time + # * end_time + # * size_bytes + # * state + # + # For example, "start_time". The default sorting order is ascending. + # To specify descending order for the field, a suffix " desc" should + # be appended to the field name. For example, "start_time desc". + # Redundant space characters in the syntax are insigificant. + # + # If order_by is empty, results will be sorted by `start_time` in descending + # order starting from the most recently created backup. + # @param page_size [::Integer] + # Number of backups to be returned in the response. If 0 or + # less, defaults to the server's maximum allowed page size. + # @param page_token [::String] + # If non-empty, `page_token` should contain a + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} + # from a previous + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the + # same `parent` and with the same `filter`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new + # + # # Call the list_backups method. + # result = client.list_backups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. + # p item + # end + # + def list_backups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_backups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_backups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_backups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_backups, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new table by restoring from a completed backup. The + # returned table {::Google::Longrunning::Operation long-running operation} can + # be used to track the progress of the operation, and to cancel it. The + # {::Google::Longrunning::Operation#metadata metadata} field type is + # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableMetadata RestoreTableMetadata}. The + # {::Google::Longrunning::Operation#response response} type is + # {::Google::Cloud::Bigtable::Admin::V2::Table Table}, if successful. + # + # @overload restore_table(request, options = nil) + # Pass arguments to `restore_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload restore_table(parent: nil, table_id: nil, backup: nil) + # Pass arguments to `restore_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the instance in which to create the restored + # table. Values are of the form `projects//instances/`. + # @param table_id [::String] + # Required. The id of the table to create and restore to. This + # table must not already exist. The `table_id` appended to + # `parent` forms the full table name of the form + # `projects//instances//tables/`. + # @param backup [::String] + # Name of the backup from which to restore. Values are of the form + # `projects//instances//clusters//backups/`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new + # + # # Call the restore_table method. + # result = client.restore_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def restore_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.restore_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.restore_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.restore_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Copy a Cloud Bigtable backup to a new backup in the destination cluster + # located in the destination instance and project. + # + # @overload copy_backup(request, options = nil) + # Pass arguments to `copy_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload copy_backup(parent: nil, backup_id: nil, source_backup: nil, expire_time: nil) + # Pass arguments to `copy_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the destination cluster that will contain the backup + # copy. The cluster must already exist. Values are of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param backup_id [::String] + # Required. The id of the new backup. The `backup_id` along with `parent` + # are combined as \\{parent}/backups/\\{backup_id} to create the full backup + # name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @param source_backup [::String] + # Required. The source backup to be copied from. + # The source backup needs to be in READY state for it to be copied. + # Copying a copied backup is not allowed. + # Once CopyBackup is in progress, the source backup cannot be deleted or + # cleaned up on expiration until CopyBackup is finished. + # Values are of the form: + # `projects//instances//clusters//backups/`. + # @param expire_time [::Google::Protobuf::Timestamp, ::Hash] + # Required. Required. The expiration time of the copied backup with + # microsecond granularity that must be at least 6 hours and at most 30 days + # from the time the request is received. Once the `expire_time` has + # passed, Cloud Bigtable will delete the backup and free the resources used + # by the backup. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new + # + # # Call the copy_backup method. + # result = client.copy_backup request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def copy_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.copy_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.copy_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.copy_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :copy_backup, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a Bigtable resource. + # Returns an empty policy if the resource exists but does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on a Bigtable resource. + # Replaces any existing policy. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns permissions that the caller has on the specified Bigtable + # resource. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new schema bundle in the specified table. + # + # @overload create_schema_bundle(request, options = nil) + # Pass arguments to `create_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_schema_bundle(parent: nil, schema_bundle_id: nil, schema_bundle: nil) + # Pass arguments to `create_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this schema bundle will be created. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param schema_bundle_id [::String] + # Required. The unique ID to use for the schema bundle, which will become the + # final component of the schema bundle's resource name. + # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] + # Required. The schema bundle to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new + # + # # Call the create_schema_bundle method. + # result = client.create_schema_bundle request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_schema_bundle, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a schema bundle in the specified table. + # + # @overload update_schema_bundle(request, options = nil) + # Pass arguments to `update_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_schema_bundle(schema_bundle: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] + # Required. The schema bundle to update. + # + # The schema bundle's `name` field is used to identify the schema bundle to + # update. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @param ignore_warnings [::Boolean] + # Optional. If set, ignore the safety checks when updating the Schema Bundle. + # The safety checks are: + # - The new Schema Bundle is backwards compatible with the existing Schema + # Bundle. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new + # + # # Call the update_schema_bundle method. + # result = client.update_schema_bundle request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.schema_bundle&.name + header_params["schema_bundle.name"] = request.schema_bundle.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_schema_bundle, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified schema bundle. + # + # @overload get_schema_bundle(request, options = nil) + # Pass arguments to `get_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_schema_bundle(name: nil) + # Pass arguments to `get_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the schema bundle to retrieve. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new + # + # # Call the get_schema_bundle method. + # result = client.get_schema_bundle request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + # p result + # + def get_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_schema_bundle, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all schema bundles associated with the specified table. + # + # @overload list_schema_bundles(request, options = nil) + # Pass arguments to `list_schema_bundles` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_schema_bundles(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_schema_bundles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of schema bundles. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param page_size [::Integer] + # The maximum number of schema bundles to return. If the value is positive, + # the server may return at most this value. If unspecified, the server will + # return the maximum allowed page size. + # @param page_token [::String] + # A page token, received from a previous `ListSchemaBundles` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListSchemaBundles` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new + # + # # Call the list_schema_bundles method. + # result = client.list_schema_bundles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + # p item + # end + # + def list_schema_bundles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_schema_bundles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_schema_bundles.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_schema_bundles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_schema_bundles, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_schema_bundles, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a schema bundle in the specified table. + # + # @overload delete_schema_bundle(request, options = nil) + # Pass arguments to `delete_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_schema_bundle(name: nil, etag: nil) + # Pass arguments to `delete_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the schema bundle to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @param etag [::String] + # Optional. The etag of the schema bundle. + # If this is provided, it must match the server's etag. The server + # returns an ABORTED error on a mismatched etag. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new + # + # # Call the delete_schema_bundle method. + # result = client.delete_schema_bundle request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_schema_bundle, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the BigtableTableAdmin API. + # + # This class represents the configuration for BigtableTableAdmin, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_table to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_table.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_table.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BigtableTableAdmin API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_table` + # @return [::Gapic::Config::Method] + # + attr_reader :create_table + ## + # RPC-specific configuration for `create_table_from_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :create_table_from_snapshot + ## + # RPC-specific configuration for `list_tables` + # @return [::Gapic::Config::Method] + # + attr_reader :list_tables + ## + # RPC-specific configuration for `get_table` + # @return [::Gapic::Config::Method] + # + attr_reader :get_table + ## + # RPC-specific configuration for `update_table` + # @return [::Gapic::Config::Method] + # + attr_reader :update_table + ## + # RPC-specific configuration for `delete_table` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_table + ## + # RPC-specific configuration for `undelete_table` + # @return [::Gapic::Config::Method] + # + attr_reader :undelete_table + ## + # RPC-specific configuration for `create_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_authorized_view + ## + # RPC-specific configuration for `list_authorized_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_authorized_views + ## + # RPC-specific configuration for `get_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_authorized_view + ## + # RPC-specific configuration for `update_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_authorized_view + ## + # RPC-specific configuration for `delete_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_authorized_view + ## + # RPC-specific configuration for `modify_column_families` + # @return [::Gapic::Config::Method] + # + attr_reader :modify_column_families + ## + # RPC-specific configuration for `drop_row_range` + # @return [::Gapic::Config::Method] + # + attr_reader :drop_row_range + ## + # RPC-specific configuration for `generate_consistency_token` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_consistency_token + ## + # RPC-specific configuration for `check_consistency` + # @return [::Gapic::Config::Method] + # + attr_reader :check_consistency + ## + # RPC-specific configuration for `snapshot_table` + # @return [::Gapic::Config::Method] + # + attr_reader :snapshot_table + ## + # RPC-specific configuration for `get_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :get_snapshot + ## + # RPC-specific configuration for `list_snapshots` + # @return [::Gapic::Config::Method] + # + attr_reader :list_snapshots + ## + # RPC-specific configuration for `delete_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_snapshot + ## + # RPC-specific configuration for `create_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :create_backup + ## + # RPC-specific configuration for `get_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :get_backup + ## + # RPC-specific configuration for `update_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :update_backup + ## + # RPC-specific configuration for `delete_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_backup + ## + # RPC-specific configuration for `list_backups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_backups + ## + # RPC-specific configuration for `restore_table` + # @return [::Gapic::Config::Method] + # + attr_reader :restore_table + ## + # RPC-specific configuration for `copy_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :copy_backup + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + ## + # RPC-specific configuration for `create_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :create_schema_bundle + ## + # RPC-specific configuration for `update_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :update_schema_bundle + ## + # RPC-specific configuration for `get_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :get_schema_bundle + ## + # RPC-specific configuration for `list_schema_bundles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_schema_bundles + ## + # RPC-specific configuration for `delete_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_schema_bundle + + # @private + def initialize parent_rpcs = nil + create_table_config = parent_rpcs.create_table if parent_rpcs.respond_to? :create_table + @create_table = ::Gapic::Config::Method.new create_table_config + create_table_from_snapshot_config = parent_rpcs.create_table_from_snapshot if parent_rpcs.respond_to? :create_table_from_snapshot + @create_table_from_snapshot = ::Gapic::Config::Method.new create_table_from_snapshot_config + list_tables_config = parent_rpcs.list_tables if parent_rpcs.respond_to? :list_tables + @list_tables = ::Gapic::Config::Method.new list_tables_config + get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table + @get_table = ::Gapic::Config::Method.new get_table_config + update_table_config = parent_rpcs.update_table if parent_rpcs.respond_to? :update_table + @update_table = ::Gapic::Config::Method.new update_table_config + delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table + @delete_table = ::Gapic::Config::Method.new delete_table_config + undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table + @undelete_table = ::Gapic::Config::Method.new undelete_table_config + create_authorized_view_config = parent_rpcs.create_authorized_view if parent_rpcs.respond_to? :create_authorized_view + @create_authorized_view = ::Gapic::Config::Method.new create_authorized_view_config + list_authorized_views_config = parent_rpcs.list_authorized_views if parent_rpcs.respond_to? :list_authorized_views + @list_authorized_views = ::Gapic::Config::Method.new list_authorized_views_config + get_authorized_view_config = parent_rpcs.get_authorized_view if parent_rpcs.respond_to? :get_authorized_view + @get_authorized_view = ::Gapic::Config::Method.new get_authorized_view_config + update_authorized_view_config = parent_rpcs.update_authorized_view if parent_rpcs.respond_to? :update_authorized_view + @update_authorized_view = ::Gapic::Config::Method.new update_authorized_view_config + delete_authorized_view_config = parent_rpcs.delete_authorized_view if parent_rpcs.respond_to? :delete_authorized_view + @delete_authorized_view = ::Gapic::Config::Method.new delete_authorized_view_config + modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families + @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config + drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range + @drop_row_range = ::Gapic::Config::Method.new drop_row_range_config + generate_consistency_token_config = parent_rpcs.generate_consistency_token if parent_rpcs.respond_to? :generate_consistency_token + @generate_consistency_token = ::Gapic::Config::Method.new generate_consistency_token_config + check_consistency_config = parent_rpcs.check_consistency if parent_rpcs.respond_to? :check_consistency + @check_consistency = ::Gapic::Config::Method.new check_consistency_config + snapshot_table_config = parent_rpcs.snapshot_table if parent_rpcs.respond_to? :snapshot_table + @snapshot_table = ::Gapic::Config::Method.new snapshot_table_config + get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot + @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config + list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots + @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config + delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot + @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config + create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup + @create_backup = ::Gapic::Config::Method.new create_backup_config + get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup + @get_backup = ::Gapic::Config::Method.new get_backup_config + update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup + @update_backup = ::Gapic::Config::Method.new update_backup_config + delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup + @delete_backup = ::Gapic::Config::Method.new delete_backup_config + list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups + @list_backups = ::Gapic::Config::Method.new list_backups_config + restore_table_config = parent_rpcs.restore_table if parent_rpcs.respond_to? :restore_table + @restore_table = ::Gapic::Config::Method.new restore_table_config + copy_backup_config = parent_rpcs.copy_backup if parent_rpcs.respond_to? :copy_backup + @copy_backup = ::Gapic::Config::Method.new copy_backup_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + create_schema_bundle_config = parent_rpcs.create_schema_bundle if parent_rpcs.respond_to? :create_schema_bundle + @create_schema_bundle = ::Gapic::Config::Method.new create_schema_bundle_config + update_schema_bundle_config = parent_rpcs.update_schema_bundle if parent_rpcs.respond_to? :update_schema_bundle + @update_schema_bundle = ::Gapic::Config::Method.new update_schema_bundle_config + get_schema_bundle_config = parent_rpcs.get_schema_bundle if parent_rpcs.respond_to? :get_schema_bundle + @get_schema_bundle = ::Gapic::Config::Method.new get_schema_bundle_config + list_schema_bundles_config = parent_rpcs.list_schema_bundles if parent_rpcs.respond_to? :list_schema_bundles + @list_schema_bundles = ::Gapic::Config::Method.new list_schema_bundles_config + delete_schema_bundle_config = parent_rpcs.delete_schema_bundle if parent_rpcs.respond_to? :delete_schema_bundle + @delete_schema_bundle = ::Gapic::Config::Method.new delete_schema_bundle_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb new file mode 100644 index 000000000000..b13ab97ad469 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Credentials for the BigtableTableAdmin API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + self.env_vars = [ + "BIGTABLE_CREDENTIALS", + "BIGTABLE_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "BIGTABLE_CREDENTIALS_JSON", + "BIGTABLE_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb new file mode 100644 index 000000000000..ad9957f0f690 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb @@ -0,0 +1,843 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BigtableTableAdmin Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableTableAdmin Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb new file mode 100644 index 000000000000..c10bcef1999e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb @@ -0,0 +1,214 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Path helper methods for the BigtableTableAdmin API. + module Paths + ## + # Create a fully-qualified AuthorizedView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # @param authorized_view [String] + # + # @return [::String] + def authorized_view_path project:, instance:, table:, authorized_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}/authorizedViews/#{authorized_view}" + end + + ## + # Create a fully-qualified Backup resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # @param backup [String] + # + # @return [::String] + def backup_path project:, instance:, cluster:, backup: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}" + end + + ## + # Create a fully-qualified Cluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # + # @return [::String] + def cluster_path project:, instance:, cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}" + end + + ## + # Create a fully-qualified CryptoKeyVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # @param crypto_key_version [String] + # + # @return [::String] + def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" + end + + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}` + # + # @param project [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/instances/#{instance}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified SchemaBundle resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # @param schema_bundle [String] + # + # @return [::String] + def schema_bundle_path project:, instance:, table:, schema_bundle: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}/schemaBundles/#{schema_bundle}" + end + + ## + # Create a fully-qualified Snapshot resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # @param snapshot [String] + # + # @return [::String] + def snapshot_path project:, instance:, cluster:, snapshot: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}" + end + + ## + # Create a fully-qualified Table resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # + # @return [::String] + def table_path project:, instance:, table: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb new file mode 100644 index 000000000000..b19e81c131f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + VERSION = "0.0.1" + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md new file mode 100644 index 000000000000..2968913b938d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md @@ -0,0 +1,4 @@ +# Cloud Bigtable Admin V2 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..3ab0b096d445 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb @@ -0,0 +1,593 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # + # Note: This feature should not be used in most cases. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb new file mode 100644 index 000000000000..a39e72495e1c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb @@ -0,0 +1,767 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Request message for BigtableInstanceAdmin.CreateInstance. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the project in which to create the new + # instance. Values are of the form `projects/{project}`. + # @!attribute [rw] instance_id + # @return [::String] + # Required. The ID to be used when referring to the new instance within its + # project, e.g., just `myinstance` rather than + # `projects/myproject/instances/myinstance`. + # @!attribute [rw] instance + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # Required. The instance to create. + # Fields marked `OutputOnly` must be left blank. + # @!attribute [rw] clusters + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster}] + # Required. The clusters to be created within the instance, mapped by desired + # cluster ID, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # Fields marked `OutputOnly` must be left blank. + class CreateInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + class ClustersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for BigtableInstanceAdmin.GetInstance. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested instance. Values are of the form + # `projects/{project}/instances/{instance}`. + class GetInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListInstances. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the project for which a list of instances is + # requested. Values are of the form `projects/{project}`. + # @!attribute [rw] page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListInstancesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListInstances. + # @!attribute [rw] instances + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Instance>] + # The list of requested instances. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which Instance information could not be retrieved, + # due to an outage or some other transient condition. + # Instances whose Clusters are all in one of the failed locations + # may be missing from `instances`, and Instances with at least one + # Cluster in a failed location may only have partial information returned. + # Values are of the form `projects//locations/` + # @!attribute [rw] next_page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListInstancesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.PartialUpdateInstance. + # @!attribute [rw] instance + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # Required. The Instance which will (partially) replace the current value. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of Instance fields which should be replaced. + # Must be explicitly set. + class PartialUpdateInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteInstance. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the instance to be deleted. + # Values are of the form `projects/{project}/instances/{instance}`. + class DeleteInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateCluster. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the new + # cluster. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] cluster_id + # @return [::String] + # Required. The ID to be used when referring to the new cluster within its + # instance, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # @!attribute [rw] cluster + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # Required. The cluster to be created. + # Fields marked `OutputOnly` must be left blank. + class CreateClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetCluster. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + class GetClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListClusters. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which a list of clusters is + # requested. Values are of the form + # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + # Clusters for all Instances in a project, e.g., + # `projects/myproject/instances/-`. + # @!attribute [rw] page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListClustersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListClusters. + # @!attribute [rw] clusters + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Cluster>] + # The list of requested clusters. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which Cluster information could not be retrieved, + # due to an outage or some other transient condition. + # Clusters from these locations may be missing from `clusters`, + # or may only have partial information returned. + # Values are of the form `projects//locations/` + # @!attribute [rw] next_page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListClustersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteCluster. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the cluster to be deleted. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + class DeleteClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateInstance. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest] + # The request that prompted the initiation of this CreateInstance operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateInstanceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateInstance. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest] + # The request that prompted the initiation of this UpdateInstance operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateInstanceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateCluster. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest] + # The request that prompted the initiation of this CreateCluster operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + # @!attribute [rw] tables + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress}] + # Keys: the full `name` of each table that existed in the instance when + # CreateCluster was first called, i.e. + # `projects//instances//tables/
`. Any table added + # to the instance by a later API call will be created in the new cluster by + # that API call, not this one. + # + # Values: information on how much of a table's data has been copied to the + # newly-created cluster so far. + class CreateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Progress info for copying a table's data to the new cluster. + # @!attribute [rw] estimated_size_bytes + # @return [::Integer] + # Estimate of the size of the table to be copied. + # @!attribute [rw] estimated_copied_bytes + # @return [::Integer] + # Estimate of the number of bytes copied so far for this table. + # This will eventually reach 'estimated_size_bytes' unless the table copy + # is CANCELLED. + # @!attribute [rw] state + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress::State] + class TableProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + module State + STATE_UNSPECIFIED = 0 + + # The table has not yet begun copying to the new cluster. + PENDING = 1 + + # The table is actively being copied to the new cluster. + COPYING = 2 + + # The table has been fully copied to the new cluster. + COMPLETED = 3 + + # The table was deleted before it finished copying to the new cluster. + # Note that tables deleted after completion will stay marked as + # COMPLETED, not CANCELLED. + CANCELLED = 4 + end + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress] + class TablesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The metadata for the Operation returned by UpdateCluster. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # The request that prompted the initiation of this UpdateCluster operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by PartialUpdateCluster. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest] + # The original request for PartialUpdateCluster. + class PartialUpdateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.PartialUpdateCluster. + # @!attribute [rw] cluster + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # Required. The Cluster which contains the partial updates to be applied, + # subject to the update_mask. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of Cluster fields which should be replaced. + class PartialUpdateClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateAppProfile. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the new app + # profile. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] app_profile_id + # @return [::String] + # Required. The ID to be used when referring to the new app profile within + # its instance, e.g., just `myprofile` rather than + # `projects/myproject/instances/myinstance/appProfiles/myprofile`. + # @!attribute [rw] app_profile + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # Required. The app profile to be created. + # Fields marked `OutputOnly` will be ignored. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # If true, ignore safety checks when creating the app profile. + class CreateAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetAppProfile. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested app profile. Values are of the + # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + class GetAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListAppProfiles. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which a list of app profiles + # is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + # e.g., `projects/myproject/instances/-`. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListAppProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListAppProfiles. + # @!attribute [rw] app_profiles + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # The list of requested app profiles. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all app profiles could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which AppProfile information could not be retrieved, + # due to an outage or some other transient condition. + # AppProfiles from these locations may be missing from `app_profiles`. + # Values are of the form `projects//locations/` + class ListAppProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateAppProfile. + # @!attribute [rw] app_profile + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # Required. The app profile which will (partially) replace the current value. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of app profile fields which should be replaced. + # If unset, all fields will be replaced. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # If true, ignore safety checks when updating the app profile. + class UpdateAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteAppProfile. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the app profile to be deleted. Values are of + # the form + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Required. If true, ignore safety checks when deleting the app profile. + class DeleteAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateAppProfile. + class UpdateAppProfileMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListHotTablets. + # @!attribute [rw] parent + # @return [::String] + # Required. The cluster name to list hot tablets. + # Value is in the following form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The start time to list hot tablets. The hot tablets in the response will + # have start times between the requested start time and end time. Start time + # defaults to Now if it is unset, and end time defaults to Now - 24 hours if + # it is unset. The start time should be less than the end time, and the + # maximum allowed time range between start time and end time is 48 hours. + # Start time and end time should have values between Now and Now - 14 days. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # The end time to list hot tablets. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size that is empty or zero lets the server choose the number of + # items to return. A page_size which is strictly positive will return at most + # that many items. A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls do not need a + # page_size field. If a page_size is set in subsequent calls, it must match + # the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListHotTabletsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListHotTablets. + # @!attribute [rw] hot_tablets + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # List of hot tablets in the tables of the requested cluster that fall + # within the requested time range. Hot tablets are ordered by node cpu usage + # percent. If there are multiple hot tablets that correspond to the same + # tablet within a 15-minute interval, only the hot tablet with the highest + # node cpu usage will be included in the response. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all hot tablets could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListHotTabletsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateLogicalView. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent instance where this logical view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @!attribute [rw] logical_view_id + # @return [::String] + # Required. The ID to use for the logical view, which will become the final + # component of the logical view's resource name. + # @!attribute [rw] logical_view + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # Required. The logical view to create. + class CreateLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateLogicalView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest] + # The request that prompted the initiation of this CreateLogicalView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateLogicalViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetLogicalView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested logical view. Values are of the + # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + class GetLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListLogicalViews. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which the list of logical + # views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of logical views to return. The service may + # return fewer than this value + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListLogicalViews` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListLogicalViews` must + # match the call that provided the page token. + class ListLogicalViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListLogicalViews. + # @!attribute [rw] logical_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # The list of requested logical views. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListLogicalViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateLogicalView. + # @!attribute [rw] logical_view + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # Required. The logical view to update. + # + # The logical view's `name` field is used to identify the view to update. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateLogicalView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest] + # The request that prompted the initiation of this UpdateLogicalView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation was started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateLogicalViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteLogicalView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the logical view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the logical view. + # If an etag is provided and does not match the current etag of the + # logical view, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateMaterializedView. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent instance where this materialized view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @!attribute [rw] materialized_view_id + # @return [::String] + # Required. The ID to use for the materialized view, which will become the + # final component of the materialized view's resource name. + # @!attribute [rw] materialized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # Required. The materialized view to create. + class CreateMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateMaterializedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest] + # The request that prompted the initiation of this CreateMaterializedView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateMaterializedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetMaterializedView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested materialized view. Values are of + # the form + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + class GetMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListMaterializedViews. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which the list of + # materialized views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of materialized views to return. The service + # may return fewer than this value + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListMaterializedViews` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListMaterializedViews` + # must match the call that provided the page token. + class ListMaterializedViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListMaterializedViews. + # @!attribute [rw] materialized_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # The list of requested materialized views. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListMaterializedViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateMaterializedView. + # @!attribute [rw] materialized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # Required. The materialized view to update. + # + # The materialized view's `name` field is used to identify the view to + # update. Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateMaterializedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest] + # The request that prompted the initiation of this UpdateMaterializedView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation was started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateMaterializedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteMaterializedView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the materialized view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the materialized view. + # If an etag is provided and does not match the current etag of the + # materialized view, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb new file mode 100644 index 000000000000..cde156ec6152 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb @@ -0,0 +1,1167 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the instance in which to create the restored + # table. Values are of the form `projects//instances/`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The id of the table to create and restore to. This + # table must not already exist. The `table_id` appended to + # `parent` forms the full table name of the form + # `projects//instances//tables/`. + # @!attribute [rw] backup + # @return [::String] + # Name of the backup from which to restore. Values are of the form + # `projects//instances//clusters//backups/`. + class RestoreTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the long-running operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. + # @!attribute [rw] name + # @return [::String] + # Name of the table being created and restored to. + # @!attribute [rw] source_type + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] + # The type of the restore source. + # @!attribute [rw] backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # @!attribute [rw] optimize_table_operation_name + # @return [::String] + # If exists, the name of the long-running operation that will be used to + # track the post-restore optimization process to optimize the performance of + # the restored table. The metadata type of the long-running operation is + # [OptimizeRestoreTableMetadata][]. The response type is + # {::Google::Protobuf::Empty Empty}. This long-running operation may be + # automatically created by the system if applicable after the + # RestoreTable long-running operation completes successfully. This operation + # may not be created if the table is already optimized or the restore was + # not successful. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable} + # operation. + class RestoreTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the long-running operation used to track the progress + # of optimizations performed on a newly restored table. This long-running + # operation is automatically created by the system after the successful + # completion of a table restore, and cannot be cancelled. + # @!attribute [rw] name + # @return [::String] + # Name of the restored table being optimized. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the post-restore optimizations. + class OptimizeRestoredTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table google.bigtable.admin.v2.BigtableTableAdmin.CreateTable} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # Maximum 50 characters. + # @!attribute [rw] table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Required. The Table to create. + # @!attribute [rw] initial_splits + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>] + # The optional list of row keys that will be used to initially split the + # table into several tablets (tablets are similar to HBase regions). + # Given two split keys, `s1` and `s2`, three tablets will be created, + # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + # + # Example: + # + # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + # `"other", "zz"]` + # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + # * Key assignment: + # - Tablet 1 `[, apple) => {"a"}.` + # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + # - Tablet 4 `[customer_2, other) => {"customer_2"}.` + # - Tablet 5 `[other, ) => {"other", "zz"}.` + class CreateTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # An initial split point for a newly created table. + # @!attribute [rw] key + # @return [::String] + # Row key to use as an initial tablet boundary. + class Split + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # @!attribute [rw] source_snapshot + # @return [::String] + # Required. The unique name of the snapshot from which to restore the table. + # The snapshot and the table must be in the same instance. Values are of the + # form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class CreateTableFromSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table on which to drop a range of rows. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] row_key_prefix + # @return [::String] + # Delete all rows that start with this row key prefix. Prefix cannot be + # zero length. + # + # Note: The following fields are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delete_all_data_from_table + # @return [::Boolean] + # Delete all rows in the table. Setting this to false is a no-op. + # + # Note: The following fields are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class DropRowRangeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which tables should be + # listed. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned tables' fields. + # NAME_ONLY view (default) and REPLICATION_VIEW are supported. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListTablesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} + # @!attribute [rw] tables + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Table>] + # The tables present in the requested instance. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all tables could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListTablesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table google.bigtable.admin.v2.BigtableTableAdmin.GetTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested table. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned table's fields. + # Defaults to `SCHEMA_VIEW` if unspecified. + class GetTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. + # @!attribute [rw] table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Required. The table to update. + # The table's `name` field is used to identify the table to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to update. + # A mask specifying which fields (e.g. `change_stream_config`) in the `table` + # field should be updated. This mask is relative to the `table` field, not to + # the request message. The wildcard (*) path is currently not supported. + # Currently UpdateTable is only supported for the following fields: + # + # * `change_stream_config` + # * `change_stream_config.retention_period` + # * `deletion_protection` + # * `row_key_schema` + # + # If `column_families` is set in `update_mask`, it will return an + # UNIMPLEMENTED error. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore safety checks when updating the table. + class UpdateTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. + # @!attribute [rw] name + # @return [::String] + # The name of the table being updated. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class DeleteTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to be restored. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class UndeleteTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}. + # @!attribute [rw] name + # @return [::String] + # The name of the table being restored. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was cancelled. + class UndeleteTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table whose families should be modified. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] modifications + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>] + # Required. Modifications to be atomically applied to the specified table's + # families. Entries are applied in order, meaning that earlier modifications + # can be masked by later ones (in the case of repeated updates to the same + # family, for example). + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore safety checks when modifying the column families. + class ModifyColumnFamiliesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A create, update, or delete of a particular column family. + # @!attribute [rw] id + # @return [::String] + # The ID of the column family to be modified. + # @!attribute [rw] create + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + # Create a new column family with the specified schema, or fail if + # one already exists with the given ID. + # + # Note: The following fields are mutually exclusive: `create`, `update`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] update + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + # Update an existing column family to the specified schema, or fail + # if no column family exists with the given ID. + # + # Note: The following fields are mutually exclusive: `update`, `create`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] drop + # @return [::Boolean] + # Drop (delete) the column family with the given ID, or fail if no such + # family exists. + # + # Note: The following fields are mutually exclusive: `drop`, `create`, `update`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` + # mod should be updated, ignored for other modification types. If unset or + # empty, we treat it as updating `gc_rule` to be backward compatible. + class Modification + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the Table for which to create a consistency + # token. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class GenerateConsistencyTokenRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} + # @!attribute [rw] consistency_token + # @return [::String] + # The generated consistency token. + class GenerateConsistencyTokenResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the Table for which to check replication + # consistency. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] consistency_token + # @return [::String] + # Required. The token created using GenerateConsistencyToken for the Table. + # @!attribute [rw] standard_read_remote_writes + # @return [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites] + # Checks that reads using an app profile with `StandardIsolation` can + # see all writes committed before the token was created, even if the + # read and write target different clusters. + # + # Note: The following fields are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_boost_read_local_writes + # @return [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites] + # Checks that reads using an app profile with `DataBoostIsolationReadOnly` + # can see all writes committed before the token was created, but only if + # the read and write target the same cluster. + # + # Note: The following fields are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class CheckConsistencyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Checks that all writes before the consistency token was generated are + # replicated in every cluster and readable. + class StandardReadRemoteWrites + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Checks that all writes before the consistency token was generated in the same + # cluster are readable by Databoost. + class DataBoostReadLocalWrites + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} + # @!attribute [rw] consistent + # @return [::Boolean] + # True only if the token is consistent. A token is consistent if replication + # has caught up with the restrictions specified in the request. + class CheckConsistencyResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to have the snapshot taken. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] cluster + # @return [::String] + # Required. The name of the cluster where the snapshot will be created in. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] snapshot_id + # @return [::String] + # Required. The ID by which the new snapshot should be referred to within the + # parent cluster, e.g., `mysnapshot` of the form: + # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + # @!attribute [rw] ttl + # @return [::Google::Protobuf::Duration] + # The amount of time that the new snapshot can stay active after it is + # created. Once 'ttl' expires, the snapshot will get deleted. The maximum + # amount of time a snapshot can stay active is 7 days. If 'ttl' is not + # specified, the default value of 24 hours will be used. + # @!attribute [rw] description + # @return [::String] + # Description of the snapshot. + class SnapshotTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class GetSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the cluster for which snapshots should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of snapshots to return per page. + # CURRENTLY UNIMPLEMENTED AND IGNORED. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListSnapshotsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] snapshots + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # The snapshots present in the requested cluster. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all snapshots could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListSnapshotsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the snapshot to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class DeleteSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by SnapshotTable. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest] + # The request that prompted the initiation of this SnapshotTable operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class SnapshotTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateTableFromSnapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest] + # The request that prompted the initiation of this CreateTableFromSnapshot + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateTableFromSnapshotMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. + # @!attribute [rw] parent + # @return [::String] + # Required. This must be one of the clusters in the instance in which this + # table is located. The backup will be stored in this cluster. Values are + # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] backup_id + # @return [::String] + # Required. The id of the backup to be created. The `backup_id` along with + # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create + # the full backup name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @!attribute [rw] backup + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # Required. The backup to create. + class CreateBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. + # @!attribute [rw] name + # @return [::String] + # The name of the backup being created. + # @!attribute [rw] source_table + # @return [::String] + # The name of the table the backup is created from. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was cancelled. + class CreateBackupMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup UpdateBackup}. + # @!attribute [rw] backup + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # Required. The backup to update. `backup.name`, and the fields to be updated + # as specified by `update_mask` are required. Other fields are ignored. + # Update is only supported for the following fields: + # + # * `backup.expire_time`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. A mask specifying which fields (e.g. `expire_time`) in the + # Backup resource should be updated. This mask is relative to the Backup + # resource, not to the request message. The field mask must always be + # specified; this prevents any future fields from being erased accidentally + # by clients that do not know about them. + class UpdateBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup GetBackup}. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the backup. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + class GetBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup DeleteBackup}. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the backup to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + class DeleteBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. + # @!attribute [rw] parent + # @return [::String] + # Required. The cluster to list backups from. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list backups for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @!attribute [rw] filter + # @return [::String] + # A filter expression that filters backups listed in the response. + # The expression must specify the field name, a comparison operator, + # and the value that you want to use for filtering. The value must be a + # string, a number, or a boolean. The comparison operator must be + # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + # roughly synonymous with equality. Filter rules are case insensitive. + # + # The fields eligible for filtering are: + # + # * `name` + # * `source_table` + # * `state` + # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `size_bytes` + # + # To filter on multiple expressions, provide each separate expression within + # parentheses. By default, each expression is an AND expression. However, + # you can include AND, OR, and NOT expressions explicitly. + # + # Some examples of using filters are: + # + # * `name:"exact"` --> The backup's name is the string "exact". + # * `name:howl` --> The backup's name contains the string "howl". + # * `source_table:prod` + # --> The source_table's name contains the string "prod". + # * `state:CREATING` --> The backup is pending creation. + # * `state:READY` --> The backup is fully created and ready for use. + # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + # --> The backup name contains the string "howl" and start_time + # of the backup is before 2018-03-28T14:50:00Z. + # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + # @!attribute [rw] order_by + # @return [::String] + # An expression for specifying the sort order of the results of the request. + # The string value should specify one or more fields in + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at + # https://aip.dev/132#ordering. + # + # Fields supported are: + # + # * name + # * source_table + # * expire_time + # * start_time + # * end_time + # * size_bytes + # * state + # + # For example, "start_time". The default sorting order is ascending. + # To specify descending order for the field, a suffix " desc" should + # be appended to the field name. For example, "start_time desc". + # Redundant space characters in the syntax are insigificant. + # + # If order_by is empty, results will be sorted by `start_time` in descending + # order starting from the most recently created backup. + # @!attribute [rw] page_size + # @return [::Integer] + # Number of backups to be returned in the response. If 0 or + # less, defaults to the server's maximum allowed page size. + # @!attribute [rw] page_token + # @return [::String] + # If non-empty, `page_token` should contain a + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} + # from a previous + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the + # same `parent` and with the same `filter`. + class ListBackupsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. + # @!attribute [rw] backups + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # The list of matching backups. + # @!attribute [rw] next_page_token + # @return [::String] + # `next_page_token` can be sent in a subsequent + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups} call + # to fetch more of the matching backups. + class ListBackupsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the destination cluster that will contain the backup + # copy. The cluster must already exist. Values are of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] backup_id + # @return [::String] + # Required. The id of the new backup. The `backup_id` along with `parent` + # are combined as \\{parent}/backups/\\{backup_id} to create the full backup + # name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @!attribute [rw] source_backup + # @return [::String] + # Required. The source backup to be copied from. + # The source backup needs to be in READY state for it to be copied. + # Copying a copied backup is not allowed. + # Once CopyBackup is in progress, the source backup cannot be deleted or + # cleaned up on expiration until CopyBackup is finished. + # Values are of the form: + # `projects//instances//clusters//backups/`. + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # Required. Required. The expiration time of the copied backup with + # microsecond granularity that must be at least 6 hours and at most 30 days + # from the time the request is received. Once the `expire_time` has + # passed, Cloud Bigtable will delete the backup and free the resources used + # by the backup. + class CopyBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the google.longrunning.Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. + # @!attribute [rw] name + # @return [::String] + # The name of the backup being created through the copy operation. + # Values are of the form + # `projects//instances//clusters//backups/`. + # @!attribute [rw] source_backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # Information about the source backup that is being copied from. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup} + # operation. + class CopyBackupMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view CreateAuthorizedView} + # @!attribute [rw] parent + # @return [::String] + # Required. This is the name of the table the AuthorizedView belongs to. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] authorized_view_id + # @return [::String] + # Required. The id of the AuthorizedView to create. This AuthorizedView must + # not already exist. The `authorized_view_id` appended to `parent` forms the + # full AuthorizedView name of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + # @!attribute [rw] authorized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # Required. The AuthorizedView to create. + class CreateAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateAuthorizedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest] + # The request that prompted the initiation of this CreateAuthorizedView + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateAuthorizedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the table for which AuthorizedViews should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # Optional. The value of `next_page_token` returned by a previous call. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedViews' + # fields. Default to NAME_ONLY. + class ListAuthorizedViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} + # @!attribute [rw] authorized_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # The AuthorizedViews present in the requested table. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all tables could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListAuthorizedViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedView's + # fields. Default to BASIC. + class GetAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. + # @!attribute [rw] authorized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # Required. The AuthorizedView to update. The `name` in `authorized_view` is + # used to identify the AuthorizedView. AuthorizedView name must in this + # format: + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + # A mask specifying which fields in the AuthorizedView resource should be + # updated. This mask is relative to the AuthorizedView resource, not to the + # request message. A field will be overwritten if it is in the mask. If + # empty, all fields set in the request will be overwritten. A special value + # `*` means to overwrite all fields (including fields not set in the + # request). + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore the safety checks when updating the + # AuthorizedView. + class UpdateAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for the google.longrunning.Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest] + # The request that prompted the initiation of this UpdateAuthorizedView + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateAuthorizedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the AuthorizedView to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the AuthorizedView. + # If an etag is provided and does not match the current etag of the + # AuthorizedView, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this schema bundle will be created. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # Required. The unique ID to use for the schema bundle, which will become the + # final component of the schema bundle's resource name. + # @!attribute [rw] schema_bundle + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # Required. The schema bundle to create. + class CreateSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateSchemaBundleMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. + # @!attribute [rw] schema_bundle + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # Required. The schema bundle to update. + # + # The schema bundle's `name` field is used to identify the schema bundle to + # update. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If set, ignore the safety checks when updating the Schema Bundle. + # The safety checks are: + # - The new Schema Bundle is backwards compatible with the existing Schema + # Bundle. + class UpdateSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateSchemaBundleMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle GetSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the schema bundle to retrieve. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + class GetSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of schema bundles. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of schema bundles to return. If the value is positive, + # the server may return at most this value. If unspecified, the server will + # return the maximum allowed page size. + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListSchemaBundles` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListSchemaBundles` must + # match the call that provided the page token. + class ListSchemaBundlesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. + # @!attribute [rw] schema_bundles + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # The schema bundles from the specified table. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListSchemaBundlesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle DeleteSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the schema bundle to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag of the schema bundle. + # If this is provided, it must match the server's etag. The server + # returns an ABORTED error on a mismatched etag. + class DeleteSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb new file mode 100644 index 000000000000..09fe845b5e8c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Encapsulates progress related information for a Cloud Bigtable long + # running operation. + # @!attribute [rw] progress_percent + # @return [::Integer] + # Percent completion of the operation. + # Values are between 0 and 100 inclusive. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Time the request was received. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation failed or was completed + # successfully. + class OperationProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Storage media types for persisting Bigtable data. + module StorageType + # The user did not specify a storage type. + STORAGE_TYPE_UNSPECIFIED = 0 + + # Flash (SSD) storage should be used. + SSD = 1 + + # Magnetic drive (HDD) storage should be used. + HDD = 2 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb new file mode 100644 index 000000000000..3915a0a92c55 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb @@ -0,0 +1,519 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # A collection of Bigtable {::Google::Cloud::Bigtable::Admin::V2::Table Tables} and + # the resources that serve them. + # All tables in an instance are served from all + # {::Google::Cloud::Bigtable::Admin::V2::Cluster Clusters} in the instance. + # @!attribute [rw] name + # @return [::String] + # The unique name of the instance. Values are of the form + # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + # @!attribute [rw] display_name + # @return [::String] + # Required. The descriptive name for this instance as it appears in UIs. + # Can be changed at any time, but should be kept globally unique + # to avoid confusion. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::State] + # Output only. The current state of the instance. + # @!attribute [rw] type + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] + # The type of the instance. Defaults to `PRODUCTION`. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Labels are a flexible and lightweight mechanism for organizing cloud + # resources into groups that reflect a customer's organizational needs and + # deployment strategies. They can be used to filter resources and aggregate + # metrics. + # + # * Label keys must be between 1 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + # * Label values must be between 0 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + # * No more than 64 labels can be associated with a given resource. + # * Keys and values must both be under 128 bytes. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. A commit timestamp representing when this Instance was + # created. For instances created before this field was added (August 2021), + # this value is `seconds: 0, nanos: 1`. + # @!attribute [r] satisfies_pzs + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [r] satisfies_pzi + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [rw] tags + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Input only. Immutable. Tag keys/values directly bound to this + # resource. For example: + # - "123/environment": "production", + # - "123/costCenter": "marketing" + # + # Tags and Labels (above) are both used to bind metadata to resources, with + # different use-cases. See + # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + # in-depth overview on the difference between tags and labels. + class Instance + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TagsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of an instance. + module State + # The state of the instance could not be determined. + STATE_NOT_KNOWN = 0 + + # The instance has been successfully created and can serve requests + # to its tables. + READY = 1 + + # The instance is currently being created, and may be destroyed + # if the creation process encounters an error. + CREATING = 2 + end + + # The type of the instance. + module Type + # The type of the instance is unspecified. If set when creating an + # instance, a `PRODUCTION` instance will be created. If set when updating + # an instance, the type will be left unchanged. + TYPE_UNSPECIFIED = 0 + + # An instance meant for production use. `serve_nodes` must be set + # on the cluster. + PRODUCTION = 1 + + # DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces + # a higher minimum node count than DEVELOPMENT. + DEVELOPMENT = 2 + end + end + + # The Autoscaling targets for a Cluster. These determine the recommended nodes. + # @!attribute [rw] cpu_utilization_percent + # @return [::Integer] + # The cpu utilization that the Autoscaler should be trying to achieve. + # This number is on a scale from 0 (no utilization) to + # 100 (total utilization), and is limited between 10 and 80, otherwise it + # will return INVALID_ARGUMENT error. + # @!attribute [rw] storage_utilization_gib_per_node + # @return [::Integer] + # The storage utilization that the Autoscaler should be trying to achieve. + # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, + # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + # it will be treated as if it were set to the default value: 2560 for SSD, + # 8192 for HDD. + class AutoscalingTargets + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Limits for the number of nodes a Cluster can autoscale up/down to. + # @!attribute [rw] min_serve_nodes + # @return [::Integer] + # Required. Minimum number of nodes to scale down to. + # @!attribute [rw] max_serve_nodes + # @return [::Integer] + # Required. Maximum number of nodes to scale up to. + class AutoscalingLimits + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resizable group of nodes in a particular cloud location, capable + # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent + # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}. + # @!attribute [rw] name + # @return [::String] + # The unique name of the cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + # @!attribute [rw] location + # @return [::String] + # Immutable. The location where this cluster's nodes and storage reside. For + # best performance, clients should be located as close as possible to this + # cluster. Currently only zones are supported, so values should be of the + # form `projects/{project}/locations/{zone}`. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::State] + # Output only. The current state of the cluster. + # @!attribute [rw] serve_nodes + # @return [::Integer] + # The number of nodes in the cluster. If no value is set, + # Cloud Bigtable automatically allocates nodes based on your data footprint + # and optimized for 50% storage utilization. + # @!attribute [rw] node_scaling_factor + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] + # Immutable. The node scaling factor of this cluster. + # @!attribute [rw] cluster_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig] + # Configuration for this cluster. + # @!attribute [rw] default_storage_type + # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType] + # Immutable. The type of storage used by this cluster to serve its + # parent instance's tables, unless explicitly overridden. + # @!attribute [rw] encryption_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig] + # Immutable. The encryption configuration for CMEK-protected clusters. + class Cluster + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Autoscaling config for a cluster. + # @!attribute [rw] autoscaling_limits + # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits] + # Required. Autoscaling limits for this cluster. + # @!attribute [rw] autoscaling_targets + # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets] + # Required. Autoscaling targets for this cluster. + class ClusterAutoscalingConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for a cluster. + # @!attribute [rw] cluster_autoscaling_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig] + # Autoscaling configuration for this cluster. + class ClusterConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected + # cluster. + # @!attribute [rw] kms_key_name + # @return [::String] + # Describes the Cloud KMS encryption key that will be used to protect the + # destination Bigtable cluster. The requirements for this key are: + # 1) The Cloud Bigtable service account associated with the project that + # contains this cluster must be granted the + # `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + # 2) Only regional keys can be used and the region of the CMEK key must + # match the region of the cluster. + # Values are of the form + # `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + class EncryptionConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of a cluster. + module State + # The state of the cluster could not be determined. + STATE_NOT_KNOWN = 0 + + # The cluster has been successfully created and is ready to serve requests. + READY = 1 + + # The cluster is currently being created, and may be destroyed + # if the creation process encounters an error. + # A cluster may not be able to serve requests while being created. + CREATING = 2 + + # The cluster is currently being resized, and may revert to its previous + # node count if the process encounters an error. + # A cluster is still capable of serving requests while being resized, + # but may exhibit performance as if its number of allocated nodes is + # between the starting and requested states. + RESIZING = 3 + + # The cluster has no backing nodes. The data (tables) still + # exist, but no operations can be performed on the cluster. + DISABLED = 4 + end + + # Possible node scaling factors of the clusters. Node scaling delivers better + # latency and more throughput by removing node boundaries. + module NodeScalingFactor + # No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. + NODE_SCALING_FACTOR_UNSPECIFIED = 0 + + # The cluster is running with a scaling factor of 1. + NODE_SCALING_FACTOR_1X = 1 + + # The cluster is running with a scaling factor of 2. + # All node count values must be in increments of 2 with this scaling factor + # enabled, otherwise an INVALID_ARGUMENT error will be returned. + NODE_SCALING_FACTOR_2X = 2 + end + end + + # A configuration object describing how Cloud Bigtable should treat traffic + # from a particular end user application. + # @!attribute [rw] name + # @return [::String] + # The unique name of the app profile. Values are of the form + # `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # @!attribute [rw] etag + # @return [::String] + # Strongly validated etag for optimistic concurrency control. Preserve the + # value returned from `GetAppProfile` when calling `UpdateAppProfile` to + # fail the request if there has been a modification in the mean time. The + # `update_mask` of the request need not include `etag` for this protection + # to apply. + # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + # [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + # details. + # @!attribute [rw] description + # @return [::String] + # Long form description of the use case for this AppProfile. + # @!attribute [rw] multi_cluster_routing_use_any + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny] + # Use a multi-cluster routing policy. + # + # Note: The following fields are mutually exclusive: `multi_cluster_routing_use_any`, `single_cluster_routing`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] single_cluster_routing + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting] + # Use a single-cluster routing policy. + # + # Note: The following fields are mutually exclusive: `single_cluster_routing`, `multi_cluster_routing_use_any`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] priority + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] + # This field has been deprecated in favor of `standard_isolation.priority`. + # If you set this field, `standard_isolation.priority` will be set instead. + # + # The priority of requests sent using this app profile. + # + # Note: The following fields are mutually exclusive: `priority`, `standard_isolation`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] standard_isolation + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::StandardIsolation] + # The standard options used for isolating this app profile's traffic from + # other use cases. + # + # Note: The following fields are mutually exclusive: `standard_isolation`, `priority`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_boost_isolation_read_only + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly] + # Specifies that this app profile is intended for read-only usage via the + # Data Boost feature. + # + # Note: The following fields are mutually exclusive: `data_boost_isolation_read_only`, `priority`, `standard_isolation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class AppProfile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Read/write requests are routed to the nearest cluster in the instance, and + # will fail over to the nearest cluster that is available in the event of + # transient errors or delays. Clusters in a region are considered + # equidistant. Choosing this option sacrifices read-your-writes consistency + # to improve availability. + # @!attribute [rw] cluster_ids + # @return [::Array<::String>] + # The set of clusters to route to. The order is ignored; clusters will be + # tried in order of distance. If left empty, all clusters are eligible. + # @!attribute [rw] row_affinity + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity] + # Row affinity sticky routing based on the row key of the request. + # Requests that span multiple rows are routed non-deterministically. + class MultiClusterRoutingUseAny + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # If enabled, Bigtable will route the request based on the row key of the + # request, rather than randomly. Instead, each row key will be assigned + # to a cluster, and will stick to that cluster. If clusters are added or + # removed, then this may affect which row keys stick to which clusters. + # To avoid this, users can use a cluster group to specify which clusters + # are to be used. In this case, new clusters that are not a part of the + # cluster group will not be routed to, and routing will be unaffected by + # the new cluster. Moreover, clusters specified in the cluster group cannot + # be deleted unless removed from the cluster group. + class RowAffinity + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Unconditionally routes all read/write requests to a specific cluster. + # This option preserves read-your-writes consistency but does not improve + # availability. + # @!attribute [rw] cluster_id + # @return [::String] + # The cluster to which read/write requests should be routed. + # @!attribute [rw] allow_transactional_writes + # @return [::Boolean] + # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + # allowed by this app profile. It is unsafe to send these requests to + # the same table/row/column in multiple clusters. + class SingleClusterRouting + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Standard options for isolating this app profile's traffic from other use + # cases. + # @!attribute [rw] priority + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] + # The priority of requests sent using this app profile. + class StandardIsolation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data Boost is a serverless compute capability that lets you run + # high-throughput read jobs and queries on your Bigtable data, without + # impacting the performance of the clusters that handle your application + # traffic. Data Boost supports read-only use cases with single-cluster + # routing. + # @!attribute [rw] compute_billing_owner + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner] + # The Compute Billing Owner for this Data Boost App Profile. + class DataBoostIsolationReadOnly + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Compute Billing Owner specifies how usage should be accounted when using + # Data Boost. Compute Billing Owner also configures which Cloud Project is + # charged for relevant quota. + module ComputeBillingOwner + # Unspecified value. + COMPUTE_BILLING_OWNER_UNSPECIFIED = 0 + + # The host Cloud Project containing the targeted Bigtable Instance / + # Table pays for compute. + HOST_PAYS = 1 + end + end + + # Possible priorities for an app profile. Note that higher priority writes + # can sometimes queue behind lower priority writes to the same tablet, as + # writes must be strictly sequenced in the durability log. + module Priority + # Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. + PRIORITY_UNSPECIFIED = 0 + + PRIORITY_LOW = 1 + + PRIORITY_MEDIUM = 2 + + PRIORITY_HIGH = 3 + end + end + + # A tablet is a defined by a start and end key and is explained in + # https://cloud.google.com/bigtable/docs/overview#architecture and + # https://cloud.google.com/bigtable/docs/performance#optimization. + # A Hot tablet is a tablet that exhibits high average cpu usage during the time + # interval from start time to end time. + # @!attribute [rw] name + # @return [::String] + # The unique name of the hot tablet. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. + # @!attribute [rw] table_name + # @return [::String] + # Name of the table that contains the tablet. Values are of the form + # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The start time of the hot tablet. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The end time of the hot tablet. + # @!attribute [rw] start_key + # @return [::String] + # Tablet Start Key (inclusive). + # @!attribute [rw] end_key + # @return [::String] + # Tablet End Key (inclusive). + # @!attribute [r] node_cpu_usage_percent + # @return [::Float] + # Output only. The average CPU usage spent by a node on this tablet over the + # start_time to end_time time range. The percentage is the amount of CPU used + # by the node to serve the tablet, from 0% (tablet was not interacted with) + # to 100% (the node spent all cycles serving the hot tablet). + class HotTablet + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A SQL logical view object that can be referenced in SQL queries. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name of the logical view. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + # @!attribute [rw] query + # @return [::String] + # Required. The logical view's select query. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this logical view. + # This may be sent on update requests to ensure that the client has an + # up-to-date value before proceeding. The server returns an ABORTED error on + # a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Optional. Set to true to make the LogicalView protected against deletion. + class LogicalView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A materialized view object that can be referenced in SQL queries. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name of the materialized view. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + # @!attribute [rw] query + # @return [::String] + # Required. Immutable. The materialized view's select query. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this materialized view. + # This may be sent on update requests to ensure that the client has an + # up-to-date value before proceeding. The server returns an ABORTED error on + # a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the MaterializedView protected against deletion. + class MaterializedView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb new file mode 100644 index 000000000000..a0aaeed8b974 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb @@ -0,0 +1,741 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Information about a table restore. + # @!attribute [rw] source_type + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] + # The type of the restore source. + # @!attribute [rw] backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # Information about the backup used to restore the table. The backup + # may no longer exist. + class RestoreInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Change stream configuration. + # @!attribute [rw] retention_period + # @return [::Google::Protobuf::Duration] + # How long the change stream should be retained. Change stream data older + # than the retention period will not be returned when reading the change + # stream from the table. + # Values must be at least 1 day and at most 7 days, and will be truncated to + # microsecond granularity. + class ChangeStreamConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A collection of user data indexed by row, column, and timestamp. + # Each table is served using the resources of its parent cluster. + # @!attribute [rw] name + # @return [::String] + # The unique name of the table. Values are of the form + # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + # @!attribute [r] cluster_states + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState}] + # Output only. Map from cluster ID to per-cluster table state. + # If it could not be determined whether or not the table has data in a + # particular cluster (for example, if its zone is unavailable), then + # there will be an entry for the cluster with UNKNOWN `replication_status`. + # Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` + # @!attribute [rw] column_families + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::ColumnFamily}] + # The column families configured for this table, mapped by column family ID. + # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + # @!attribute [rw] granularity + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::TimestampGranularity] + # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + # in this table. Timestamps not matching the granularity will be rejected. If + # unspecified at creation time, the value will be set to `MILLIS`. Views: + # `SCHEMA_VIEW`, `FULL`. + # @!attribute [r] restore_info + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreInfo] + # Output only. If this table was restored from another data source (e.g. a + # backup), this field will be populated with information about the restore. + # @!attribute [rw] change_stream_config + # @return [::Google::Cloud::Bigtable::Admin::V2::ChangeStreamConfig] + # If specified, enable the change stream on this table. + # Otherwise, the change stream is disabled and the change stream is not + # retained. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the table protected against data loss. i.e. deleting + # the following resources through Admin APIs are prohibited: + # + # * The table. + # * The column families in the table. + # * The instance containing the table. + # + # Note one can still delete the data stored in the table through Data APIs. + # @!attribute [rw] automated_backup_policy + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::AutomatedBackupPolicy] + # If specified, automated backups are enabled for this table. + # Otherwise, automated backups are disabled. + # @!attribute [rw] tiered_storage_config + # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageConfig] + # Rules to specify what data is stored in each storage tier. + # Different tiers store data differently, providing different trade-offs + # between cost and performance. Different parts of a table can be stored + # separately on different tiers. + # If a config is specified, tiered storage is enabled for this table. + # Otherwise, tiered storage is disabled. + # Only SSD instances can configure tiered storage. + # @!attribute [rw] row_key_schema + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] + # The row key schema for this table. The schema is used to decode the raw row + # key bytes into a structured format. The order of field declarations in this + # schema is important, as it reflects how the raw row key bytes are + # structured. Currently, this only affects how the key is read via a + # GoogleSQL query from the ExecuteQuery API. + # + # For a SQL query, the _key column is still read as raw bytes. But queries + # can reference the key fields by name, which will be decoded from _key using + # provided type and encoding. Queries that reference key fields will fail if + # they encounter an invalid row key. + # + # For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + # following schema: + # { + # fields { + # field_name: "id" + # type { string { encoding: utf8_bytes \\{} } } + # } + # fields { + # field_name: "date" + # type { string { encoding: utf8_bytes \\{} } } + # } + # fields { + # field_name: "product_code" + # type { int64 { encoding: big_endian_bytes \\{} } } + # } + # encoding { delimited_bytes { delimiter: "#" } } + # } + # + # The decoded key parts would be: + # id = "some_id", date = "2024-04-30", product_code = 1245427 + # The query "SELECT _key, product_code FROM table" will return two columns: + # /------------------------------------------------------\ + # | _key | product_code | + # | --------------------------------------|--------------| + # | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + # \------------------------------------------------------/ + # + # The schema has the following invariants: + # (1) The decoded field values are order-preserved. For read, the field + # values will be decoded in sorted mode from the raw bytes. + # (2) Every field in the schema must specify a non-empty name. + # (3) Every field must specify a type with an associated encoding. The type + # is limited to scalar types only: Array, Map, Aggregate, and Struct are not + # allowed. + # (4) The field names must not collide with existing column family + # names and reserved keywords "_key" and "_timestamp". + # + # The following update operations are allowed for row_key_schema: + # - Update from an empty schema to a new schema. + # - Remove the existing schema. This operation requires setting the + # `ignore_warnings` flag to `true`, since it might be a backward + # incompatible change. Without the flag, the update request will fail with + # an INVALID_ARGUMENT error. + # Any other row key schema update operation (e.g. update existing schema + # columns names or types) is currently unsupported. + class Table + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The state of a table's data in a particular cluster. + # @!attribute [r] replication_state + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState::ReplicationState] + # Output only. The state of replication for the table in this cluster. + # @!attribute [r] encryption_info + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo>] + # Output only. The encryption information for the table in this cluster. + # If the encryption key protecting this resource is customer managed, then + # its version can be rotated in Cloud Key Management Service (Cloud KMS). + # The primary version of the key and its status will be reflected here when + # changes propagate from Cloud KMS. + class ClusterState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Table replication states. + module ReplicationState + # The replication state of the table is unknown in this cluster. + STATE_NOT_KNOWN = 0 + + # The cluster was recently created, and the table must finish copying + # over pre-existing data from other clusters before it can begin + # receiving live replication updates and serving Data API requests. + INITIALIZING = 1 + + # The table is temporarily unable to serve Data API requests from this + # cluster due to planned internal maintenance. + PLANNED_MAINTENANCE = 2 + + # The table is temporarily unable to serve Data API requests from this + # cluster due to unplanned or emergency maintenance. + UNPLANNED_MAINTENANCE = 3 + + # The table can serve Data API requests from this cluster. Depending on + # replication delay, reads may not immediately reflect the state of the + # table in other clusters. + READY = 4 + + # The table is fully created and ready for use after a restore, and is + # being optimized for performance. When optimizations are complete, the + # table will transition to `READY` state. + READY_OPTIMIZING = 5 + end + end + + # Defines an automated backup policy for a table + # @!attribute [rw] retention_period + # @return [::Google::Protobuf::Duration] + # Required. How long the automated backups should be retained. Values must + # be at least 3 days and at most 90 days. + # @!attribute [rw] frequency + # @return [::Google::Protobuf::Duration] + # How frequently automated backups should occur. The only supported value + # at this time is 24 hours. An undefined frequency is treated as 24 hours. + # @!attribute [rw] locations + # @return [::Array<::String>] + # Optional. A list of Cloud Bigtable zones where automated backups are + # allowed to be created. If empty, automated backups will be created in all + # zones of the instance. Locations are in the format + # `projects/{project}/locations/{zone}`. + # This field can only set for tables in Enterprise Plus instances. + class AutomatedBackupPolicy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState] + class ClusterStatesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + class ColumnFamiliesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible timestamp granularities to use when keeping multiple versions + # of data in a table. + module TimestampGranularity + # The user did not specify a granularity. Should not be returned. + # When specified during table creation, MILLIS will be used. + TIMESTAMP_GRANULARITY_UNSPECIFIED = 0 + + # The table keeps data versioned at a granularity of 1ms. + MILLIS = 1 + end + + # Defines a view over a table's fields. + module View + # Uses the default view for each method as documented in its request. + VIEW_UNSPECIFIED = 0 + + # Only populates `name`. + NAME_ONLY = 1 + + # Only populates `name` and fields related to the table's schema. + SCHEMA_VIEW = 2 + + # Only populates `name` and fields related to the table's replication + # state. + REPLICATION_VIEW = 3 + + # Only populates `name` and fields related to the table's encryption state. + ENCRYPTION_VIEW = 5 + + # Populates all fields. + FULL = 4 + end + end + + # AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users + # can configure access to each Authorized View independently from the table and + # use the existing Data APIs to access the subset of data. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of this AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + # @!attribute [rw] subset_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::SubsetView] + # An AuthorizedView permitting access to an explicit subset of a Table. + # @!attribute [rw] etag + # @return [::String] + # The etag for this AuthorizedView. + # If this is provided on update, it must match the server's etag. The server + # returns ABORTED error on a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the AuthorizedView protected against deletion. + # The parent Table and containing Instance cannot be deleted if an + # AuthorizedView has this bit set. + class AuthorizedView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Subsets of a column family that are included in this AuthorizedView. + # @!attribute [rw] qualifiers + # @return [::Array<::String>] + # Individual exact column qualifiers to be included in the AuthorizedView. + # @!attribute [rw] qualifier_prefixes + # @return [::Array<::String>] + # Prefixes for qualifiers to be included in the AuthorizedView. Every + # qualifier starting with one of these prefixes is included in the + # AuthorizedView. To provide access to all qualifiers, include the empty + # string as a prefix + # (""). + class FamilySubsets + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a simple AuthorizedView that is a subset of the underlying Table. + # @!attribute [rw] row_prefixes + # @return [::Array<::String>] + # Row prefixes to be included in the AuthorizedView. + # To provide access to all rows, include the empty string as a prefix (""). + # @!attribute [rw] family_subsets + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets}] + # Map from column family name to the columns in this family to be included + # in the AuthorizedView. + class SubsetView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets] + class FamilySubsetsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Defines a subset of an AuthorizedView's fields. + module ResponseView + # Uses the default view for each method as documented in the request. + RESPONSE_VIEW_UNSPECIFIED = 0 + + # Only populates `name`. + NAME_ONLY = 1 + + # Only populates the AuthorizedView's basic metadata. This includes: + # name, deletion_protection, etag. + BASIC = 2 + + # Populates every fields. + FULL = 3 + end + end + + # A set of columns within a table which share a common configuration. + # @!attribute [rw] gc_rule + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule] + # Garbage collection rule specified as a protobuf. + # Must serialize to at most 500 bytes. + # + # NOTE: Garbage collection executes opportunistically in the background, and + # so it's possible for reads to return a cell even if it matches the active + # GC expression for its family. + # @!attribute [rw] value_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of data stored in each of this family's cell values, including its + # full encoding. If omitted, the family only serves raw untyped bytes. + # + # For now, only the `Aggregate` type is supported. + # + # `Aggregate` can only be set at family creation and is immutable afterwards. + # + # + # If `value_type` is `Aggregate`, written data must be compatible with: + # * `value_type.input_type` for `AddInput` mutations + class ColumnFamily + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rule for determining which cells to delete during garbage collection. + # @!attribute [rw] max_num_versions + # @return [::Integer] + # Delete all cells in a column except the most recent N. + # + # Note: The following fields are mutually exclusive: `max_num_versions`, `max_age`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] max_age + # @return [::Google::Protobuf::Duration] + # Delete cells in a column older than the given age. + # Values must be at least one millisecond, and will be truncated to + # microsecond granularity. + # + # Note: The following fields are mutually exclusive: `max_age`, `max_num_versions`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] intersection + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Intersection] + # Delete cells that would be deleted by every nested rule. + # + # Note: The following fields are mutually exclusive: `intersection`, `max_num_versions`, `max_age`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] union + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Union] + # Delete cells that would be deleted by any nested rule. + # + # Note: The following fields are mutually exclusive: `union`, `max_num_versions`, `max_age`, `intersection`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class GcRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A GcRule which deletes cells matching all of the given rules. + # @!attribute [rw] rules + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] + # Only delete cells which would be deleted by every element of `rules`. + class Intersection + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A GcRule which deletes cells matching any of the given rules. + # @!attribute [rw] rules + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] + # Delete cells which would be deleted by any element of `rules`. + class Union + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Encryption information for a given resource. + # If this resource is protected with customer managed encryption, the in-use + # Cloud Key Management Service (Cloud KMS) key version is specified along with + # its status. + # @!attribute [r] encryption_type + # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo::EncryptionType] + # Output only. The type of encryption used to protect this resource. + # @!attribute [r] encryption_status + # @return [::Google::Rpc::Status] + # Output only. The status of encrypt/decrypt calls on underlying data for + # this resource. Regardless of status, the existing data is always encrypted + # at rest. + # @!attribute [r] kms_key_version + # @return [::String] + # Output only. The version of the Cloud KMS key specified in the parent + # cluster that is in use for the data underlying this table. + class EncryptionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible encryption types for a resource. + module EncryptionType + # Encryption type was not specified, though data at rest remains encrypted. + ENCRYPTION_TYPE_UNSPECIFIED = 0 + + # The data backing this resource is encrypted at rest with a key that is + # fully managed by Google. No key version or status will be populated. + # This is the default state. + GOOGLE_DEFAULT_ENCRYPTION = 1 + + # The data backing this resource is encrypted at rest with a key that is + # managed by the customer. + # The in-use version of the key and its status are populated for + # CMEK-protected tables. + # CMEK-protected backups are pinned to the key version that was in use at + # the time the backup was taken. This key version is populated but its + # status is not tracked and is reported as `UNKNOWN`. + CUSTOMER_MANAGED_ENCRYPTION = 2 + end + end + + # A snapshot of a table at a particular time. A snapshot can be used as a + # checkpoint for data restoration or a data source for a new table. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # The unique name of the snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # @!attribute [r] source_table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Output only. The source table at the time the snapshot was taken. + # @!attribute [r] data_size_bytes + # @return [::Integer] + # Output only. The size of the data in the source table at the time the + # snapshot was taken. In some cases, this value may be computed + # asynchronously via a background process and a placeholder of 0 will be used + # in the meantime. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time when the snapshot is created. + # @!attribute [rw] delete_time + # @return [::Google::Protobuf::Timestamp] + # The time when the snapshot will be deleted. The maximum amount of time a + # snapshot can stay active is 365 days. If 'ttl' is not specified, + # the default maximum of 365 days will be used. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot::State] + # Output only. The current state of the snapshot. + # @!attribute [rw] description + # @return [::String] + # Description of the snapshot. + class Snapshot + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible states of a snapshot. + module State + # The state of the snapshot could not be determined. + STATE_NOT_KNOWN = 0 + + # The snapshot has been successfully created and can serve all requests. + READY = 1 + + # The snapshot is currently being created, and may be destroyed if the + # creation process encounters an error. A snapshot may not be restored to a + # table while it is being created. + CREATING = 2 + end + end + + # A backup of a Cloud Bigtable table. + # @!attribute [rw] name + # @return [::String] + # A globally unique identifier for the backup which cannot be + # changed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/ + # backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + # The final segment of the name must be between 1 and 50 characters + # in length. + # + # The backup is stored in the cluster identified by the prefix of the backup + # name of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] source_table + # @return [::String] + # Required. Immutable. Name of the table from which this backup was created. + # This needs to be in the same instance as the backup. Values are of the form + # `projects/{project}/instances/{instance}/tables/{source_table}`. + # @!attribute [r] source_backup + # @return [::String] + # Output only. Name of the backup from which this backup was copied. If a + # backup is not created by copying a backup, this field will be empty. Values + # are of the form: + # projects//instances//clusters//backups/ + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # Required. The expiration time of the backup. + # When creating a backup or updating its `expire_time`, the value must be + # greater than the backup creation time by: + # - At least 6 hours + # - At most 90 days + # + # Once the `expire_time` has passed, Cloud Bigtable will delete the backup. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. `start_time` is the time that the backup was started + # (i.e. approximately the time the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup} + # request is received). The row data in this backup will be no older than + # this timestamp. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. `end_time` is the time that the backup was finished. The row + # data in the backup will be no newer than this timestamp. + # @!attribute [r] size_bytes + # @return [::Integer] + # Output only. Size of the backup in bytes. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State] + # Output only. The current state of the backup. + # @!attribute [r] encryption_info + # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo] + # Output only. The encryption information for the backup. + # @!attribute [rw] backup_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType] + # Indicates the backup type of the backup. + # @!attribute [rw] hot_to_standard_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the hot backup will be converted to a standard backup. + # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the + # hot backup to a standard backup. This value must be greater than the backup + # creation time by: + # - At least 24 hours + # + # This field only applies for hot backups. When creating or updating a + # standard backup, attempting to set this field will fail the request. + class Backup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the current state of the backup. + module State + # Not specified. + STATE_UNSPECIFIED = 0 + + # The pending backup is still being created. Operations on the + # backup may fail with `FAILED_PRECONDITION` in this state. + CREATING = 1 + + # The backup is complete and ready for use. + READY = 2 + end + + # The type of the backup. + module BackupType + # Not specified. + BACKUP_TYPE_UNSPECIFIED = 0 + + # The default type for Cloud Bigtable managed backups. Supported for + # backups created in both HDD and SSD instances. Requires optimization when + # restored to a table in an SSD instance. + STANDARD = 1 + + # A backup type with faster restore to SSD performance. Only supported for + # backups created in SSD instances. A new SSD table restored from a hot + # backup reaches production performance more quickly than a standard + # backup. + HOT = 2 + end + end + + # Information about a backup. + # @!attribute [r] backup + # @return [::String] + # Output only. Name of the backup. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time that the backup was started. Row data in the backup + # will be no older than this timestamp. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. This time that the backup was finished. Row data in the + # backup will be no newer than this timestamp. + # @!attribute [r] source_table + # @return [::String] + # Output only. Name of the table the backup was created from. + # @!attribute [r] source_backup + # @return [::String] + # Output only. Name of the backup from which this backup was copied. If a + # backup is not created by copying a backup, this field will be empty. Values + # are of the form: + # projects//instances//clusters//backups/ + class BackupInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Config for tiered storage. + # A valid config must have a valid TieredStorageRule. Otherwise the whole + # TieredStorageConfig must be unset. + # By default all data is stored in the SSD tier (only SSD instances can + # configure tiered storage). + # @!attribute [rw] infrequent_access + # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageRule] + # Rule to specify what data is stored in the infrequent access(IA) tier. + # The IA tier allows storing more data per node with reduced performance. + class TieredStorageConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rule to specify what data is stored in a storage tier. + # @!attribute [rw] include_if_older_than + # @return [::Google::Protobuf::Duration] + # Include cells older than the given age. + # For the infrequent access tier, this value must be at least 30 days. + class TieredStorageRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a protobuf schema. + # @!attribute [rw] proto_descriptors + # @return [::String] + # Required. Contains a protobuf-serialized + # [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + # which could include multiple proto files. + # To generate it, [install](https://grpc.io/docs/protoc-installation/) and + # run `protoc` with + # `--include_imports` and `--descriptor_set_out`. For example, to generate + # for moon/shot/app.proto, run + # ``` + # $protoc --proto_path=/app_path --proto_path=/lib_path \ + # --include_imports \ + # --descriptor_set_out=descriptors.pb \ + # moon/shot/app.proto + # ``` + # For more details, see protobuffer [self + # description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + class ProtoSchema + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A named collection of related schemas. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] proto_schema + # @return [::Google::Cloud::Bigtable::Admin::V2::ProtoSchema] + # Schema for Protobufs. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this schema bundle. + # This may be sent on update and delete requests to ensure the + # client has an up-to-date value before proceeding. The server + # returns an ABORTED error on a mismatched etag. + class SchemaBundle + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the type of the restore source. + module RestoreSourceType + # No restore associated. + RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 + + # A backup was used as the source of the restore. + BACKUP = 1 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb new file mode 100644 index 000000000000..8a598f02b9ff --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb @@ -0,0 +1,575 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # `Type` represents the type of data that is written to, read from, or stored + # in Bigtable. It is heavily based on the GoogleSQL standard to help maintain + # familiarity and consistency across products and features. + # + # For compatibility with Bigtable's existing untyped APIs, each `Type` includes + # an `Encoding` which describes how to convert to or from the underlying data. + # + # Each encoding can operate in one of two modes: + # + # - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` + # if and only if `X <= Y`. This is useful anywhere sort order is important, + # for example when encoding keys. + # - Distinct: In this mode, Bigtable guarantees that if `X != Y` then + # `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For + # example, both "\\{'foo': '1', 'bar': '2'}" and "\\{'bar': '2', 'foo': '1'}" + # are valid encodings of the same JSON value. + # + # The API clearly documents which mode is used wherever an encoding can be + # configured. Each encoding also documents which values are supported in which + # modes. For example, when encoding INT64 as a numeric STRING, negative numbers + # cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but + # `STRING("-00001") > STRING("00001")`. + # @!attribute [rw] bytes_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] + # Bytes + # + # Note: The following fields are mutually exclusive: `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] string_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String] + # String + # + # Note: The following fields are mutually exclusive: `string_type`, `bytes_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] int64_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64] + # Int64 + # + # Note: The following fields are mutually exclusive: `int64_type`, `bytes_type`, `string_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float32_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float32] + # Float32 + # + # Note: The following fields are mutually exclusive: `float32_type`, `bytes_type`, `string_type`, `int64_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float64_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float64] + # Float64 + # + # Note: The following fields are mutually exclusive: `float64_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bool] + # Bool + # + # Note: The following fields are mutually exclusive: `bool_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] timestamp_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp] + # Timestamp + # + # Note: The following fields are mutually exclusive: `timestamp_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] date_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Date] + # Date + # + # Note: The following fields are mutually exclusive: `date_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] aggregate_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate] + # Aggregate + # + # Note: The following fields are mutually exclusive: `aggregate_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] struct_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] + # Struct + # + # Note: The following fields are mutually exclusive: `struct_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] array_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Array] + # Array + # + # Note: The following fields are mutually exclusive: `array_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] map_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Map] + # Map + # + # Note: The following fields are mutually exclusive: `map_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] proto_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Proto] + # Proto + # + # Note: The following fields are mutually exclusive: `proto_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] enum_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Enum] + # Enum + # + # Note: The following fields are mutually exclusive: `enum_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Type + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Bytes + # Values of type `Bytes` are stored in `Value.bytes_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding] + # The encoding to use when converting to or from lower level types. + class Bytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] raw + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding::Raw] + # Use `Raw` encoding. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Leaves the value as-is. + # + # Sorted mode: all values are supported. + # + # Distinct mode: all values are supported. + class Raw + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # String + # Values of type `String` are stored in `Value.string_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding] + # The encoding to use when converting to or from lower level types. + class String + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] utf8_raw + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Raw] + # Deprecated: if set, converts to an empty `utf8_bytes`. + # + # Note: The following fields are mutually exclusive: `utf8_raw`, `utf8_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] utf8_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Bytes] + # Use `Utf8Bytes` encoding. + # + # Note: The following fields are mutually exclusive: `utf8_bytes`, `utf8_raw`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Deprecated: prefer the equivalent `Utf8Bytes`. + # @deprecated This message is deprecated and may be removed in the next major version update. + class Utf8Raw + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UTF-8 encoding. + # + # Sorted mode: + # - All values are supported. + # - Code point order is preserved. + # + # Distinct mode: all values are supported. + # + # Compatible with: + # + # - BigQuery `TEXT` encoding + # - HBase `Bytes.toBytes` + # - Java `String#getBytes(StandardCharsets.UTF_8)` + class Utf8Bytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # Int64 + # Values of type `Int64` are stored in `Value.int_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] + # The encoding to use when converting to or from lower level types. + class Int64 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] big_endian_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::BigEndianBytes] + # Use `BigEndianBytes` encoding. + # + # Note: The following fields are mutually exclusive: `big_endian_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ordered_code_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::OrderedCodeBytes] + # Use `OrderedCodeBytes` encoding. + # + # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `big_endian_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Encodes the value as an 8-byte big-endian two's complement value. + # + # Sorted mode: non-negative values are supported. + # + # Distinct mode: all values are supported. + # + # Compatible with: + # + # - BigQuery `BINARY` encoding + # - HBase `Bytes.toBytes` + # - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` + # @!attribute [rw] bytes_type + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] + # Deprecated: ignored if set. + class BigEndianBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Encodes the value in a variable length binary format of up to 10 bytes. + # Values that are closer to zero use fewer bytes. + # + # Sorted mode: all values are supported. + # + # Distinct mode: all values are supported. + class OrderedCodeBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # bool + # Values of type `Bool` are stored in `Value.bool_value`. + class Bool + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Float32 + # Values of type `Float32` are stored in `Value.float_value`. + class Float32 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Float64 + # Values of type `Float64` are stored in `Value.float_value`. + class Float64 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Timestamp + # Values of type `Timestamp` are stored in `Value.timestamp_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp::Encoding] + # The encoding to use when converting to or from lower level types. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] unix_micros_int64 + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] + # Encodes the number of microseconds since the Unix epoch using the + # given `Int64` encoding. Values must be microsecond-aligned. + # + # Compatible with: + # + # - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Date + # Values of type `Date` are stored in `Value.date_value`. + class Date + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A structured data value, consisting of fields which map to dynamically + # typed values. + # Values of type `Struct` are stored in `Value.array_value` where entries are + # in the same order and number as `field_types`. + # @!attribute [rw] fields + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Field>] + # The names and types of the fields in this struct. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding] + # The encoding to use when converting to or from lower level types. + class Struct + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A struct field and its type. + # @!attribute [rw] field_name + # @return [::String] + # The field name (optional). Fields without a `field_name` are considered + # anonymous and cannot be referenced by name. + # @!attribute [rw] type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of values in this field. + class Field + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rules used to convert to or from lower level types. + # @!attribute [rw] singleton + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::Singleton] + # Use `Singleton` encoding. + # + # Note: The following fields are mutually exclusive: `singleton`, `delimited_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delimited_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::DelimitedBytes] + # Use `DelimitedBytes` encoding. + # + # Note: The following fields are mutually exclusive: `delimited_bytes`, `singleton`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ordered_code_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::OrderedCodeBytes] + # User `OrderedCodeBytes` encoding. + # + # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `singleton`, `delimited_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Uses the encoding of `fields[0].type` as-is. + # Only valid if `fields.size == 1`. + class Singleton + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Fields are encoded independently and concatenated with a configurable + # `delimiter` in between. + # + # A struct with no fields defined is encoded as a single `delimiter`. + # + # Sorted mode: + # + # - Fields are encoded in sorted mode. + # - Encoded field values must not contain any bytes <= `delimiter[0]` + # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + # + # Distinct mode: + # + # - Fields are encoded in distinct mode. + # - Encoded field values must not contain `delimiter[0]`. + # @!attribute [rw] delimiter + # @return [::String] + # Byte sequence used to delimit concatenated fields. The delimiter must + # contain at least 1 character and at most 50 characters. + class DelimitedBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Fields are encoded independently and concatenated with the fixed byte + # pair \\{0x00, 0x01} in between. + # + # Any null (0x00) byte in an encoded field is replaced by the fixed byte + # pair \\{0x00, 0xFF}. + # + # Fields that encode to the empty string "" have special handling: + # + # - If *every* field encodes to "", or if the STRUCT has no fields + # defined, then the STRUCT is encoded as the fixed byte pair + # \\{0x00, 0x00}. + # - Otherwise, the STRUCT only encodes until the last non-empty field, + # omitting any trailing empty fields. Any empty fields that aren't + # omitted are replaced with the fixed byte pair \\{0x00, 0x00}. + # + # Examples: + # + # - STRUCT() -> "\00\00" + # - STRUCT("") -> "\00\00" + # - STRUCT("", "") -> "\00\00" + # - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" + # - STRUCT("A", "") -> "A" + # - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" + # - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" + # + # + # Since null bytes are always escaped, this encoding can cause size + # blowup for encodings like `Int64.BigEndianBytes` that are likely to + # produce many such bytes. + # + # Sorted mode: + # + # - Fields are encoded in sorted mode. + # - All values supported by the field encodings are allowed + # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + # + # Distinct mode: + # + # - Fields are encoded in distinct mode. + # - All values supported by the field encodings are allowed. + class OrderedCodeBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # A protobuf message type. + # Values of type `Proto` are stored in `Value.bytes_value`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # The ID of the schema bundle that this proto is defined in. + # @!attribute [rw] message_name + # @return [::String] + # The fully qualified name of the protobuf message, including package. In + # the format of "foo.bar.Message". + class Proto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A protobuf enum type. + # Values of type `Enum` are stored in `Value.int_value`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # The ID of the schema bundle that this enum is defined in. + # @!attribute [rw] enum_name + # @return [::String] + # The fully qualified name of the protobuf enum message, including package. + # In the format of "foo.bar.EnumMessage". + class Enum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # An ordered list of elements of a given type. + # Values of type `Array` are stored in `Value.array_value`. + # @!attribute [rw] element_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of the elements in the array. This must not be `Array`. + class Array + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A mapping of keys to values of a given type. + # Values of type `Map` are stored in a `Value.array_value` where each entry + # is another `Value.array_value` with two elements (the key and the value, + # in that order). + # Normally encoded Map values won't have repeated keys, however, clients are + # expected to handle the case in which they do. If the same key appears + # multiple times, the _last_ value takes precedence. + # @!attribute [rw] key_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of a map key. + # Only `Bytes`, `String`, and `Int64` are allowed as key types. + # @!attribute [rw] value_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of the values in a map. + class Map + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A value that combines incremental updates into a summarized value. + # + # Data is never directly written or read using type `Aggregate`. Writes will + # provide either the `input_type` or `state_type`, and reads will always + # return the `state_type` . + # @!attribute [rw] input_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # Type of the inputs that are accumulated by this `Aggregate`, which must + # specify a full encoding. + # Use `AddInput` mutations to accumulate new inputs. + # @!attribute [r] state_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # Output only. Type that holds the internal accumulator state for the + # `Aggregate`. This is a function of the `input_type` and `aggregator` + # chosen, and will always specify a full encoding. + # @!attribute [rw] sum + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Sum] + # Sum aggregator. + # + # Note: The following fields are mutually exclusive: `sum`, `hllpp_unique_count`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] hllpp_unique_count + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount] + # HyperLogLogPlusPlusUniqueCount aggregator. + # + # Note: The following fields are mutually exclusive: `hllpp_unique_count`, `sum`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] max + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Max] + # Max aggregator. + # + # Note: The following fields are mutually exclusive: `max`, `sum`, `hllpp_unique_count`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] min + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Min] + # Min aggregator. + # + # Note: The following fields are mutually exclusive: `min`, `sum`, `hllpp_unique_count`, `max`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Aggregate + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Computes the sum of the input values. + # Allowed input: `Int64` + # State: same as input + class Sum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes the max of the input values. + # Allowed input: `Int64` + # State: same as input + class Max + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes the min of the input values. + # Allowed input: `Int64` + # State: same as input + class Min + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes an approximate unique count over the input values. When using + # raw data as input, be careful to use a consistent encoding. Otherwise + # the same value encoded differently could count more than once, or two + # distinct values could count as identical. + # Input: Any, or omit for Raw + # State: TBD + # Special state conversions: `Int64` (the unique count estimate) + class HyperLogLogPlusPlusUniqueCount + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb new file mode 100644 index 000000000000..5445c77f8258 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb @@ -0,0 +1,87 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # Request message for `SetIamPolicy` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] policy + # @return [::Google::Iam::V1::Policy] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + class SetIamPolicyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `GetIamPolicy` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] options + # @return [::Google::Iam::V1::GetPolicyOptions] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + class GetIamPolicyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `TestIamPermissions` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] permissions + # @return [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + class TestIamPermissionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `TestIamPermissions` method. + # @!attribute [rw] permissions + # @return [::Array<::String>] + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + class TestIamPermissionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb new file mode 100644 index 000000000000..60713d995b86 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # Encapsulates settings provided to GetIamPolicy. + # @!attribute [rw] requested_policy_version + # @return [::Integer] + # Optional. The maximum policy version that will be used to format the + # policy. + # + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # + # Requests for policies with any conditional role bindings must specify + # version 3. Policies with no conditional role bindings may specify any valid + # value or leave the field unset. + # + # The policy in the response might use the policy version that you specified, + # or it might use a lower policy version. For example, if you specify version + # 3, but the policy has no conditional role bindings, the response uses + # version 1. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + class GetPolicyOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb new file mode 100644 index 000000000000..999575b797df --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb @@ -0,0 +1,426 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # + # + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members`, or principals, to a single `role`. Principals can be user + # accounts, service accounts, Google groups, and domains (such as G Suite). A + # `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. + # + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # + # **JSON example:** + # + # ``` + # { + # "bindings": [ + # { + # "role": "roles/resourcemanager.organizationAdmin", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" + # ] + # }, + # { + # "role": "roles/resourcemanager.organizationViewer", + # "members": [ + # "user:eve@example.com" + # ], + # "condition": { + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # } + # } + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 + # } + # ``` + # + # **YAML example:** + # + # ``` + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin + # - members: + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # etag: BwWWja0YfJA= + # version: 3 + # ``` + # + # For a description of IAM and its features, see the + # [IAM documentation](https://cloud.google.com/iam/docs/). + # @!attribute [rw] version + # @return [::Integer] + # Specifies the format of the policy. + # + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # @!attribute [rw] bindings + # @return [::Array<::Google::Iam::V1::Binding>] + # Associates a list of `members`, or principals, with a `role`. Optionally, + # may specify a `condition` that determines how and when the `bindings` are + # applied. Each of the `bindings` must contain at least one principal. + # + # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + # of these principals can be Google groups. Each occurrence of a principal + # counts towards these limits. For example, if the `bindings` grant 50 + # different roles to `user:alice@example.com`, and not to any other + # principal, then you can add another 1,450 principals to the `bindings` in + # the `Policy`. + # @!attribute [rw] audit_configs + # @return [::Array<::Google::Iam::V1::AuditConfig>] + # Specifies cloud audit logging configuration for this policy. + # @!attribute [rw] etag + # @return [::String] + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + class Policy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Associates `members`, or principals, with a `role`. + # @!attribute [rw] role + # @return [::String] + # Role that is assigned to the list of `members`, or principals. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # @!attribute [rw] members + # @return [::Array<::String>] + # Specifies the principals requesting access for a Google Cloud resource. + # `members` can have the following values: + # + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # + # * `user:{emailid}`: An email address that represents a specific Google + # account. For example, `alice@example.com` . + # + # + # * `serviceAccount:{emailid}`: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # + # * `group:{emailid}`: An email address that represents a Google group. + # For example, `admins@example.com`. + # + # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:{emailid}` and the recovered user + # retains the role in the binding. + # + # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:{emailid}` and the undeleted service account retains the + # role in the binding. + # + # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:{emailid}` and the + # recovered group retains the role in the binding. + # + # + # * `domain:{domain}`: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # @!attribute [rw] condition + # @return [::Google::Type::Expr] + # The condition that is associated with this binding. + # + # If the condition evaluates to `true`, then this binding applies to the + # current request. + # + # If the condition evaluates to `false`, then this binding does not apply to + # the current request. However, a different role binding might grant the same + # role to one or more of the principals in this binding. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + class Binding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # + # Example Policy with multiple AuditConfigs: + # + # { + # "audit_configs": [ + # { + # "service": "allServices", + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # }, + # { + # "log_type": "DATA_WRITE" + # }, + # { + # "log_type": "ADMIN_READ" + # } + # ] + # }, + # { + # "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ" + # }, + # { + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:aliya@example.com" + # ] + # } + # ] + # } + # ] + # } + # + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts `jose@example.com` from DATA_READ logging, and + # `aliya@example.com` from DATA_WRITE logging. + # @!attribute [rw] service + # @return [::String] + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # @!attribute [rw] audit_log_configs + # @return [::Array<::Google::Iam::V1::AuditLogConfig>] + # The configuration for logging of each type of permission. + class AuditConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Provides the configuration for logging a type of permissions. + # Example: + # + # { + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # }, + # { + # "log_type": "DATA_WRITE" + # } + # ] + # } + # + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # jose@example.com from DATA_READ logging. + # @!attribute [rw] log_type + # @return [::Google::Iam::V1::AuditLogConfig::LogType] + # The log type that this config enables. + # @!attribute [rw] exempted_members + # @return [::Array<::String>] + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of + # [Binding.members][google.iam.v1.Binding.members]. + class AuditLogConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The list of valid permission types for which logging can be configured. + # Admin writes are always logged, and are not configurable. + module LogType + # Default case. Should never be this. + LOG_TYPE_UNSPECIFIED = 0 + + # Admin reads. Example: CloudIAM getIamPolicy + ADMIN_READ = 1 + + # Data writes. Example: CloudSQL Users create + DATA_WRITE = 2 + + # Data reads. Example: CloudSQL Users list + DATA_READ = 3 + end + end + + # The difference delta between two policies. + # @!attribute [rw] binding_deltas + # @return [::Array<::Google::Iam::V1::BindingDelta>] + # The delta for Bindings between two policies. + # @!attribute [rw] audit_config_deltas + # @return [::Array<::Google::Iam::V1::AuditConfigDelta>] + # The delta for AuditConfigs between two policies. + class PolicyDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # One delta entry for Binding. Each individual change (only one member in each + # entry) to a binding will be a separate entry. + # @!attribute [rw] action + # @return [::Google::Iam::V1::BindingDelta::Action] + # The action that was performed on a Binding. + # Required + # @!attribute [rw] role + # @return [::String] + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Required + # @!attribute [rw] member + # @return [::String] + # A single identity requesting access for a Google Cloud resource. + # Follows the same format of Binding.members. + # Required + # @!attribute [rw] condition + # @return [::Google::Type::Expr] + # The condition that is associated with this binding. + class BindingDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of action performed on a Binding in a policy. + module Action + # Unspecified. + ACTION_UNSPECIFIED = 0 + + # Addition of a Binding. + ADD = 1 + + # Removal of a Binding. + REMOVE = 2 + end + end + + # One delta entry for AuditConfig. Each individual change (only one + # exempted_member in each entry) to a AuditConfig will be a separate entry. + # @!attribute [rw] action + # @return [::Google::Iam::V1::AuditConfigDelta::Action] + # The action that was performed on an audit configuration in a policy. + # Required + # @!attribute [rw] service + # @return [::String] + # Specifies a service that was configured for Cloud Audit Logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Required + # @!attribute [rw] exempted_member + # @return [::String] + # A single identity that is exempted from "data access" audit + # logging for the `service` specified above. + # Follows the same format of Binding.members. + # @!attribute [rw] log_type + # @return [::String] + # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + # enabled, and cannot be configured. + # Required + class AuditConfigDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of action performed on an audit configuration in a policy. + module Action + # Unspecified. + ACTION_UNSPECIFIED = 0 + + # Addition of an audit configuration. + ADD = 1 + + # Removal of an audit configuration. + REMOVE = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb new file mode 100644 index 000000000000..7a757f512165 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb @@ -0,0 +1,191 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Longrunning + # This resource represents a long-running operation that is the result of a + # network API call. + # @!attribute [rw] name + # @return [::String] + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/{unique_id}`. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Any] + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # @!attribute [rw] done + # @return [::Boolean] + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # @!attribute [rw] error + # @return [::Google::Rpc::Status] + # The error result of the operation in case of failure or cancellation. + # + # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] response + # @return [::Google::Protobuf::Any] + # The normal, successful response of the operation. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # + # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Operation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.GetOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource. + class GetOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.ListOperations. + # @!attribute [rw] name + # @return [::String] + # The name of the operation's parent resource. + # @!attribute [rw] filter + # @return [::String] + # The standard list filter. + # @!attribute [rw] page_size + # @return [::Integer] + # The standard list page size. + # @!attribute [rw] page_token + # @return [::String] + # The standard list page token. + # @!attribute [rw] return_partial_success + # @return [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + class ListOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for + # Operations.ListOperations. + # @!attribute [rw] operations + # @return [::Array<::Google::Longrunning::Operation>] + # A list of operations that matches the specified filter in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # The standard List next-page token. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Unreachable resources. Populated when the request sets + # `ListOperationsRequest.return_partial_success` and reads across + # collections e.g. when attempting to list all resources across all supported + # locations. + class ListOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.CancelOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be cancelled. + class CancelOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.DeleteOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be deleted. + class DeleteOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.WaitOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to wait on. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + class WaitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A message representing the message types used by a long-running operation. + # + # Example: + # + # rpc Export(ExportRequest) returns (google.longrunning.Operation) { + # option (google.longrunning.operation_info) = { + # response_type: "ExportResponse" + # metadata_type: "ExportMetadata" + # }; + # } + # @!attribute [rw] response_type + # @return [::String] + # Required. The message name of the primary return type for this + # long-running operation. + # This type will be used to deserialize the LRO's response. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + # @!attribute [rw] metadata_type + # @return [::String] + # Required. The message name of the metadata type for this long-running + # operation. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + class OperationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb new file mode 100644 index 000000000000..53e7733b6592 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # + # Example (Comparison): + # + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # + # Example (Equality): + # + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # + # Example (Logic): + # + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # + # Example (Data Manipulation): + # + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # @!attribute [rw] expression + # @return [::String] + # Textual representation of an expression in Common Expression Language + # syntax. + # @!attribute [rw] title + # @return [::String] + # Optional. Title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # @!attribute [rw] description + # @return [::String] + # Optional. Description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # @!attribute [rw] location + # @return [::String] + # Optional. String indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + class Expr + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile new file mode 100644 index 000000000000..f88d2bf31b17 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-bigtable-admin-v2", path: "../" +else + gem "google-cloud-bigtable-admin-v2" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb new file mode 100644 index 000000000000..60b0e44dae42 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile. +# +def create_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new + + # Call the create_app_profile method. + result = client.create_app_profile request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb new file mode 100644 index 000000000000..1923dfa3b593 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster. +# +def create_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new + + # Call the create_cluster method. + result = client.create_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb new file mode 100644 index 000000000000..9bfb53227c80 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance. +# +def create_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new + + # Call the create_instance method. + result = client.create_instance request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb new file mode 100644 index 000000000000..7523e3a3df7f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view. +# +def create_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new + + # Call the create_logical_view method. + result = client.create_logical_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb new file mode 100644 index 000000000000..99be7f04ca20 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view. +# +def create_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new + + # Call the create_materialized_view method. + result = client.create_materialized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb new file mode 100644 index 000000000000..be07699500ed --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile. +# +def delete_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new + + # Call the delete_app_profile method. + result = client.delete_app_profile request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb new file mode 100644 index 000000000000..ad008ded7e08 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster. +# +def delete_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new + + # Call the delete_cluster method. + result = client.delete_cluster request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb new file mode 100644 index 000000000000..f161dc0445dd --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance. +# +def delete_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new + + # Call the delete_instance method. + result = client.delete_instance request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb new file mode 100644 index 000000000000..f486e799a373 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view. +# +def delete_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new + + # Call the delete_logical_view method. + result = client.delete_logical_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb new file mode 100644 index 000000000000..1e869b43c09d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view. +# +def delete_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new + + # Call the delete_materialized_view method. + result = client.delete_materialized_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb new file mode 100644 index 000000000000..a6b51fecf7b8 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile. +# +def get_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new + + # Call the get_app_profile method. + result = client.get_app_profile request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb new file mode 100644 index 000000000000..e3a302d2fe21 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster. +# +def get_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new + + # Call the get_cluster method. + result = client.get_cluster request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb new file mode 100644 index 000000000000..69ab829b07a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_iam_policy call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb new file mode 100644 index 000000000000..ccd0595fe780 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance. +# +def get_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new + + # Call the get_instance method. + result = client.get_instance request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb new file mode 100644 index 000000000000..adfe7a736595 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view. +# +def get_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new + + # Call the get_logical_view method. + result = client.get_logical_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb new file mode 100644 index 000000000000..6233ab496c0f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view. +# +def get_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new + + # Call the get_materialized_view method. + result = client.get_materialized_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb new file mode 100644 index 000000000000..57b0097b3518 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_app_profiles call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles. +# +def list_app_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new + + # Call the list_app_profiles method. + result = client.list_app_profiles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb new file mode 100644 index 000000000000..8545983eb3a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_clusters call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters. +# +def list_clusters + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new + + # Call the list_clusters method. + result = client.list_clusters request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb new file mode 100644 index 000000000000..5090d8624697 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets. +# +def list_hot_tablets + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new + + # Call the list_hot_tablets method. + result = client.list_hot_tablets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb new file mode 100644 index 000000000000..a4038642c51f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_instances call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances. +# +def list_instances + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new + + # Call the list_instances method. + result = client.list_instances request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb new file mode 100644 index 000000000000..09e85d564f89 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_logical_views call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views. +# +def list_logical_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new + + # Call the list_logical_views method. + result = client.list_logical_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb new file mode 100644 index 000000000000..37d40ffb913e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_materialized_views call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views. +# +def list_materialized_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new + + # Call the list_materialized_views method. + result = client.list_materialized_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb new file mode 100644 index 000000000000..3923f7ae400d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster. +# +def partial_update_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new + + # Call the partial_update_cluster method. + result = client.partial_update_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb new file mode 100644 index 000000000000..1630801fd676 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the partial_update_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance. +# +def partial_update_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new + + # Call the partial_update_instance method. + result = client.partial_update_instance request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb new file mode 100644 index 000000000000..834fab5b6899 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the set_iam_policy call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb new file mode 100644 index 000000000000..1e00c002ab00 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb new file mode 100644 index 000000000000..30f88f2bf050 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile. +# +def update_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new + + # Call the update_app_profile method. + result = client.update_app_profile request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb new file mode 100644 index 000000000000..da1c506529be --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster. +# +def update_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::Cluster.new + + # Call the update_cluster method. + result = client.update_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb new file mode 100644 index 000000000000..2aeb910c78ba --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance. +# +def update_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::Instance.new + + # Call the update_instance method. + result = client.update_instance request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb new file mode 100644 index 000000000000..1cb0d166a85e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view. +# +def update_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new + + # Call the update_logical_view method. + result = client.update_logical_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb new file mode 100644 index 000000000000..da78d73ca450 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view. +# +def update_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new + + # Call the update_materialized_view method. + result = client.update_materialized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb new file mode 100644 index 000000000000..56bd26ccebc2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the check_consistency call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency. +# +def check_consistency + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new + + # Call the check_consistency method. + result = client.check_consistency request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb new file mode 100644 index 000000000000..32e9e991b2e0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the copy_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup. +# +def copy_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new + + # Call the copy_backup method. + result = client.copy_backup request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb new file mode 100644 index 000000000000..93ca1b05050a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view. +# +def create_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new + + # Call the create_authorized_view method. + result = client.create_authorized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb new file mode 100644 index 000000000000..bbd26b8f605e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup. +# +def create_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new + + # Call the create_backup method. + result = client.create_backup request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb new file mode 100644 index 000000000000..3cf630415459 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle. +# +def create_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new + + # Call the create_schema_bundle method. + result = client.create_schema_bundle request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb new file mode 100644 index 000000000000..8d98a8471082 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table. +# +def create_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new + + # Call the create_table method. + result = client.create_table request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb new file mode 100644 index 000000000000..3cf2e7283166 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot. +# +def create_table_from_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new + + # Call the create_table_from_snapshot method. + result = client.create_table_from_snapshot request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb new file mode 100644 index 000000000000..c5937706f326 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view. +# +def delete_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new + + # Call the delete_authorized_view method. + result = client.delete_authorized_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb new file mode 100644 index 000000000000..d710addca48c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup. +# +def delete_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new + + # Call the delete_backup method. + result = client.delete_backup request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb new file mode 100644 index 000000000000..3b07c8b887f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle. +# +def delete_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new + + # Call the delete_schema_bundle method. + result = client.delete_schema_bundle request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb new file mode 100644 index 000000000000..c7ab27d40147 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot. +# +def delete_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new + + # Call the delete_snapshot method. + result = client.delete_snapshot request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb new file mode 100644 index 000000000000..315ff9367627 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table. +# +def delete_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new + + # Call the delete_table method. + result = client.delete_table request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb new file mode 100644 index 000000000000..2b6cd7d2303a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the drop_row_range call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range. +# +def drop_row_range + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new + + # Call the drop_row_range method. + result = client.drop_row_range request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb new file mode 100644 index 000000000000..88734d55318b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the generate_consistency_token call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token. +# +def generate_consistency_token + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new + + # Call the generate_consistency_token method. + result = client.generate_consistency_token request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb new file mode 100644 index 000000000000..79ae8f10cc46 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view. +# +def get_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new + + # Call the get_authorized_view method. + result = client.get_authorized_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb new file mode 100644 index 000000000000..6c0f68dd6078 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup. +# +def get_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new + + # Call the get_backup method. + result = client.get_backup request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb new file mode 100644 index 000000000000..33969bfecb74 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_iam_policy call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb new file mode 100644 index 000000000000..108356d532d0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle. +# +def get_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new + + # Call the get_schema_bundle method. + result = client.get_schema_bundle request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb new file mode 100644 index 000000000000..da9903b816ee --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot. +# +def get_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new + + # Call the get_snapshot method. + result = client.get_snapshot request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb new file mode 100644 index 000000000000..de73a71a944b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table. +# +def get_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new + + # Call the get_table method. + result = client.get_table request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb new file mode 100644 index 000000000000..975edad00358 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_authorized_views call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views. +# +def list_authorized_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new + + # Call the list_authorized_views method. + result = client.list_authorized_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb new file mode 100644 index 000000000000..113b0761aba0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_backups call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups. +# +def list_backups + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new + + # Call the list_backups method. + result = client.list_backups request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb new file mode 100644 index 000000000000..03b8c6193c5a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_schema_bundles call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles. +# +def list_schema_bundles + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new + + # Call the list_schema_bundles method. + result = client.list_schema_bundles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb new file mode 100644 index 000000000000..1c34195822a7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_snapshots call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots. +# +def list_snapshots + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new + + # Call the list_snapshots method. + result = client.list_snapshots request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb new file mode 100644 index 000000000000..3c482ff03261 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_tables call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables. +# +def list_tables + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new + + # Call the list_tables method. + result = client.list_tables request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb new file mode 100644 index 000000000000..e711d7477c88 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the modify_column_families call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families. +# +def modify_column_families + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new + + # Call the modify_column_families method. + result = client.modify_column_families request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb new file mode 100644 index 000000000000..3c28d6009330 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the restore_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table. +# +def restore_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new + + # Call the restore_table method. + result = client.restore_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb new file mode 100644 index 000000000000..ff5fff58358d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the set_iam_policy call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb new file mode 100644 index 000000000000..4d171700843e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the snapshot_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table. +# +def snapshot_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new + + # Call the snapshot_table method. + result = client.snapshot_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb new file mode 100644 index 000000000000..abe2e3451d02 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the test_iam_permissions call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb new file mode 100644 index 000000000000..00c9558cd83c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the undelete_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table. +# +def undelete_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new + + # Call the undelete_table method. + result = client.undelete_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb new file mode 100644 index 000000000000..383be6ce0938 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view. +# +def update_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new + + # Call the update_authorized_view method. + result = client.update_authorized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb new file mode 100644 index 000000000000..32aa9d456b3a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup. +# +def update_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new + + # Call the update_backup method. + result = client.update_backup request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb new file mode 100644 index 000000000000..c33e873f5e7d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle. +# +def update_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new + + # Call the update_schema_bundle method. + result = client.update_schema_bundle request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb new file mode 100644 index 000000000000..d49e5c04deca --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table. +# +def update_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new + + # Call the update_table method. + result = client.update_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json new file mode 100644 index 000000000000..307c646525b1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json @@ -0,0 +1,2655 @@ +{ + "client_library": { + "name": "google-cloud-bigtable-admin-v2", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.bigtable.admin.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", + "title": "Snippet for the create_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance.", + "file": "bigtable_instance_admin/create_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", + "title": "Snippet for the get_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance.", + "file": "bigtable_instance_admin/get_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", + "title": "Snippet for the list_instances call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances.", + "file": "bigtable_instance_admin/list_instances.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_instances", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListInstances", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", + "title": "Snippet for the update_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance.", + "file": "bigtable_instance_admin/update_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", + "title": "Snippet for the partial_update_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance.", + "file": "bigtable_instance_admin/partial_update_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "partial_update_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "PartialUpdateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", + "title": "Snippet for the delete_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance.", + "file": "bigtable_instance_admin/delete_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", + "title": "Snippet for the create_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster.", + "file": "bigtable_instance_admin/create_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", + "title": "Snippet for the get_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster.", + "file": "bigtable_instance_admin/get_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", + "title": "Snippet for the list_clusters call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters.", + "file": "bigtable_instance_admin/list_clusters.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_clusters", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListClusters", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", + "title": "Snippet for the update_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster.", + "file": "bigtable_instance_admin/update_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", + "title": "Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster.", + "file": "bigtable_instance_admin/partial_update_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "partial_update_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "PartialUpdateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", + "title": "Snippet for the delete_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster.", + "file": "bigtable_instance_admin/delete_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", + "title": "Snippet for the create_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile.", + "file": "bigtable_instance_admin/create_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", + "title": "Snippet for the get_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile.", + "file": "bigtable_instance_admin/get_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", + "title": "Snippet for the list_app_profiles call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles.", + "file": "bigtable_instance_admin/list_app_profiles.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_app_profiles", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListAppProfiles", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", + "title": "Snippet for the update_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile.", + "file": "bigtable_instance_admin/update_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", + "title": "Snippet for the delete_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile.", + "file": "bigtable_instance_admin/delete_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy.", + "file": "bigtable_instance_admin/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy.", + "file": "bigtable_instance_admin/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions.", + "file": "bigtable_instance_admin/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", + "title": "Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets.", + "file": "bigtable_instance_admin/list_hot_tablets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_hot_tablets", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListHotTablets", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync", + "title": "Snippet for the create_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view.", + "file": "bigtable_instance_admin/create_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync", + "title": "Snippet for the get_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view.", + "file": "bigtable_instance_admin/get_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::LogicalView", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync", + "title": "Snippet for the list_logical_views call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views.", + "file": "bigtable_instance_admin/list_logical_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_logical_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListLogicalViews", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync", + "title": "Snippet for the update_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view.", + "file": "bigtable_instance_admin/update_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync", + "title": "Snippet for the delete_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view.", + "file": "bigtable_instance_admin/delete_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync", + "title": "Snippet for the create_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view.", + "file": "bigtable_instance_admin/create_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync", + "title": "Snippet for the get_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view.", + "file": "bigtable_instance_admin/get_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::MaterializedView", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync", + "title": "Snippet for the list_materialized_views call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views.", + "file": "bigtable_instance_admin/list_materialized_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_materialized_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListMaterializedViews", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync", + "title": "Snippet for the update_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view.", + "file": "bigtable_instance_admin/update_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync", + "title": "Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view.", + "file": "bigtable_instance_admin/delete_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", + "title": "Snippet for the create_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table.", + "file": "bigtable_table_admin/create_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", + "title": "Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot.", + "file": "bigtable_table_admin/create_table_from_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_table_from_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateTableFromSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", + "title": "Snippet for the list_tables call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables.", + "file": "bigtable_table_admin/list_tables.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_tables", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListTables", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", + "title": "Snippet for the get_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table.", + "file": "bigtable_table_admin/get_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", + "title": "Snippet for the update_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table.", + "file": "bigtable_table_admin/update_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", + "title": "Snippet for the delete_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table.", + "file": "bigtable_table_admin/delete_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", + "title": "Snippet for the undelete_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table.", + "file": "bigtable_table_admin/undelete_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "undelete_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UndeleteTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", + "title": "Snippet for the create_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view.", + "file": "bigtable_table_admin/create_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", + "title": "Snippet for the list_authorized_views call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views.", + "file": "bigtable_table_admin/list_authorized_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_authorized_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListAuthorizedViews", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", + "title": "Snippet for the get_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view.", + "file": "bigtable_table_admin/get_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AuthorizedView", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", + "title": "Snippet for the update_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view.", + "file": "bigtable_table_admin/update_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", + "title": "Snippet for the delete_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view.", + "file": "bigtable_table_admin/delete_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", + "title": "Snippet for the modify_column_families call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families.", + "file": "bigtable_table_admin/modify_column_families.rb", + "language": "RUBY", + "client_method": { + "short_name": "modify_column_families", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ModifyColumnFamilies", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", + "title": "Snippet for the drop_row_range call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range.", + "file": "bigtable_table_admin/drop_row_range.rb", + "language": "RUBY", + "client_method": { + "short_name": "drop_row_range", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DropRowRange", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", + "title": "Snippet for the generate_consistency_token call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token.", + "file": "bigtable_table_admin/generate_consistency_token.rb", + "language": "RUBY", + "client_method": { + "short_name": "generate_consistency_token", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GenerateConsistencyToken", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", + "title": "Snippet for the check_consistency call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency.", + "file": "bigtable_table_admin/check_consistency.rb", + "language": "RUBY", + "client_method": { + "short_name": "check_consistency", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CheckConsistency", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", + "title": "Snippet for the snapshot_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table.", + "file": "bigtable_table_admin/snapshot_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "snapshot_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "SnapshotTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", + "title": "Snippet for the get_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot.", + "file": "bigtable_table_admin/get_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Snapshot", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", + "title": "Snippet for the list_snapshots call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots.", + "file": "bigtable_table_admin/list_snapshots.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_snapshots", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListSnapshots", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", + "title": "Snippet for the delete_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot.", + "file": "bigtable_table_admin/delete_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", + "title": "Snippet for the create_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup.", + "file": "bigtable_table_admin/create_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", + "title": "Snippet for the get_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup.", + "file": "bigtable_table_admin/get_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", + "title": "Snippet for the update_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup.", + "file": "bigtable_table_admin/update_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", + "title": "Snippet for the delete_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup.", + "file": "bigtable_table_admin/delete_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", + "title": "Snippet for the list_backups call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups.", + "file": "bigtable_table_admin/list_backups.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_backups", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListBackups", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", + "title": "Snippet for the restore_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table.", + "file": "bigtable_table_admin/restore_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "restore_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "RestoreTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", + "title": "Snippet for the copy_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup.", + "file": "bigtable_table_admin/copy_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "copy_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CopyBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy.", + "file": "bigtable_table_admin/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy.", + "file": "bigtable_table_admin/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions.", + "file": "bigtable_table_admin/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync", + "title": "Snippet for the create_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle.", + "file": "bigtable_table_admin/create_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync", + "title": "Snippet for the update_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle.", + "file": "bigtable_table_admin/update_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync", + "title": "Snippet for the get_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle.", + "file": "bigtable_table_admin/get_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::SchemaBundle", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync", + "title": "Snippet for the list_schema_bundles call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles.", + "file": "bigtable_table_admin/list_schema_bundles.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_schema_bundles", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListSchemaBundles", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync", + "title": "Snippet for the delete_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle.", + "file": "bigtable_table_admin/delete_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb new file mode 100644 index 000000000000..d7820c4ab5a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" +require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb new file mode 100644 index 000000000000..2454f9a7005c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb @@ -0,0 +1,139 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_app_profile_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.app_profile_path project: "value0", instance: "value1", app_profile: "value2" + assert_equal "projects/value0/instances/value1/appProfiles/value2", path + end + end + + def test_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" + assert_equal "projects/value0/instances/value1/clusters/value2", path + end + end + + def test_crypto_key_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path + end + end + + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", instance: "value1" + assert_equal "projects/value0/instances/value1", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_logical_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.logical_view_path project: "value0", instance: "value1", logical_view: "value2" + assert_equal "projects/value0/instances/value1/logicalViews/value2", path + end + end + + def test_materialized_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.materialized_view_path project: "value0", instance: "value1", materialized_view: "value2" + assert_equal "projects/value0/instances/value1/materializedViews/value2", path + end + end + + def test_project_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.project_path project: "value0" + assert_equal "projects/value0", path + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb new file mode 100644 index 000000000000..9ff63d5bec0c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb @@ -0,0 +1,2093 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_instance + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + instance_id = "hello world" + instance = {} + clusters = {} + + create_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["instance_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] + assert_equal({}, request["clusters"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_instance parent: parent, instance_id: instance_id, instance: instance, clusters: clusters do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_instance ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_instance(::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_instance_client_stub.call_rpc_count + end + end + + def test_get_instance + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_instance({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_instance name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_instance ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_instance({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_instance(::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_instance_client_stub.call_rpc_count + end + end + + def test_list_instances + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_token = "hello world" + + list_instances_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_instances, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_instances_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_instances({ parent: parent, page_token: page_token }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_instances parent: parent, page_token: page_token do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_instances ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_instances({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_instances(::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_instances_client_stub.call_rpc_count + end + end + + def test_update_instance + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + display_name = "hello world" + state = :STATE_NOT_KNOWN + type = :TYPE_UNSPECIFIED + labels = {} + create_time = {} + satisfies_pzs = true + satisfies_pzi = true + tags = {} + + update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Instance, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["display_name"] + assert_equal :STATE_NOT_KNOWN, request["state"] + assert_equal :TYPE_UNSPECIFIED, request["type"] + assert_equal({}, request["labels"].to_h) + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] + assert_equal true, request["satisfies_pzs"] + assert request.has_satisfies_pzs? + assert_equal true, request["satisfies_pzi"] + assert request.has_satisfies_pzi? + assert_equal({}, request["tags"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_instance name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_instance_client_stub.call_rpc_count + end + end + + def test_partial_update_instance + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + instance = {} + update_mask = {} + + partial_update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :partial_update_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, partial_update_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.partial_update_instance({ instance: instance, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.partial_update_instance instance: instance, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.partial_update_instance ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.partial_update_instance({ instance: instance, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.partial_update_instance(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, partial_update_instance_client_stub.call_rpc_count + end + end + + def test_delete_instance + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_instance({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_instance name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_instance ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_instance({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_instance(::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_instance_client_stub.call_rpc_count + end + end + + def test_create_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + cluster_id = "hello world" + cluster = {} + + create_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["cluster_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_cluster parent: parent, cluster_id: cluster_id, cluster: cluster do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_cluster ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_cluster(::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_cluster_client_stub.call_rpc_count + end + end + + def test_get_cluster + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Cluster.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_cluster ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_cluster(::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_cluster_client_stub.call_rpc_count + end + end + + def test_list_clusters + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_token = "hello world" + + list_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_clusters, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_clusters_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_clusters({ parent: parent, page_token: page_token }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_clusters parent: parent, page_token: page_token do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_clusters ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_clusters({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_clusters(::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_clusters_client_stub.call_rpc_count + end + end + + def test_update_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + location = "hello world" + state = :STATE_NOT_KNOWN + serve_nodes = 42 + node_scaling_factor = :NODE_SCALING_FACTOR_UNSPECIFIED + cluster_config = {} + default_storage_type = :STORAGE_TYPE_UNSPECIFIED + encryption_config = {} + + update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Cluster, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["location"] + assert_equal :STATE_NOT_KNOWN, request["state"] + assert_equal 42, request["serve_nodes"] + assert_equal :NODE_SCALING_FACTOR_UNSPECIFIED, request["node_scaling_factor"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig), request["cluster_config"] + assert_equal :cluster_config, request.config + assert_equal :STORAGE_TYPE_UNSPECIFIED, request["default_storage_type"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig), request["encryption_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_cluster name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_cluster ::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_cluster(::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_cluster_client_stub.call_rpc_count + end + end + + def test_partial_update_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + cluster = {} + update_mask = {} + + partial_update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :partial_update_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, partial_update_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.partial_update_cluster cluster: cluster, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.partial_update_cluster ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.partial_update_cluster(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, partial_update_cluster_client_stub.call_rpc_count + end + end + + def test_delete_cluster + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_cluster ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_cluster(::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_cluster_client_stub.call_rpc_count + end + end + + def test_create_app_profile + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + app_profile_id = "hello world" + app_profile = {} + ignore_warnings = true + + create_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["app_profile_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_app_profile parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_app_profile ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_app_profile(::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_app_profile_client_stub.call_rpc_count + end + end + + def test_get_app_profile + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_app_profile({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_app_profile name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_app_profile ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_app_profile({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_app_profile(::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_app_profile_client_stub.call_rpc_count + end + end + + def test_list_app_profiles + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_app_profiles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_app_profiles, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_app_profiles_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_app_profiles parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_app_profiles ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_app_profiles(::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_app_profiles_client_stub.call_rpc_count + end + end + + def test_update_app_profile + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + app_profile = {} + update_mask = {} + ignore_warnings = true + + update_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_app_profile app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_app_profile ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_app_profile(::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_app_profile_client_stub.call_rpc_count + end + end + + def test_delete_app_profile + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + ignore_warnings = true + + delete_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_app_profile name: name, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_app_profile ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_app_profile(::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_app_profile_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_list_hot_tablets + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + start_time = {} + end_time = {} + page_size = 42 + page_token = "hello world" + + list_hot_tablets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_hot_tablets, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_hot_tablets_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_hot_tablets parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_hot_tablets ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_hot_tablets(::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_hot_tablets_client_stub.call_rpc_count + end + end + + def test_create_logical_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + logical_view_id = "hello world" + logical_view = {} + + create_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["logical_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_logical_view parent: parent, logical_view_id: logical_view_id, logical_view: logical_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_logical_view ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_logical_view(::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_logical_view_client_stub.call_rpc_count + end + end + + def test_get_logical_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::LogicalView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_logical_view({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_logical_view name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_logical_view ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_logical_view({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_logical_view(::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_logical_view_client_stub.call_rpc_count + end + end + + def test_list_logical_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_logical_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_logical_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_logical_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_logical_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_logical_views ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_logical_views(::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_logical_views_client_stub.call_rpc_count + end + end + + def test_update_logical_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + logical_view = {} + update_mask = {} + + update_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_logical_view logical_view: logical_view, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_logical_view ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_logical_view(::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_logical_view_client_stub.call_rpc_count + end + end + + def test_delete_logical_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_logical_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_logical_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_logical_view ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_logical_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_logical_view(::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_logical_view_client_stub.call_rpc_count + end + end + + def test_create_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + materialized_view_id = "hello world" + materialized_view = {} + + create_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["materialized_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_materialized_view parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_materialized_view ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_materialized_view(::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_materialized_view_client_stub.call_rpc_count + end + end + + def test_get_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::MaterializedView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_materialized_view({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_materialized_view name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_materialized_view ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_materialized_view({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_materialized_view(::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_materialized_view_client_stub.call_rpc_count + end + end + + def test_list_materialized_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_materialized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_materialized_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_materialized_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_materialized_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_materialized_views ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_materialized_views(::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_materialized_views_client_stub.call_rpc_count + end + end + + def test_update_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + materialized_view = {} + update_mask = {} + + update_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_materialized_view materialized_view: materialized_view, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_materialized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_materialized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_materialized_view_client_stub.call_rpc_count + end + end + + def test_delete_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_materialized_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_materialized_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_materialized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_materialized_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_materialized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_materialized_view_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb new file mode 100644 index 000000000000..b4858530f9ca --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_table_admin_pb" +require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb new file mode 100644 index 000000000000..f660e3430c6e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb @@ -0,0 +1,151 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_authorized_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.authorized_view_path project: "value0", instance: "value1", table: "value2", authorized_view: "value3" + assert_equal "projects/value0/instances/value1/tables/value2/authorizedViews/value3", path + end + end + + def test_backup_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.backup_path project: "value0", instance: "value1", cluster: "value2", backup: "value3" + assert_equal "projects/value0/instances/value1/clusters/value2/backups/value3", path + end + end + + def test_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" + assert_equal "projects/value0/instances/value1/clusters/value2", path + end + end + + def test_crypto_key_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path + end + end + + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", instance: "value1" + assert_equal "projects/value0/instances/value1", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_schema_bundle_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.schema_bundle_path project: "value0", instance: "value1", table: "value2", schema_bundle: "value3" + assert_equal "projects/value0/instances/value1/tables/value2/schemaBundles/value3", path + end + end + + def test_snapshot_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.snapshot_path project: "value0", instance: "value1", cluster: "value2", snapshot: "value3" + assert_equal "projects/value0/instances/value1/clusters/value2/snapshots/value3", path + end + end + + def test_table_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.table_path project: "value0", instance: "value1", table: "value2" + assert_equal "projects/value0/instances/value1/tables/value2", path + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb new file mode 100644 index 000000000000..44ea7cd17fc5 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb @@ -0,0 +1,2339 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_table_admin_pb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_table + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + table = {} + initial_splits = [{}] + + create_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, request["initial_splits"].first + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_table parent: parent, table_id: table_id, table: table, initial_splits: initial_splits do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_table ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_table(::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_table_client_stub.call_rpc_count + end + end + + def test_create_table_from_snapshot + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + source_snapshot = "hello world" + + create_table_from_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_table_from_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal "hello world", request["source_snapshot"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_table_from_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_table_from_snapshot parent: parent, table_id: table_id, source_snapshot: source_snapshot do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_table_from_snapshot ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_table_from_snapshot(::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_table_from_snapshot_client_stub.call_rpc_count + end + end + + def test_list_tables + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + view = :VIEW_UNSPECIFIED + page_size = 42 + page_token = "hello world" + + list_tables_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_tables, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, request + assert_equal "hello world", request["parent"] + assert_equal :VIEW_UNSPECIFIED, request["view"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_tables_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_tables parent: parent, view: view, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_tables ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_tables(::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_tables_client_stub.call_rpc_count + end + end + + def test_get_table + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + view = :VIEW_UNSPECIFIED + + get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, request + assert_equal "hello world", request["name"] + assert_equal :VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_table({ name: name, view: view }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_table name: name, view: view do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_table ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_table({ name: name, view: view }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_table(::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_table_client_stub.call_rpc_count + end + end + + def test_update_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + table = {} + update_mask = {} + ignore_warnings = true + + update_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_table table: table, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_table ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_table(::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_table_client_stub.call_rpc_count + end + end + + def test_delete_table + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_table({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_table name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_table ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_table({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_table(::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_table_client_stub.call_rpc_count + end + end + + def test_undelete_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + undelete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :undelete_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, undelete_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.undelete_table({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.undelete_table name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.undelete_table ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.undelete_table({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.undelete_table(::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, undelete_table_client_stub.call_rpc_count + end + end + + def test_create_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + authorized_view_id = "hello world" + authorized_view = {} + + create_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["authorized_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_authorized_view parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_authorized_view ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_authorized_view(::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_authorized_view_client_stub.call_rpc_count + end + end + + def test_list_authorized_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + view = :RESPONSE_VIEW_UNSPECIFIED + + list_authorized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_authorized_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_authorized_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_authorized_views parent: parent, page_size: page_size, page_token: page_token, view: view do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_authorized_views ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_authorized_views(::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_authorized_views_client_stub.call_rpc_count + end + end + + def test_get_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + view = :RESPONSE_VIEW_UNSPECIFIED + + get_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_authorized_view({ name: name, view: view }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_authorized_view name: name, view: view do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_authorized_view ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_authorized_view({ name: name, view: view }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_authorized_view(::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_authorized_view_client_stub.call_rpc_count + end + end + + def test_update_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + authorized_view = {} + update_mask = {} + ignore_warnings = true + + update_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_authorized_view authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_authorized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_authorized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_authorized_view_client_stub.call_rpc_count + end + end + + def test_delete_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_authorized_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_authorized_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_authorized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_authorized_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_authorized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_authorized_view_client_stub.call_rpc_count + end + end + + def test_modify_column_families + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + modifications = [{}] + ignore_warnings = true + + modify_column_families_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :modify_column_families, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, request + assert_equal "hello world", request["name"] + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, request["modifications"].first + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, modify_column_families_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.modify_column_families name: name, modifications: modifications, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.modify_column_families ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.modify_column_families(::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, modify_column_families_client_stub.call_rpc_count + end + end + + def test_drop_row_range + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + row_key_prefix = "hello world" + + drop_row_range_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :drop_row_range, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["row_key_prefix"] + assert_equal :row_key_prefix, request.target + refute_nil options + end + + Gapic::ServiceStub.stub :new, drop_row_range_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.drop_row_range name: name, row_key_prefix: row_key_prefix do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.drop_row_range ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.drop_row_range(::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, drop_row_range_client_stub.call_rpc_count + end + end + + def test_generate_consistency_token + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + generate_consistency_token_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :generate_consistency_token, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, generate_consistency_token_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.generate_consistency_token({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.generate_consistency_token name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.generate_consistency_token ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.generate_consistency_token({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.generate_consistency_token(::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, generate_consistency_token_client_stub.call_rpc_count + end + end + + def test_check_consistency + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + consistency_token = "hello world" + standard_read_remote_writes = {} + + check_consistency_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :check_consistency, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["consistency_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites), request["standard_read_remote_writes"] + assert_equal :standard_read_remote_writes, request.mode + refute_nil options + end + + Gapic::ServiceStub.stub :new, check_consistency_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.check_consistency name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.check_consistency ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.check_consistency(::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, check_consistency_client_stub.call_rpc_count + end + end + + def test_snapshot_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + cluster = "hello world" + snapshot_id = "hello world" + ttl = {} + description = "hello world" + + snapshot_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :snapshot_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["cluster"] + assert_equal "hello world", request["snapshot_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] + assert_equal "hello world", request["description"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, snapshot_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.snapshot_table name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.snapshot_table ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.snapshot_table(::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, snapshot_table_client_stub.call_rpc_count + end + end + + def test_get_snapshot + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Snapshot.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_snapshot({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_snapshot name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_snapshot ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_snapshot({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_snapshot(::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_snapshot_client_stub.call_rpc_count + end + end + + def test_list_snapshots + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_snapshots, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_snapshots_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_snapshots parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_snapshots ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_snapshots(::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_snapshots_client_stub.call_rpc_count + end + end + + def test_delete_snapshot + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_snapshot({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_snapshot name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_snapshot ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_snapshot({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_snapshot(::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_snapshot_client_stub.call_rpc_count + end + end + + def test_create_backup + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + backup_id = "hello world" + backup = {} + + create_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["backup_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_backup parent: parent, backup_id: backup_id, backup: backup do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_backup ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_backup(::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_backup_client_stub.call_rpc_count + end + end + + def test_get_backup + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_backup({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_backup name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_backup ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_backup({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_backup(::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_backup_client_stub.call_rpc_count + end + end + + def test_update_backup + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + backup = {} + update_mask = {} + + update_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_backup({ backup: backup, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_backup backup: backup, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_backup ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_backup({ backup: backup, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_backup(::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_backup_client_stub.call_rpc_count + end + end + + def test_delete_backup + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_backup({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_backup name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_backup ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_backup({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_backup(::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_backup_client_stub.call_rpc_count + end + end + + def test_list_backups + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + list_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_backups, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_backups_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_backups parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_backups ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_backups(::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_backups_client_stub.call_rpc_count + end + end + + def test_restore_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + backup = "hello world" + + restore_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :restore_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal "hello world", request["backup"] + assert_equal :backup, request.source + refute_nil options + end + + Gapic::ServiceStub.stub :new, restore_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.restore_table({ parent: parent, table_id: table_id, backup: backup }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.restore_table parent: parent, table_id: table_id, backup: backup do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.restore_table ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.restore_table({ parent: parent, table_id: table_id, backup: backup }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.restore_table(::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, restore_table_client_stub.call_rpc_count + end + end + + def test_copy_backup + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + backup_id = "hello world" + source_backup = "hello world" + expire_time = {} + + copy_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :copy_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["backup_id"] + assert_equal "hello world", request["source_backup"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["expire_time"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, copy_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.copy_backup parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.copy_backup ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.copy_backup(::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, copy_backup_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_create_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + schema_bundle_id = "hello world" + schema_bundle = {} + + create_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["schema_bundle_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_schema_bundle parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_schema_bundle_client_stub.call_rpc_count + end + end + + def test_update_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + schema_bundle = {} + update_mask = {} + ignore_warnings = true + + update_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_schema_bundle schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_schema_bundle_client_stub.call_rpc_count + end + end + + def test_get_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_schema_bundle({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_schema_bundle name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_schema_bundle({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_schema_bundle_client_stub.call_rpc_count + end + end + + def test_list_schema_bundles + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_schema_bundles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_schema_bundles, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_schema_bundles_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_schema_bundles parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_schema_bundles ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_schema_bundles(::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_schema_bundles_client_stub.call_rpc_count + end + end + + def test_delete_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_schema_bundle({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_schema_bundle name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_schema_bundle({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_schema_bundle_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From e00449786d160bfdaa32ae18f30f22494775af2b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 1 Apr 2026 08:04:48 +0000 Subject: [PATCH 6/8] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../proto_docs/google/api/client.rb | 4 + .../google-cloud-bigtable-admin-v2/.gitignore | 22 - .../.repo-metadata.json | 18 - .../.rubocop.yml | 33 - .../google-cloud-bigtable-admin-v2/.toys.rb | 28 - .../google-cloud-bigtable-admin-v2/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../CHANGELOG.md | 2 - .../google-cloud-bigtable-admin-v2/Gemfile | 14 - .../google-cloud-bigtable-admin-v2/LICENSE.md | 201 - .../google-cloud-bigtable-admin-v2/README.md | 154 - .../google-cloud-bigtable-admin-v2/Rakefile | 169 - .../gapic_metadata.json | 357 -- .../google-cloud-bigtable-admin-v2.gemspec | 29 - .../lib/google-cloud-bigtable-admin-v2.rb | 21 - .../admin/v2/bigtable_instance_admin_pb.rb | 78 - .../v2/bigtable_instance_admin_services_pb.rb | 142 - .../admin/v2/bigtable_table_admin_pb.rb | 91 - .../v2/bigtable_table_admin_services_pb.rb | 182 - .../lib/google/bigtable/admin/v2/common_pb.rb | 26 - .../google/bigtable/admin/v2/instance_pb.rb | 49 - .../lib/google/bigtable/admin/v2/table_pb.rb | 58 - .../lib/google/bigtable/admin/v2/types_pb.rb | 57 - .../lib/google/cloud/bigtable/admin/v2.rb | 43 - .../admin/v2/bigtable_instance_admin.rb | 54 - .../v2/bigtable_instance_admin/client.rb | 3710 -------------- .../v2/bigtable_instance_admin/credentials.rb | 59 - .../v2/bigtable_instance_admin/operations.rb | 843 ---- .../admin/v2/bigtable_instance_admin/paths.rb | 180 - .../bigtable/admin/v2/bigtable_table_admin.rb | 56 - .../admin/v2/bigtable_table_admin/client.rb | 4266 ----------------- .../v2/bigtable_table_admin/credentials.rb | 58 - .../v2/bigtable_table_admin/operations.rb | 843 ---- .../admin/v2/bigtable_table_admin/paths.rb | 214 - .../google/cloud/bigtable/admin/v2/version.rb | 30 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 593 --- .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../admin/v2/bigtable_instance_admin.rb | 767 --- .../bigtable/admin/v2/bigtable_table_admin.rb | 1167 ----- .../google/bigtable/admin/v2/common.rb | 58 - .../google/bigtable/admin/v2/instance.rb | 519 -- .../google/bigtable/admin/v2/table.rb | 741 --- .../google/bigtable/admin/v2/types.rb | 575 --- .../proto_docs/google/iam/v1/iam_policy.rb | 87 - .../proto_docs/google/iam/v1/options.rb | 50 - .../proto_docs/google/iam/v1/policy.rb | 426 -- .../google/longrunning/operations.rb | 191 - .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/rpc/status.rb | 48 - .../proto_docs/google/type/expr.rb | 75 - .../snippets/Gemfile | 32 - .../create_app_profile.rb | 47 - .../bigtable_instance_admin/create_cluster.rb | 54 - .../create_instance.rb | 54 - .../create_logical_view.rb | 54 - .../create_materialized_view.rb | 54 - .../delete_app_profile.rb | 47 - .../bigtable_instance_admin/delete_cluster.rb | 47 - .../delete_instance.rb | 47 - .../delete_logical_view.rb | 47 - .../delete_materialized_view.rb | 47 - .../get_app_profile.rb | 47 - .../bigtable_instance_admin/get_cluster.rb | 47 - .../bigtable_instance_admin/get_iam_policy.rb | 47 - .../bigtable_instance_admin/get_instance.rb | 47 - .../get_logical_view.rb | 47 - .../get_materialized_view.rb | 47 - .../list_app_profiles.rb | 51 - .../bigtable_instance_admin/list_clusters.rb | 47 - .../list_hot_tablets.rb | 51 - .../bigtable_instance_admin/list_instances.rb | 47 - .../list_logical_views.rb | 51 - .../list_materialized_views.rb | 51 - .../partial_update_cluster.rb | 54 - .../partial_update_instance.rb | 54 - .../bigtable_instance_admin/set_iam_policy.rb | 47 - .../test_iam_permissions.rb | 47 - .../update_app_profile.rb | 54 - .../bigtable_instance_admin/update_cluster.rb | 54 - .../update_instance.rb | 47 - .../update_logical_view.rb | 54 - .../update_materialized_view.rb | 54 - .../bigtable_table_admin/check_consistency.rb | 47 - .../bigtable_table_admin/copy_backup.rb | 54 - .../create_authorized_view.rb | 54 - .../bigtable_table_admin/create_backup.rb | 54 - .../create_schema_bundle.rb | 54 - .../bigtable_table_admin/create_table.rb | 47 - .../create_table_from_snapshot.rb | 54 - .../delete_authorized_view.rb | 47 - .../bigtable_table_admin/delete_backup.rb | 47 - .../delete_schema_bundle.rb | 47 - .../bigtable_table_admin/delete_snapshot.rb | 47 - .../bigtable_table_admin/delete_table.rb | 47 - .../bigtable_table_admin/drop_row_range.rb | 47 - .../generate_consistency_token.rb | 47 - .../get_authorized_view.rb | 47 - .../bigtable_table_admin/get_backup.rb | 47 - .../bigtable_table_admin/get_iam_policy.rb | 47 - .../bigtable_table_admin/get_schema_bundle.rb | 47 - .../bigtable_table_admin/get_snapshot.rb | 47 - .../bigtable_table_admin/get_table.rb | 47 - .../list_authorized_views.rb | 51 - .../bigtable_table_admin/list_backups.rb | 51 - .../list_schema_bundles.rb | 51 - .../bigtable_table_admin/list_snapshots.rb | 51 - .../bigtable_table_admin/list_tables.rb | 51 - .../modify_column_families.rb | 47 - .../bigtable_table_admin/restore_table.rb | 54 - .../bigtable_table_admin/set_iam_policy.rb | 47 - .../bigtable_table_admin/snapshot_table.rb | 54 - .../test_iam_permissions.rb | 47 - .../bigtable_table_admin/undelete_table.rb | 54 - .../update_authorized_view.rb | 54 - .../bigtable_table_admin/update_backup.rb | 47 - .../update_schema_bundle.rb | 54 - .../bigtable_table_admin/update_table.rb | 54 - ...pet_metadata_google.bigtable.admin.v2.json | 2655 ---------- ...bigtable_instance_admin_operations_test.rb | 400 -- .../v2/bigtable_instance_admin_paths_test.rb | 139 - .../admin/v2/bigtable_instance_admin_test.rb | 2093 -------- .../bigtable_table_admin_operations_test.rb | 400 -- .../v2/bigtable_table_admin_paths_test.rb | 151 - .../admin/v2/bigtable_table_admin_test.rb | 2339 --------- .../test/helper.rb | 26 - 132 files changed, 4 insertions(+), 30058 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/README.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/common_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb diff --git a/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb index 7796382e3a21..e62ceba4577a 100644 --- a/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb +++ b/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb @@ -31,6 +31,8 @@ module Api # @!attribute [rw] selective_gapic_generation # @return [::Google::Api::SelectiveGapicGeneration] # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. class CommonLanguageSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -441,6 +443,8 @@ class LongRunning # This message is used to configure the generation of a subset of the RPCs in # a service for client libraries. + # + # Note: This feature should not be used in most cases. # @!attribute [rw] methods # @return [::Array<::String>] # An allowlist of the fully qualified names of RPCs that should be included diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json deleted file mode 100644 index b1afcd60adc1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "api_id": "bigtableadmin.googleapis.com", - "api_shortname": "bigtableadmin", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest", - "distribution_name": "google-cloud-bigtable-admin-v2", - "is_cloud": true, - "language": "ruby", - "name": "bigtableadmin", - "name_pretty": "Cloud Bigtable Admin V2 API", - "product_documentation": "https://cloud.google.com/bigtable", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details.", - "ruby-cloud-env-prefix": "BIGTABLE", - "ruby-cloud-product-url": "https://cloud.google.com/bigtable", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml deleted file mode 100644 index 8b307e35af07..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-bigtable-admin-v2.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-bigtable-admin-v2.rb" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts deleted file mode 100644 index 73aed5753bd5..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Cloud Bigtable Admin V2 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md deleted file mode 100644 index 1bb27d1cc834..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-bigtable-admin-v2 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-bigtable-admin-v2 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/bigtable/admin/v2" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/bigtable/admin/v2" - -::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-bigtable-admin-v2 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/bigtable/admin/v2" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md deleted file mode 100644 index 7fe6da059f1e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Cloud Bigtable Admin V2 API - -Administer your Cloud Bigtable tables and instances. - -Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Cloud Bigtable Admin V2 API. Most users should consider using -the main client gem, -[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-bigtable-admin-v2 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/bigtable/admin/v2" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -request = ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new # (request fields as keyword arguments...) -response = client.create_instance request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/bigtable) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/bigtable/admin/v2" -require "logger" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-bigtable`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-bigtable-admin-v2`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-bigtable`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-bigtable-admin-v2`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile deleted file mode 100644 index 485278a34b9d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-bigtable-admin-v2 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["BIGTABLE_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["BIGTABLE_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["BIGTABLE_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or BIGTABLE_TEST_PROJECT=test123 BIGTABLE_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" - ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["BIGTABLE_PROJECT"] = project - ENV["BIGTABLE_TEST_PROJECT"] = project - ENV["BIGTABLE_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-bigtable-admin-v2 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-bigtable-admin-v2 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-bigtable-admin-v2" - header "google-cloud-bigtable-admin-v2 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-bigtable-admin-v2 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-bigtable-admin-v2 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-bigtable-admin-v2 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-bigtable-admin-v2 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json deleted file mode 100644 index 2370ce3ced54..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.bigtable.admin.v2", - "libraryPackage": "::Google::Cloud::Bigtable::Admin::V2", - "services": { - "BigtableInstanceAdmin": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client", - "rpcs": { - "CreateInstance": { - "methods": [ - "create_instance" - ] - }, - "GetInstance": { - "methods": [ - "get_instance" - ] - }, - "ListInstances": { - "methods": [ - "list_instances" - ] - }, - "UpdateInstance": { - "methods": [ - "update_instance" - ] - }, - "PartialUpdateInstance": { - "methods": [ - "partial_update_instance" - ] - }, - "DeleteInstance": { - "methods": [ - "delete_instance" - ] - }, - "CreateCluster": { - "methods": [ - "create_cluster" - ] - }, - "GetCluster": { - "methods": [ - "get_cluster" - ] - }, - "ListClusters": { - "methods": [ - "list_clusters" - ] - }, - "UpdateCluster": { - "methods": [ - "update_cluster" - ] - }, - "PartialUpdateCluster": { - "methods": [ - "partial_update_cluster" - ] - }, - "DeleteCluster": { - "methods": [ - "delete_cluster" - ] - }, - "CreateAppProfile": { - "methods": [ - "create_app_profile" - ] - }, - "GetAppProfile": { - "methods": [ - "get_app_profile" - ] - }, - "ListAppProfiles": { - "methods": [ - "list_app_profiles" - ] - }, - "UpdateAppProfile": { - "methods": [ - "update_app_profile" - ] - }, - "DeleteAppProfile": { - "methods": [ - "delete_app_profile" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - }, - "ListHotTablets": { - "methods": [ - "list_hot_tablets" - ] - }, - "CreateLogicalView": { - "methods": [ - "create_logical_view" - ] - }, - "GetLogicalView": { - "methods": [ - "get_logical_view" - ] - }, - "ListLogicalViews": { - "methods": [ - "list_logical_views" - ] - }, - "UpdateLogicalView": { - "methods": [ - "update_logical_view" - ] - }, - "DeleteLogicalView": { - "methods": [ - "delete_logical_view" - ] - }, - "CreateMaterializedView": { - "methods": [ - "create_materialized_view" - ] - }, - "GetMaterializedView": { - "methods": [ - "get_materialized_view" - ] - }, - "ListMaterializedViews": { - "methods": [ - "list_materialized_views" - ] - }, - "UpdateMaterializedView": { - "methods": [ - "update_materialized_view" - ] - }, - "DeleteMaterializedView": { - "methods": [ - "delete_materialized_view" - ] - } - } - } - } - }, - "BigtableTableAdmin": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client", - "rpcs": { - "CreateTable": { - "methods": [ - "create_table" - ] - }, - "CreateTableFromSnapshot": { - "methods": [ - "create_table_from_snapshot" - ] - }, - "ListTables": { - "methods": [ - "list_tables" - ] - }, - "GetTable": { - "methods": [ - "get_table" - ] - }, - "UpdateTable": { - "methods": [ - "update_table" - ] - }, - "DeleteTable": { - "methods": [ - "delete_table" - ] - }, - "UndeleteTable": { - "methods": [ - "undelete_table" - ] - }, - "CreateAuthorizedView": { - "methods": [ - "create_authorized_view" - ] - }, - "ListAuthorizedViews": { - "methods": [ - "list_authorized_views" - ] - }, - "GetAuthorizedView": { - "methods": [ - "get_authorized_view" - ] - }, - "UpdateAuthorizedView": { - "methods": [ - "update_authorized_view" - ] - }, - "DeleteAuthorizedView": { - "methods": [ - "delete_authorized_view" - ] - }, - "ModifyColumnFamilies": { - "methods": [ - "modify_column_families" - ] - }, - "DropRowRange": { - "methods": [ - "drop_row_range" - ] - }, - "GenerateConsistencyToken": { - "methods": [ - "generate_consistency_token" - ] - }, - "CheckConsistency": { - "methods": [ - "check_consistency" - ] - }, - "SnapshotTable": { - "methods": [ - "snapshot_table" - ] - }, - "GetSnapshot": { - "methods": [ - "get_snapshot" - ] - }, - "ListSnapshots": { - "methods": [ - "list_snapshots" - ] - }, - "DeleteSnapshot": { - "methods": [ - "delete_snapshot" - ] - }, - "CreateBackup": { - "methods": [ - "create_backup" - ] - }, - "GetBackup": { - "methods": [ - "get_backup" - ] - }, - "UpdateBackup": { - "methods": [ - "update_backup" - ] - }, - "DeleteBackup": { - "methods": [ - "delete_backup" - ] - }, - "ListBackups": { - "methods": [ - "list_backups" - ] - }, - "RestoreTable": { - "methods": [ - "restore_table" - ] - }, - "CopyBackup": { - "methods": [ - "copy_backup" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - }, - "CreateSchemaBundle": { - "methods": [ - "create_schema_bundle" - ] - }, - "UpdateSchemaBundle": { - "methods": [ - "update_schema_bundle" - ] - }, - "GetSchemaBundle": { - "methods": [ - "get_schema_bundle" - ] - }, - "ListSchemaBundles": { - "methods": [ - "list_schema_bundles" - ] - }, - "DeleteSchemaBundle": { - "methods": [ - "delete_schema_bundle" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec deleted file mode 100644 index d15e999177a9..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec +++ /dev/null @@ -1,29 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/bigtable/admin/v2/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-bigtable-admin-v2" - gem.version = Google::Cloud::Bigtable::Admin::V2::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details." - gem.summary = "Administer your Cloud Bigtable tables and instances." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "grpc-google-iam-v1", "~> 1.11" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb deleted file mode 100644 index 0c7aa4cc6208..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/bigtable/admin/v2" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb deleted file mode 100644 index ada921bfd341..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +++ /dev/null @@ -1,78 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/bigtable_instance_admin.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/instance_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"Q\n\x12GetInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"T\n\x15\x44\x65leteInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"\xa7\x01\n\x14\x43reateClusterRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\"O\n\x11GetClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"h\n\x13ListClustersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"R\n\x14\x44\x65leteClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfb\x04\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x06tables\x18\x04 \x03(\x0b\x32;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1a\xf9\x01\n\rTableProgress\x12\x1c\n\x14\x65stimated_size_bytes\x18\x02 \x01(\x03\x12\x1e\n\x16\x65stimated_copied_bytes\x18\x03 \x01(\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32\x43.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07\x43OPYING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1al\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x02\x38\x01\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd2\x01\n\x1cPartialUpdateClusterMetadata\x12\x30\n\x0crequest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x10original_request\x18\x03 \x01(\x0b\x32\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8c\x01\n\x1bPartialUpdateClusterRequest\x12\x37\n\x07\x63luster\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xce\x01\n\x17\x43reateAppProfileRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"U\n\x14GetAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\"~\n\x16ListAppProfilesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"v\n\x17\x44\x65leteAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\x12\x1c\n\x0fignore_warnings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\xda\x01\n\x15ListHotTabletsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"k\n\x16ListHotTabletsResponse\x12\x38\n\x0bhot_tablets\x18\x01 \x03(\x0b\x32#.google.bigtable.admin.v2.HotTablet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\x18\x43reateLogicalViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1c\n\x0flogical_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0clogical_view\x18\x03 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\"\xc7\x01\n\x19\x43reateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x15GetLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\"\x8c\x01\n\x17ListLogicalViewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"q\n\x18ListLogicalViewsResponse\x12<\n\rlogical_views\x18\x01 \x03(\x0b\x32%.google.bigtable.admin.v2.LogicalView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x92\x01\n\x18UpdateLogicalViewRequest\x12@\n\x0clogical_view\x18\x01 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xc7\x01\n\x19UpdateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"m\n\x18\x44\x65leteLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1d\x43reateMaterializedViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12!\n\x14materialized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11materialized_view\x18\x03 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\"\xd1\x01\n\x1e\x43reateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1aGetMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\n\x1cListMaterializedViewsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1dListMaterializedViewsResponse\x12\x46\n\x12materialized_views\x18\x01 \x03(\x0b\x32*.google.bigtable.admin.v2.MaterializedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa1\x01\n\x1dUpdateMaterializedViewRequest\x12J\n\x11materialized_view\x18\x01 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xd1\x01\n\x1eUpdateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1d\x44\x65leteMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xe6\x36\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16\x43reateInstanceMetadata\xda\x41$parent,instance_id,instance,clusters\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16UpdateInstanceMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\xda\x41\x19parent,cluster_id,cluster\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\x12\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\'\n\x07\x43luster\x12\x1cPartialUpdateClusterMetadata\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07\x63luster\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"h\xda\x41!parent,app_profile_id,app_profile\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\xda\x41\x17\x61pp_profile,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\xb4\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\xda\x41\x14name,ignore_warnings\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaa\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xde\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xb1\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xe5\x01\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xe8\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xfc\x01\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\xde\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xbf\x01\n\x0eListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a\x30.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\n\x11\x43reateLogicalView\x12\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41(\n\x0bLogicalView\x12\x19\x43reateLogicalViewMetadata\xda\x41#parent,logical_view,logical_view_id\x82\xd3\xe4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0clogical_view\x12\xa9\x01\n\x0eGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1a%.google.bigtable.admin.v2.LogicalView\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xbc\x01\n\x10ListLogicalViews\x12\x31.google.bigtable.admin.v2.ListLogicalViewsRequest\x1a\x32.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\n\x11UpdateLogicalView\x12\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41(\n\x0bLogicalView\x12\x19UpdateLogicalViewMetadata\xda\x41\x18logical_view,update_mask\x82\xd3\xe4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0clogical_view\x12\xa0\x01\n\x11\x44\x65leteLogicalView\x12\x32.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xa8\x02\n\x16\x43reateMaterializedView\x12\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41\x32\n\x10MaterializedView\x12\x1e\x43reateMaterializedViewMetadata\xda\x41-parent,materialized_view,materialized_view_id\x82\xd3\xe4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xbd\x01\n\x13GetMaterializedView\x12\x34.google.bigtable.admin.v2.GetMaterializedViewRequest\x1a*.google.bigtable.admin.v2.MaterializedView\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xd0\x01\n\x15ListMaterializedViews\x12\x36.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1a\x37.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/instances/*}/materializedViews\x12\xaa\x02\n\x16UpdateMaterializedView\x12\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x32\n\x10MaterializedView\x12\x1eUpdateMaterializedViewMetadata\xda\x41\x1dmaterialized_view,update_mask\x82\xd3\xe4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xaf\x01\n\x16\x44\x65leteMaterializedView\x12\x37.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xdd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass - GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass - ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass - ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass - PartialUpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass - DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass - CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass - GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass - ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass - ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass - DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass - CreateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass - UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass - CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass - CreateClusterMetadata::TableProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress").msgclass - CreateClusterMetadata::TableProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State").enummodule - UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass - PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass - PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass - CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass - GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass - ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass - ListAppProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass - UpdateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass - DeleteAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass - UpdateAppProfileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass - ListHotTabletsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsRequest").msgclass - ListHotTabletsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsResponse").msgclass - CreateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewRequest").msgclass - CreateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewMetadata").msgclass - GetLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetLogicalViewRequest").msgclass - ListLogicalViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsRequest").msgclass - ListLogicalViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsResponse").msgclass - UpdateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewRequest").msgclass - UpdateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewMetadata").msgclass - DeleteLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteLogicalViewRequest").msgclass - CreateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewRequest").msgclass - CreateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewMetadata").msgclass - GetMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetMaterializedViewRequest").msgclass - ListMaterializedViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsRequest").msgclass - ListMaterializedViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsResponse").msgclass - UpdateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewRequest").msgclass - UpdateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewMetadata").msgclass - DeleteMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteMaterializedViewRequest").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb deleted file mode 100644 index 5719dfcb7960..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +++ /dev/null @@ -1,142 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2' -# Original file comments: -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/bigtable/admin/v2/bigtable_instance_admin_pb' - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin' - - # Create an instance within a project. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation - # Gets information about an instance. - rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance - # Lists information about instances in a project. - rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse - # Updates an instance within a project. This method updates only the display - # name and type for an Instance. To update other Instance properties, such as - # labels, use PartialUpdateInstance. - rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance - # Partially updates an instance within a project. This method can modify all - # fields of an Instance and is the preferred way to update an Instance. - rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation - # Delete an instance from a project. - rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty - # Creates a cluster within an instance. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation - # Gets information about a cluster. - rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster - # Lists information about clusters in an instance. - rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse - # Updates a cluster within an instance. - # - # Note that UpdateCluster does not support updating - # cluster_config.cluster_autoscaling_config. In order to update it, you - # must use PartialUpdateCluster. - rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation - # Partially updates a cluster within a project. This method is the preferred - # way to update a Cluster. - # - # To enable and update autoscaling, set - # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - # are ignored. Note that an update cannot simultaneously set serve_nodes to - # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - # also specify both in the update_mask. - # - # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - # and explicitly set a serve_node count via the update_mask. - rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation - # Deletes a cluster from an instance. - rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty - # Creates an app profile within an instance. - rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile - # Gets information about an app profile. - rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile - # Lists information about app profiles in an instance. - rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse - # Updates an app profile within an instance. - rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation - # Deletes an app profile from an instance. - rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty - # Gets the access control policy for an instance resource. Returns an empty - # policy if an instance exists but does not have a policy set. - rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy - # Sets the access control policy on an instance resource. Replaces any - # existing policy. - rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy - # Returns permissions that the caller has on the specified instance resource. - rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse - # Lists hot tablets in a cluster, within the time range provided. Hot - # tablets are ordered based on CPU usage. - rpc :ListHotTablets, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse - # Creates a logical view within an instance. - rpc :CreateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Google::Longrunning::Operation - # Gets information about a logical view. - rpc :GetLogicalView, ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Google::Cloud::Bigtable::Admin::V2::LogicalView - # Lists information about logical views in an instance. - rpc :ListLogicalViews, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse - # Updates a logical view within an instance. - rpc :UpdateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Google::Longrunning::Operation - # Deletes a logical view from an instance. - rpc :DeleteLogicalView, ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Google::Protobuf::Empty - # Creates a materialized view within an instance. - rpc :CreateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Google::Longrunning::Operation - # Gets information about a materialized view. - rpc :GetMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Google::Cloud::Bigtable::Admin::V2::MaterializedView - # Lists information about materialized views in an instance. - rpc :ListMaterializedViews, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse - # Updates a materialized view within an instance. - rpc :UpdateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Google::Longrunning::Operation - # Deletes a materialized view from an instance. - rpc :DeleteMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Google::Protobuf::Empty - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb deleted file mode 100644 index 52a9ea2d2e01..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +++ /dev/null @@ -1,91 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/bigtable_table_admin.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/common_pb' -require 'google/bigtable/admin/v2/table_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x13RestoreTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info\"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\n\x12\x43reateTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"\xbe\x01\n\x1e\x43reateTableFromSnapshotRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0fsource_snapshot\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\n\x13\x44ropRowRangeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"\xad\x01\n\x11ListTablesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\x9d\x01\n\x12UpdateTableRequest\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13UpdateTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n\x12\x44\x65leteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"P\n\x14UndeleteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"\x83\x01\n\x15UndeleteTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x03\n\x1bModifyColumnFamiliesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xdb\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x12\x34\n\x0bupdate_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x05\n\x03mod\"[\n\x1fGenerateConsistencyTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"\xb2\x02\n\x17\x43heckConsistencyRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1bstandard_read_remote_writes\x18\x03 \x01(\x0b\x32\x32.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\n\x1c\x64\x61ta_boost_read_local_writes\x18\x04 \x01(\x0b\x32\x32.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00\x42\x06\n\x04mode\"\x1a\n\x18StandardReadRemoteWrites\"\x1a\n\x18\x44\x61taBoostReadLocalWrites\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\xe6\x01\n\x14SnapshotTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12=\n\x07\x63luster\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"Q\n\x12GetSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"{\n\x14ListSnapshotsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15\x44\x65leteSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa2\x01\n\x13\x43reateBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"M\n\x10GetBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"P\n\x13\x44\x65leteBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"\x9b\x01\n\x12ListBackupsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe3\x01\n\x11\x43opyBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rsource_backup\x18\x03 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xcd\x01\n\x12\x43opyBackupMetadata\x12\x36\n\x04name\x18\x01 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12@\n\x12source_backup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfo\x12=\n\x08progress\x18\x03 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\xcb\x01\n\x1b\x43reateAuthorizedViewRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1f\n\x12\x61uthorized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0f\x61uthorized_view\x18\x03 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\"\xd2\x01\n\x1c\x43reateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x1aListAuthorizedViewsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x04view\x18\x04 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"z\n\x1bListAuthorizedViewsResponse\x12\x42\n\x10\x61uthorized_views\x18\x01 \x03(\x0b\x32(.google.bigtable.admin.v2.AuthorizedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x18GetAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"\xb9\x01\n\x1bUpdateAuthorizedViewRequest\x12\x46\n\x0f\x61uthorized_view\x18\x01 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x1cUpdateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x1b\x44\x65leteAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x19\x43reateSchemaBundleRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1d\n\x10schema_bundle_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rschema_bundle\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\"\x88\x01\n\x1a\x43reateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x01\n\x19UpdateSchemaBundleRequest\x12\x42\n\rschema_bundle\x18\x01 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x1aUpdateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x16GetSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\n\x18ListSchemaBundlesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x19ListSchemaBundlesResponse\x12>\n\x0eschema_bundles\x18\x01 \x03(\x0b\x32&.google.bigtable.admin.v2.SchemaBundle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x19\x44\x65leteSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\x92@\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\xda\x41\x15parent,table_id,table\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\xda\x41\x1fparent,table_id,source_snapshot\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xce\x01\n\x0bUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1c\n\x05Table\x12\x13UpdateTableMetadata\xda\x41\x11table,update_mask\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xca\x41\x1e\n\x05Table\x12\x15UndeleteTableMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xa1\x02\n\x14\x43reateAuthorizedView\x12\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41.\n\x0e\x41uthorizedView\x12\x1c\x43reateAuthorizedViewMetadata\xda\x41)parent,authorized_view,authorized_view_id\x82\xd3\xe4\x93\x02O\"\x12\x12*\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass - Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule - Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule - AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass - AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass - Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass - Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass - Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass - Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass - Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule - Cluster::NodeScalingFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.NodeScalingFactor").enummodule - AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass - AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass - AppProfile::MultiClusterRoutingUseAny::RowAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity").msgclass - AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass - AppProfile::StandardIsolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.StandardIsolation").msgclass - AppProfile::DataBoostIsolationReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly").msgclass - AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner").enummodule - AppProfile::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.Priority").enummodule - HotTablet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.HotTablet").msgclass - LogicalView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.LogicalView").msgclass - MaterializedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.MaterializedView").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb deleted file mode 100644 index 4b069137666b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/table.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/types_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/timestamp_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass - ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass - Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass - Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass - Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule - Table::AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.AutomatedBackupPolicy").msgclass - Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule - Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule - AuthorizedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView").msgclass - AuthorizedView::FamilySubsets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.FamilySubsets").msgclass - AuthorizedView::SubsetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.SubsetView").msgclass - AuthorizedView::ResponseView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.ResponseView").enummodule - ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass - GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass - GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass - GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass - EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass - EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule - Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass - Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule - Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass - Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule - Backup::BackupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.BackupType").enummodule - BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass - TieredStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageConfig").msgclass - TieredStorageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageRule").msgclass - ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ProtoSchema").msgclass - SchemaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SchemaBundle").msgclass - RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb deleted file mode 100644 index 7a9e1c6a0620..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/types.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc7\x19\n\x04Type\x12:\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\n\x0bstring_type\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StringH\x00\x12:\n\nint64_type\x18\x05 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float64H\x00\x12\x38\n\tbool_type\x18\x08 \x01(\x0b\x32#.google.bigtable.admin.v2.Type.BoolH\x00\x12\x42\n\x0etimestamp_type\x18\n \x01(\x0b\x32(.google.bigtable.admin.v2.Type.TimestampH\x00\x12\x38\n\tdate_type\x18\x0b \x01(\x0b\x32#.google.bigtable.admin.v2.Type.DateH\x00\x12\x42\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\n\x0bstruct_type\x18\x07 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StructH\x00\x12:\n\narray_type\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ArrayH\x00\x12\x36\n\x08map_type\x18\x04 \x01(\x0b\x32\".google.bigtable.admin.v2.Type.MapH\x00\x12:\n\nproto_type\x18\r \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ProtoH\x00\x12\x38\n\tenum_type\x18\x0e \x01(\x0b\x32#.google.bigtable.admin.v2.Type.EnumH\x00\x1a\xa9\x01\n\x05\x42ytes\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1a_\n\x08\x45ncoding\x12@\n\x03raw\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\x9f\x02\n\x06String\x12@\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.Type.String.Encoding\x1a\xd2\x01\n\x08\x45ncoding\x12N\n\x08utf8_raw\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\r\n\x07Utf8Raw:\x02\x18\x01\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xfd\x02\n\x05Int64\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.Encoding\x1a\xb2\x02\n\x08\x45ncoding\x12X\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\n\x12ordered_code_bytes\x18\x02 \x01(\x0b\x32>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1aN\n\x0e\x42igEndianBytes\x12<\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\xb4\x01\n\tTimestamp\x12\x43\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1a\x62\n\x08\x45ncoding\x12J\n\x11unix_micros_int64\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00\x42\n\n\x08\x65ncoding\x1a\x06\n\x04\x44\x61te\x1a\xb9\x04\n\x06Struct\x12;\n\x06\x66ields\x18\x01 \x03(\x0b\x32+.google.bigtable.admin.v2.Type.Struct.Field\x12@\n\x08\x65ncoding\x18\x02 \x01(\x0b\x32..google.bigtable.admin.v2.Type.Struct.Encoding\x1aI\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xe4\x02\n\x08\x45ncoding\x12M\n\tsingleton\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\n\x0f\x64\x65limited_bytes\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\n\x12ordered_code_bytes\x18\x03 \x01(\x0b\x32?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1a\x0b\n\tSingleton\x1a#\n\x0e\x44\x65limitedBytes\x12\x11\n\tdelimiter\x18\x01 \x01(\x0c\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x37\n\x05Proto\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x14\n\x0cmessage_name\x18\x02 \x01(\t\x1a\x33\n\x04\x45num\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x11\n\tenum_name\x18\x02 \x01(\t\x1a=\n\x05\x41rray\x12\x34\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1ak\n\x03Map\x12\x30\n\x08key_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x32\n\nvalue_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xdb\x03\n\tAggregate\x12\x32\n\ninput_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x37\n\nstate_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.TypeB\x03\xe0\x41\x03\x12;\n\x03sum\x18\x04 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12\x65\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\n\x03max\x18\x06 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\n\x03min\x18\x07 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xcd\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type").msgclass - Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes").msgclass - Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding").msgclass - Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding.Raw").msgclass - Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String").msgclass - Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding").msgclass - Type::String::Encoding::Utf8Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw").msgclass - Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes").msgclass - Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64").msgclass - Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding").msgclass - Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes").msgclass - Type::Int64::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes").msgclass - Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bool").msgclass - Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float32").msgclass - Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float64").msgclass - Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp").msgclass - Type::Timestamp::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp.Encoding").msgclass - Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Date").msgclass - Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct").msgclass - Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Field").msgclass - Type::Struct::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding").msgclass - Type::Struct::Encoding::Singleton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.Singleton").msgclass - Type::Struct::Encoding::DelimitedBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes").msgclass - Type::Struct::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes").msgclass - Type::Proto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Proto").msgclass - Type::Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Enum").msgclass - Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Array").msgclass - Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Map").msgclass - Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate").msgclass - Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Sum").msgclass - Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Max").msgclass - Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Min").msgclass - Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb deleted file mode 100644 index 19a6f94a9e3e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" -require "google/cloud/bigtable/admin/v2/version" - -module Google - module Cloud - module Bigtable - module Admin - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - module V2 - end - end - end - end -end - -helper_path = ::File.join __dir__, "v2", "_helpers.rb" -require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb deleted file mode 100644 index aeb89a361209..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/bigtable/admin/v2/version" - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - ## - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - module BigtableInstanceAdmin - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb deleted file mode 100644 index 4dbd45245ace..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +++ /dev/null @@ -1,3710 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - ## - # Client for the BigtableInstanceAdmin service. - # - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :bigtable_instance_admin_stub - - ## - # Configure the BigtableInstanceAdmin Client class. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BigtableInstanceAdmin clients - # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.create_instance.timeout = 300.0 - - default_config.rpcs.get_instance.timeout = 60.0 - default_config.rpcs.get_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_instances.timeout = 60.0 - default_config.rpcs.list_instances.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_instance.timeout = 60.0 - default_config.rpcs.update_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.partial_update_instance.timeout = 60.0 - default_config.rpcs.partial_update_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_instance.timeout = 60.0 - - default_config.rpcs.create_cluster.timeout = 60.0 - - default_config.rpcs.get_cluster.timeout = 60.0 - default_config.rpcs.get_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_clusters.timeout = 60.0 - default_config.rpcs.list_clusters.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_cluster.timeout = 60.0 - default_config.rpcs.update_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_cluster.timeout = 60.0 - - default_config.rpcs.create_app_profile.timeout = 60.0 - - default_config.rpcs.get_app_profile.timeout = 60.0 - default_config.rpcs.get_app_profile.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_app_profiles.timeout = 60.0 - default_config.rpcs.list_app_profiles.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_app_profile.timeout = 60.0 - default_config.rpcs.update_app_profile.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_app_profile.timeout = 60.0 - - default_config.rpcs.get_iam_policy.timeout = 60.0 - default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.set_iam_policy.timeout = 60.0 - - default_config.rpcs.test_iam_permissions.timeout = 60.0 - default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_hot_tablets.timeout = 60.0 - default_config.rpcs.list_hot_tablets.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableInstanceAdmin Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @bigtable_instance_admin_stub.universe_domain - end - - ## - # Create a new BigtableInstanceAdmin client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BigtableInstanceAdmin client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @bigtable_instance_admin_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @bigtable_instance_admin_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations] - # - attr_reader :operations_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @bigtable_instance_admin_stub.logger - end - - # Service calls - - ## - # Create an instance within a project. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - # - # @overload create_instance(request, options = nil) - # Pass arguments to `create_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_instance(parent: nil, instance_id: nil, instance: nil, clusters: nil) - # Pass arguments to `create_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the project in which to create the new - # instance. Values are of the form `projects/{project}`. - # @param instance_id [::String] - # Required. The ID to be used when referring to the new instance within its - # project, e.g., just `myinstance` rather than - # `projects/myproject/instances/myinstance`. - # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # Required. The instance to create. - # Fields marked `OutputOnly` must be left blank. - # @param clusters [::Hash{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash}] - # Required. The clusters to be created within the instance, mapped by desired - # cluster ID, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # Fields marked `OutputOnly` must be left blank. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new - # - # # Call the create_instance method. - # result = client.create_instance request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an instance. - # - # @overload get_instance(request, options = nil) - # Pass arguments to `get_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_instance(name: nil) - # Pass arguments to `get_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested instance. Values are of the form - # `projects/{project}/instances/{instance}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new - # - # # Call the get_instance method. - # result = client.get_instance request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - # p result - # - def get_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about instances in a project. - # - # @overload list_instances(request, options = nil) - # Pass arguments to `list_instances` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_instances(parent: nil, page_token: nil) - # Pass arguments to `list_instances` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the project for which a list of instances is - # requested. Values are of the form `projects/{project}`. - # @param page_token [::String] - # DEPRECATED: This field is unused and ignored. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new - # - # # Call the list_instances method. - # result = client.list_instances request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. - # p result - # - def list_instances request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_instances.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_instances.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_instances.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an instance within a project. This method updates only the display - # name and type for an Instance. To update other Instance properties, such as - # labels, use PartialUpdateInstance. - # - # @overload update_instance(request, options = nil) - # Pass arguments to `update_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::Instance} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_instance(name: nil, display_name: nil, type: nil, labels: nil, tags: nil) - # Pass arguments to `update_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The unique name of the instance. Values are of the form - # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - # @param display_name [::String] - # Required. The descriptive name for this instance as it appears in UIs. - # Can be changed at any time, but should be kept globally unique - # to avoid confusion. - # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] - # The type of the instance. Defaults to `PRODUCTION`. - # @param labels [::Hash{::String => ::String}] - # Labels are a flexible and lightweight mechanism for organizing cloud - # resources into groups that reflect a customer's organizational needs and - # deployment strategies. They can be used to filter resources and aggregate - # metrics. - # - # * Label keys must be between 1 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - # * Label values must be between 0 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - # * No more than 64 labels can be associated with a given resource. - # * Keys and values must both be under 128 bytes. - # @param tags [::Hash{::String => ::String}] - # Optional. Input only. Immutable. Tag keys/values directly bound to this - # resource. For example: - # - "123/environment": "production", - # - "123/costCenter": "marketing" - # - # Tags and Labels (above) are both used to bind metadata to resources, with - # different use-cases. See - # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - # in-depth overview on the difference between tags and labels. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::Instance.new - # - # # Call the update_instance method. - # result = client.update_instance request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - # p result - # - def update_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Instance - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Partially updates an instance within a project. This method can modify all - # fields of an Instance and is the preferred way to update an Instance. - # - # @overload partial_update_instance(request, options = nil) - # Pass arguments to `partial_update_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload partial_update_instance(instance: nil, update_mask: nil) - # Pass arguments to `partial_update_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # Required. The Instance which will (partially) replace the current value. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of Instance fields which should be replaced. - # Must be explicitly set. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new - # - # # Call the partial_update_instance method. - # result = client.partial_update_instance request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def partial_update_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.partial_update_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.instance&.name - header_params["instance.name"] = request.instance.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.partial_update_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete an instance from a project. - # - # @overload delete_instance(request, options = nil) - # Pass arguments to `delete_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_instance(name: nil) - # Pass arguments to `delete_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the instance to be deleted. - # Values are of the form `projects/{project}/instances/{instance}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new - # - # # Call the delete_instance method. - # result = client.delete_instance request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a cluster within an instance. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - # - # @overload create_cluster(request, options = nil) - # Pass arguments to `create_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil) - # Pass arguments to `create_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the new - # cluster. Values are of the form `projects/{project}/instances/{instance}`. - # @param cluster_id [::String] - # Required. The ID to be used when referring to the new cluster within its - # instance, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # Required. The cluster to be created. - # Fields marked `OutputOnly` must be left blank. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new - # - # # Call the create_cluster method. - # result = client.create_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a cluster. - # - # @overload get_cluster(request, options = nil) - # Pass arguments to `get_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_cluster(name: nil) - # Pass arguments to `get_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new - # - # # Call the get_cluster method. - # result = client.get_cluster request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. - # p result - # - def get_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about clusters in an instance. - # - # @overload list_clusters(request, options = nil) - # Pass arguments to `list_clusters` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_clusters(parent: nil, page_token: nil) - # Pass arguments to `list_clusters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which a list of clusters is - # requested. Values are of the form - # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - # Clusters for all Instances in a project, e.g., - # `projects/myproject/instances/-`. - # @param page_token [::String] - # DEPRECATED: This field is unused and ignored. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new - # - # # Call the list_clusters method. - # result = client.list_clusters request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. - # p result - # - def list_clusters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_clusters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_clusters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_clusters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a cluster within an instance. - # - # Note that UpdateCluster does not support updating - # cluster_config.cluster_autoscaling_config. In order to update it, you - # must use PartialUpdateCluster. - # - # @overload update_cluster(request, options = nil) - # Pass arguments to `update_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_cluster(name: nil, location: nil, serve_nodes: nil, node_scaling_factor: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil) - # Pass arguments to `update_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The unique name of the cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - # @param location [::String] - # Immutable. The location where this cluster's nodes and storage reside. For - # best performance, clients should be located as close as possible to this - # cluster. Currently only zones are supported, so values should be of the - # form `projects/{project}/locations/{zone}`. - # @param serve_nodes [::Integer] - # The number of nodes in the cluster. If no value is set, - # Cloud Bigtable automatically allocates nodes based on your data footprint - # and optimized for 50% storage utilization. - # @param node_scaling_factor [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] - # Immutable. The node scaling factor of this cluster. - # @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash] - # Configuration for this cluster. - # @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType] - # Immutable. The type of storage used by this cluster to serve its - # parent instance's tables, unless explicitly overridden. - # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash] - # Immutable. The encryption configuration for CMEK-protected clusters. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::Cluster.new - # - # # Call the update_cluster method. - # result = client.update_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Partially updates a cluster within a project. This method is the preferred - # way to update a Cluster. - # - # To enable and update autoscaling, set - # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - # are ignored. Note that an update cannot simultaneously set serve_nodes to - # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - # also specify both in the update_mask. - # - # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - # and explicitly set a serve_node count via the update_mask. - # - # @overload partial_update_cluster(request, options = nil) - # Pass arguments to `partial_update_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload partial_update_cluster(cluster: nil, update_mask: nil) - # Pass arguments to `partial_update_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # Required. The Cluster which contains the partial updates to be applied, - # subject to the update_mask. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of Cluster fields which should be replaced. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new - # - # # Call the partial_update_cluster method. - # result = client.partial_update_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def partial_update_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.partial_update_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.cluster&.name - header_params["cluster.name"] = request.cluster.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.partial_update_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a cluster from an instance. - # - # @overload delete_cluster(request, options = nil) - # Pass arguments to `delete_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_cluster(name: nil) - # Pass arguments to `delete_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the cluster to be deleted. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new - # - # # Call the delete_cluster method. - # result = client.delete_cluster request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an app profile within an instance. - # - # @overload create_app_profile(request, options = nil) - # Pass arguments to `create_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_app_profile(parent: nil, app_profile_id: nil, app_profile: nil, ignore_warnings: nil) - # Pass arguments to `create_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the new app - # profile. Values are of the form `projects/{project}/instances/{instance}`. - # @param app_profile_id [::String] - # Required. The ID to be used when referring to the new app profile within - # its instance, e.g., just `myprofile` rather than - # `projects/myproject/instances/myinstance/appProfiles/myprofile`. - # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] - # Required. The app profile to be created. - # Fields marked `OutputOnly` will be ignored. - # @param ignore_warnings [::Boolean] - # If true, ignore safety checks when creating the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new - # - # # Call the create_app_profile method. - # result = client.create_app_profile request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p result - # - def create_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an app profile. - # - # @overload get_app_profile(request, options = nil) - # Pass arguments to `get_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_app_profile(name: nil) - # Pass arguments to `get_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested app profile. Values are of the - # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new - # - # # Call the get_app_profile method. - # result = client.get_app_profile request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p result - # - def get_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about app profiles in an instance. - # - # @overload list_app_profiles(request, options = nil) - # Pass arguments to `list_app_profiles` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_app_profiles(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_app_profiles` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which a list of app profiles - # is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - # e.g., `projects/myproject/instances/-`. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new - # - # # Call the list_app_profiles method. - # result = client.list_app_profiles request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p item - # end - # - def list_app_profiles request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_app_profiles.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_app_profiles.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_app_profiles, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an app profile within an instance. - # - # @overload update_app_profile(request, options = nil) - # Pass arguments to `update_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_app_profile(app_profile: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] - # Required. The app profile which will (partially) replace the current value. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of app profile fields which should be replaced. - # If unset, all fields will be replaced. - # @param ignore_warnings [::Boolean] - # If true, ignore safety checks when updating the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new - # - # # Call the update_app_profile method. - # result = client.update_app_profile request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.app_profile&.name - header_params["app_profile.name"] = request.app_profile.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an app profile from an instance. - # - # @overload delete_app_profile(request, options = nil) - # Pass arguments to `delete_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_app_profile(name: nil, ignore_warnings: nil) - # Pass arguments to `delete_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the app profile to be deleted. Values are of - # the form - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # @param ignore_warnings [::Boolean] - # Required. If true, ignore safety checks when deleting the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new - # - # # Call the delete_app_profile method. - # result = client.delete_app_profile request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for an instance resource. Returns an empty - # policy if an instance exists but does not have a policy set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on an instance resource. Replaces any - # existing policy. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns permissions that the caller has on the specified instance resource. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists hot tablets in a cluster, within the time range provided. Hot - # tablets are ordered based on CPU usage. - # - # @overload list_hot_tablets(request, options = nil) - # Pass arguments to `list_hot_tablets` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_hot_tablets(parent: nil, start_time: nil, end_time: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_hot_tablets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The cluster name to list hot tablets. - # Value is in the following form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # The start time to list hot tablets. The hot tablets in the response will - # have start times between the requested start time and end time. Start time - # defaults to Now if it is unset, and end time defaults to Now - 24 hours if - # it is unset. The start time should be less than the end time, and the - # maximum allowed time range between start time and end time is 48 hours. - # Start time and end time should have values between Now and Now - 14 days. - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # The end time to list hot tablets. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size that is empty or zero lets the server choose the number of - # items to return. A page_size which is strictly positive will return at most - # that many items. A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls do not need a - # page_size field. If a page_size is set in subsequent calls, it must match - # the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new - # - # # Call the list_hot_tablets method. - # result = client.list_hot_tablets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. - # p item - # end - # - def list_hot_tablets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_hot_tablets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_hot_tablets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_hot_tablets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_hot_tablets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_hot_tablets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a logical view within an instance. - # - # @overload create_logical_view(request, options = nil) - # Pass arguments to `create_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_logical_view(parent: nil, logical_view_id: nil, logical_view: nil) - # Pass arguments to `create_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent instance where this logical view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @param logical_view_id [::String] - # Required. The ID to use for the logical view, which will become the final - # component of the logical view's resource name. - # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] - # Required. The logical view to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new - # - # # Call the create_logical_view method. - # result = client.create_logical_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_logical_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a logical view. - # - # @overload get_logical_view(request, options = nil) - # Pass arguments to `get_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_logical_view(name: nil) - # Pass arguments to `get_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested logical view. Values are of the - # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new - # - # # Call the get_logical_view method. - # result = client.get_logical_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. - # p result - # - def get_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_logical_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about logical views in an instance. - # - # @overload list_logical_views(request, options = nil) - # Pass arguments to `list_logical_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_logical_views(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_logical_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which the list of logical - # views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @param page_size [::Integer] - # Optional. The maximum number of logical views to return. The service may - # return fewer than this value - # @param page_token [::String] - # Optional. A page token, received from a previous `ListLogicalViews` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListLogicalViews` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new - # - # # Call the list_logical_views method. - # result = client.list_logical_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. - # p item - # end - # - def list_logical_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_logical_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_logical_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_logical_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_logical_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_logical_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a logical view within an instance. - # - # @overload update_logical_view(request, options = nil) - # Pass arguments to `update_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_logical_view(logical_view: nil, update_mask: nil) - # Pass arguments to `update_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] - # Required. The logical view to update. - # - # The logical view's `name` field is used to identify the view to update. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new - # - # # Call the update_logical_view method. - # result = client.update_logical_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.logical_view&.name - header_params["logical_view.name"] = request.logical_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_logical_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a logical view from an instance. - # - # @overload delete_logical_view(request, options = nil) - # Pass arguments to `delete_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_logical_view(name: nil, etag: nil) - # Pass arguments to `delete_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the logical view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @param etag [::String] - # Optional. The current etag of the logical view. - # If an etag is provided and does not match the current etag of the - # logical view, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new - # - # # Call the delete_logical_view method. - # result = client.delete_logical_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_logical_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a materialized view within an instance. - # - # @overload create_materialized_view(request, options = nil) - # Pass arguments to `create_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_materialized_view(parent: nil, materialized_view_id: nil, materialized_view: nil) - # Pass arguments to `create_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent instance where this materialized view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @param materialized_view_id [::String] - # Required. The ID to use for the materialized view, which will become the - # final component of the materialized view's resource name. - # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] - # Required. The materialized view to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new - # - # # Call the create_materialized_view method. - # result = client.create_materialized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_materialized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a materialized view. - # - # @overload get_materialized_view(request, options = nil) - # Pass arguments to `get_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_materialized_view(name: nil) - # Pass arguments to `get_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested materialized view. Values are of - # the form - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new - # - # # Call the get_materialized_view method. - # result = client.get_materialized_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. - # p result - # - def get_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_materialized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about materialized views in an instance. - # - # @overload list_materialized_views(request, options = nil) - # Pass arguments to `list_materialized_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_materialized_views(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_materialized_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which the list of - # materialized views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @param page_size [::Integer] - # Optional. The maximum number of materialized views to return. The service - # may return fewer than this value - # @param page_token [::String] - # Optional. A page token, received from a previous `ListMaterializedViews` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListMaterializedViews` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new - # - # # Call the list_materialized_views method. - # result = client.list_materialized_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. - # p item - # end - # - def list_materialized_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_materialized_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_materialized_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_materialized_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_materialized_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_materialized_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a materialized view within an instance. - # - # @overload update_materialized_view(request, options = nil) - # Pass arguments to `update_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_materialized_view(materialized_view: nil, update_mask: nil) - # Pass arguments to `update_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] - # Required. The materialized view to update. - # - # The materialized view's `name` field is used to identify the view to - # update. Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new - # - # # Call the update_materialized_view method. - # result = client.update_materialized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.materialized_view&.name - header_params["materialized_view.name"] = request.materialized_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_materialized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a materialized view from an instance. - # - # @overload delete_materialized_view(request, options = nil) - # Pass arguments to `delete_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_materialized_view(name: nil, etag: nil) - # Pass arguments to `delete_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the materialized view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @param etag [::String] - # Optional. The current etag of the materialized view. - # If an etag is provided and does not match the current etag of the - # materialized view, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new - # - # # Call the delete_materialized_view method. - # result = client.delete_materialized_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_materialized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the BigtableInstanceAdmin API. - # - # This class represents the configuration for BigtableInstanceAdmin, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_instance to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_instance.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_instance.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BigtableInstanceAdmin API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :create_instance - ## - # RPC-specific configuration for `get_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :get_instance - ## - # RPC-specific configuration for `list_instances` - # @return [::Gapic::Config::Method] - # - attr_reader :list_instances - ## - # RPC-specific configuration for `update_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :update_instance - ## - # RPC-specific configuration for `partial_update_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :partial_update_instance - ## - # RPC-specific configuration for `delete_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_instance - ## - # RPC-specific configuration for `create_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :create_cluster - ## - # RPC-specific configuration for `get_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :get_cluster - ## - # RPC-specific configuration for `list_clusters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_clusters - ## - # RPC-specific configuration for `update_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :update_cluster - ## - # RPC-specific configuration for `partial_update_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :partial_update_cluster - ## - # RPC-specific configuration for `delete_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_cluster - ## - # RPC-specific configuration for `create_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :create_app_profile - ## - # RPC-specific configuration for `get_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :get_app_profile - ## - # RPC-specific configuration for `list_app_profiles` - # @return [::Gapic::Config::Method] - # - attr_reader :list_app_profiles - ## - # RPC-specific configuration for `update_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :update_app_profile - ## - # RPC-specific configuration for `delete_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_app_profile - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - ## - # RPC-specific configuration for `list_hot_tablets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_hot_tablets - ## - # RPC-specific configuration for `create_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_logical_view - ## - # RPC-specific configuration for `get_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_logical_view - ## - # RPC-specific configuration for `list_logical_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_logical_views - ## - # RPC-specific configuration for `update_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_logical_view - ## - # RPC-specific configuration for `delete_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_logical_view - ## - # RPC-specific configuration for `create_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_materialized_view - ## - # RPC-specific configuration for `get_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_materialized_view - ## - # RPC-specific configuration for `list_materialized_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_materialized_views - ## - # RPC-specific configuration for `update_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_materialized_view - ## - # RPC-specific configuration for `delete_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_materialized_view - - # @private - def initialize parent_rpcs = nil - create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance - @create_instance = ::Gapic::Config::Method.new create_instance_config - get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance - @get_instance = ::Gapic::Config::Method.new get_instance_config - list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances - @list_instances = ::Gapic::Config::Method.new list_instances_config - update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance - @update_instance = ::Gapic::Config::Method.new update_instance_config - partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance - @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config - delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance - @delete_instance = ::Gapic::Config::Method.new delete_instance_config - create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster - @create_cluster = ::Gapic::Config::Method.new create_cluster_config - get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster - @get_cluster = ::Gapic::Config::Method.new get_cluster_config - list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters - @list_clusters = ::Gapic::Config::Method.new list_clusters_config - update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster - @update_cluster = ::Gapic::Config::Method.new update_cluster_config - partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster - @partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config - delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster - @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config - create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile - @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config - get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile - @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config - list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles - @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config - update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile - @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config - delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile - @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - list_hot_tablets_config = parent_rpcs.list_hot_tablets if parent_rpcs.respond_to? :list_hot_tablets - @list_hot_tablets = ::Gapic::Config::Method.new list_hot_tablets_config - create_logical_view_config = parent_rpcs.create_logical_view if parent_rpcs.respond_to? :create_logical_view - @create_logical_view = ::Gapic::Config::Method.new create_logical_view_config - get_logical_view_config = parent_rpcs.get_logical_view if parent_rpcs.respond_to? :get_logical_view - @get_logical_view = ::Gapic::Config::Method.new get_logical_view_config - list_logical_views_config = parent_rpcs.list_logical_views if parent_rpcs.respond_to? :list_logical_views - @list_logical_views = ::Gapic::Config::Method.new list_logical_views_config - update_logical_view_config = parent_rpcs.update_logical_view if parent_rpcs.respond_to? :update_logical_view - @update_logical_view = ::Gapic::Config::Method.new update_logical_view_config - delete_logical_view_config = parent_rpcs.delete_logical_view if parent_rpcs.respond_to? :delete_logical_view - @delete_logical_view = ::Gapic::Config::Method.new delete_logical_view_config - create_materialized_view_config = parent_rpcs.create_materialized_view if parent_rpcs.respond_to? :create_materialized_view - @create_materialized_view = ::Gapic::Config::Method.new create_materialized_view_config - get_materialized_view_config = parent_rpcs.get_materialized_view if parent_rpcs.respond_to? :get_materialized_view - @get_materialized_view = ::Gapic::Config::Method.new get_materialized_view_config - list_materialized_views_config = parent_rpcs.list_materialized_views if parent_rpcs.respond_to? :list_materialized_views - @list_materialized_views = ::Gapic::Config::Method.new list_materialized_views_config - update_materialized_view_config = parent_rpcs.update_materialized_view if parent_rpcs.respond_to? :update_materialized_view - @update_materialized_view = ::Gapic::Config::Method.new update_materialized_view_config - delete_materialized_view_config = parent_rpcs.delete_materialized_view if parent_rpcs.respond_to? :delete_materialized_view - @delete_materialized_view = ::Gapic::Config::Method.new delete_materialized_view_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb deleted file mode 100644 index 4b166e3ac286..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Credentials for the BigtableInstanceAdmin API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.cluster", - "https://www.googleapis.com/auth/bigtable.admin.instance", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - self.env_vars = [ - "BIGTABLE_CREDENTIALS", - "BIGTABLE_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "BIGTABLE_CREDENTIALS_JSON", - "BIGTABLE_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb deleted file mode 100644 index d49308f480c1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +++ /dev/null @@ -1,843 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the BigtableInstanceAdmin Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableInstanceAdmin Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb deleted file mode 100644 index 8ee57571df69..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb +++ /dev/null @@ -1,180 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Path helper methods for the BigtableInstanceAdmin API. - module Paths - ## - # Create a fully-qualified AppProfile resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}` - # - # @param project [String] - # @param instance [String] - # @param app_profile [String] - # - # @return [::String] - def app_profile_path project:, instance:, app_profile: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/appProfiles/#{app_profile}" - end - - ## - # Create a fully-qualified Cluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # - # @return [::String] - def cluster_path project:, instance:, cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}" - end - - ## - # Create a fully-qualified CryptoKey resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # - # @return [::String] - def crypto_key_path project:, location:, key_ring:, crypto_key: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" - end - - ## - # Create a fully-qualified Instance resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}` - # - # @param project [String] - # @param instance [String] - # - # @return [::String] - def instance_path project:, instance: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/instances/#{instance}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified LogicalView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - # - # @param project [String] - # @param instance [String] - # @param logical_view [String] - # - # @return [::String] - def logical_view_path project:, instance:, logical_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/logicalViews/#{logical_view}" - end - - ## - # Create a fully-qualified MaterializedView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - # - # @param project [String] - # @param instance [String] - # @param materialized_view [String] - # - # @return [::String] - def materialized_view_path project:, instance:, materialized_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/materializedViews/#{materialized_view}" - end - - ## - # Create a fully-qualified Project resource string. - # - # The resource will be in the following format: - # - # `projects/{project}` - # - # @param project [String] - # - # @return [::String] - def project_path project: - "projects/#{project}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb deleted file mode 100644 index cc08c6872c99..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/bigtable/admin/v2/version" - -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/paths" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/operations" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/client" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - ## - # Service for creating, configuring, and deleting Cloud Bigtable tables. - # - # - # Provides access to the table schemas only, not the data stored within - # the tables. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - module BigtableTableAdmin - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bigtable_table_admin", "helpers.rb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb deleted file mode 100644 index a6a0d9ba05cd..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +++ /dev/null @@ -1,4266 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/bigtable/admin/v2/bigtable_table_admin_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - ## - # Client for the BigtableTableAdmin service. - # - # Service for creating, configuring, and deleting Cloud Bigtable tables. - # - # - # Provides access to the table schemas only, not the data stored within - # the tables. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :bigtable_table_admin_stub - - ## - # Configure the BigtableTableAdmin Client class. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BigtableTableAdmin clients - # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.create_table.timeout = 300.0 - - default_config.rpcs.list_tables.timeout = 60.0 - default_config.rpcs.list_tables.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.get_table.timeout = 60.0 - default_config.rpcs.get_table.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_table.timeout = 300.0 - - default_config.rpcs.modify_column_families.timeout = 300.0 - - default_config.rpcs.drop_row_range.timeout = 3600.0 - - default_config.rpcs.generate_consistency_token.timeout = 60.0 - default_config.rpcs.generate_consistency_token.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.check_consistency.timeout = 3600.0 - default_config.rpcs.check_consistency.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.get_snapshot.timeout = 60.0 - default_config.rpcs.get_snapshot.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_snapshots.timeout = 60.0 - default_config.rpcs.list_snapshots.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_snapshot.timeout = 300.0 - - default_config.rpcs.create_backup.timeout = 60.0 - - default_config.rpcs.get_backup.timeout = 60.0 - default_config.rpcs.get_backup.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_backup.timeout = 60.0 - - default_config.rpcs.delete_backup.timeout = 300.0 - - default_config.rpcs.list_backups.timeout = 60.0 - default_config.rpcs.list_backups.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.restore_table.timeout = 60.0 - - default_config.rpcs.get_iam_policy.timeout = 60.0 - default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.set_iam_policy.timeout = 60.0 - - default_config.rpcs.test_iam_permissions.timeout = 60.0 - default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableTableAdmin Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @bigtable_table_admin_stub.universe_domain - end - - ## - # Create a new BigtableTableAdmin client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BigtableTableAdmin client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @bigtable_table_admin_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @bigtable_table_admin_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations] - # - attr_reader :operations_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @bigtable_table_admin_stub.logger - end - - # Service calls - - ## - # Creates a new table in the specified instance. - # The table can be created with a full set of initial column families, - # specified in the request. - # - # @overload create_table(request, options = nil) - # Pass arguments to `create_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_table(parent: nil, table_id: nil, table: nil, initial_splits: nil) - # Pass arguments to `create_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @param table_id [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # Maximum 50 characters. - # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] - # Required. The Table to create. - # @param initial_splits [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, ::Hash>] - # The optional list of row keys that will be used to initially split the - # table into several tablets (tablets are similar to HBase regions). - # Given two split keys, `s1` and `s2`, three tablets will be created, - # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - # - # Example: - # - # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - # `"other", "zz"]` - # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - # * Key assignment: - # - Tablet 1 `[, apple) => {"a"}.` - # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - # - Tablet 4 `[customer_2, other) => {"customer_2"}.` - # - Tablet 5 `[other, ) => {"other", "zz"}.` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new - # - # # Call the create_table method. - # result = client.create_table request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def create_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new table from the specified snapshot. The target table must - # not exist. The snapshot and the table must be in the same instance. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload create_table_from_snapshot(request, options = nil) - # Pass arguments to `create_table_from_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_table_from_snapshot(parent: nil, table_id: nil, source_snapshot: nil) - # Pass arguments to `create_table_from_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @param table_id [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # @param source_snapshot [::String] - # Required. The unique name of the snapshot from which to restore the table. - # The snapshot and the table must be in the same instance. Values are of the - # form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new - # - # # Call the create_table_from_snapshot method. - # result = client.create_table_from_snapshot request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_table_from_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_table_from_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all tables served from a specified instance. - # - # @overload list_tables(request, options = nil) - # Pass arguments to `list_tables` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_tables(parent: nil, view: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_tables` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which tables should be - # listed. Values are of the form `projects/{project}/instances/{instance}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned tables' fields. - # NAME_ONLY view (default) and REPLICATION_VIEW are supported. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new - # - # # Call the list_tables method. - # result = client.list_tables request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. - # p item - # end - # - def list_tables request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_tables.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_tables.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_tables.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_tables, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified table. - # - # @overload get_table(request, options = nil) - # Pass arguments to `get_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_table(name: nil, view: nil) - # Pass arguments to `get_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested table. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned table's fields. - # Defaults to `SCHEMA_VIEW` if unspecified. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new - # - # # Call the get_table method. - # result = client.get_table request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def get_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a specified table. - # - # @overload update_table(request, options = nil) - # Pass arguments to `update_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_table(table: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] - # Required. The table to update. - # The table's `name` field is used to identify the table to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to update. - # A mask specifying which fields (e.g. `change_stream_config`) in the `table` - # field should be updated. This mask is relative to the `table` field, not to - # the request message. The wildcard (*) path is currently not supported. - # Currently UpdateTable is only supported for the following fields: - # - # * `change_stream_config` - # * `change_stream_config.retention_period` - # * `deletion_protection` - # * `row_key_schema` - # - # If `column_families` is set in `update_mask`, it will return an - # UNIMPLEMENTED error. - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore safety checks when updating the table. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new - # - # # Call the update_table method. - # result = client.update_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.table&.name - header_params["table.name"] = request.table.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes a specified table and all of its data. - # - # @overload delete_table(request, options = nil) - # Pass arguments to `delete_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_table(name: nil) - # Pass arguments to `delete_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new - # - # # Call the delete_table method. - # result = client.delete_table request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Restores a specified table which was accidentally deleted. - # - # @overload undelete_table(request, options = nil) - # Pass arguments to `undelete_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload undelete_table(name: nil) - # Pass arguments to `undelete_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to be restored. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new - # - # # Call the undelete_table method. - # result = client.undelete_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def undelete_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.undelete_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.undelete_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.undelete_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new AuthorizedView in a table. - # - # @overload create_authorized_view(request, options = nil) - # Pass arguments to `create_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_authorized_view(parent: nil, authorized_view_id: nil, authorized_view: nil) - # Pass arguments to `create_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. This is the name of the table the AuthorizedView belongs to. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param authorized_view_id [::String] - # Required. The id of the AuthorizedView to create. This AuthorizedView must - # not already exist. The `authorized_view_id` appended to `parent` forms the - # full AuthorizedView name of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] - # Required. The AuthorizedView to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new - # - # # Call the create_authorized_view method. - # result = client.create_authorized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_authorized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all AuthorizedViews from a specific table. - # - # @overload list_authorized_views(request, options = nil) - # Pass arguments to `list_authorized_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_authorized_views(parent: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `list_authorized_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the table for which AuthorizedViews should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param page_size [::Integer] - # Optional. Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # Optional. The value of `next_page_token` returned by a previous call. - # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedViews' - # fields. Default to NAME_ONLY. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new - # - # # Call the list_authorized_views method. - # result = client.list_authorized_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - # p item - # end - # - def list_authorized_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_authorized_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_authorized_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_authorized_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_authorized_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_authorized_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information from a specified AuthorizedView. - # - # @overload get_authorized_view(request, options = nil) - # Pass arguments to `get_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_authorized_view(name: nil, view: nil) - # Pass arguments to `get_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedView's - # fields. Default to BASIC. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new - # - # # Call the get_authorized_view method. - # result = client.get_authorized_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - # p result - # - def get_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_authorized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an AuthorizedView in a table. - # - # @overload update_authorized_view(request, options = nil) - # Pass arguments to `update_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_authorized_view(authorized_view: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] - # Required. The AuthorizedView to update. The `name` in `authorized_view` is - # used to identify the AuthorizedView. AuthorizedView name must in this - # format: - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # A mask specifying which fields in the AuthorizedView resource should be - # updated. This mask is relative to the AuthorizedView resource, not to the - # request message. A field will be overwritten if it is in the mask. If - # empty, all fields set in the request will be overwritten. A special value - # `*` means to overwrite all fields (including fields not set in the - # request). - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore the safety checks when updating the - # AuthorizedView. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new - # - # # Call the update_authorized_view method. - # result = client.update_authorized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.authorized_view&.name - header_params["authorized_view.name"] = request.authorized_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_authorized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes a specified AuthorizedView. - # - # @overload delete_authorized_view(request, options = nil) - # Pass arguments to `delete_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_authorized_view(name: nil, etag: nil) - # Pass arguments to `delete_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the AuthorizedView to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param etag [::String] - # Optional. The current etag of the AuthorizedView. - # If an etag is provided and does not match the current etag of the - # AuthorizedView, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new - # - # # Call the delete_authorized_view method. - # result = client.delete_authorized_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_authorized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a series of column family modifications on the specified table. - # Either all or none of the modifications will occur before this method - # returns, but data requests received prior to that point may see a table - # where only some modifications have taken effect. - # - # @overload modify_column_families(request, options = nil) - # Pass arguments to `modify_column_families` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload modify_column_families(name: nil, modifications: nil, ignore_warnings: nil) - # Pass arguments to `modify_column_families` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table whose families should be modified. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param modifications [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, ::Hash>] - # Required. Modifications to be atomically applied to the specified table's - # families. Entries are applied in order, meaning that earlier modifications - # can be masked by later ones (in the case of repeated updates to the same - # family, for example). - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore safety checks when modifying the column families. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new - # - # # Call the modify_column_families method. - # result = client.modify_column_families request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def modify_column_families request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.modify_column_families.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout, - metadata: metadata, - retry_policy: @config.rpcs.modify_column_families.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently drop/delete a row range from a specified table. The request can - # specify whether to delete all rows in a table, or only those that match a - # particular prefix. - # - # @overload drop_row_range(request, options = nil) - # Pass arguments to `drop_row_range` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload drop_row_range(name: nil, row_key_prefix: nil, delete_all_data_from_table: nil) - # Pass arguments to `drop_row_range` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table on which to drop a range of rows. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param row_key_prefix [::String] - # Delete all rows that start with this row key prefix. Prefix cannot be - # zero length. - # - # Note: The following parameters are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param delete_all_data_from_table [::Boolean] - # Delete all rows in the table. Setting this to false is a no-op. - # - # Note: The following parameters are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new - # - # # Call the drop_row_range method. - # result = client.drop_row_range request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def drop_row_range request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.drop_row_range.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout, - metadata: metadata, - retry_policy: @config.rpcs.drop_row_range.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Generates a consistency token for a Table, which can be used in - # CheckConsistency to check whether mutations to the table that finished - # before this call started have been replicated. The tokens will be available - # for 90 days. - # - # @overload generate_consistency_token(request, options = nil) - # Pass arguments to `generate_consistency_token` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_consistency_token(name: nil) - # Pass arguments to `generate_consistency_token` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the Table for which to create a consistency - # token. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new - # - # # Call the generate_consistency_token method. - # result = client.generate_consistency_token request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. - # p result - # - def generate_consistency_token request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_consistency_token.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_consistency_token.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Checks replication consistency based on a consistency token, that is, if - # replication has caught up based on the conditions specified in the token - # and the check request. - # - # @overload check_consistency(request, options = nil) - # Pass arguments to `check_consistency` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload check_consistency(name: nil, consistency_token: nil, standard_read_remote_writes: nil, data_boost_read_local_writes: nil) - # Pass arguments to `check_consistency` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the Table for which to check replication - # consistency. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param consistency_token [::String] - # Required. The token created using GenerateConsistencyToken for the Table. - # @param standard_read_remote_writes [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites, ::Hash] - # Checks that reads using an app profile with `StandardIsolation` can - # see all writes committed before the token was created, even if the - # read and write target different clusters. - # - # Note: The following parameters are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param data_boost_read_local_writes [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites, ::Hash] - # Checks that reads using an app profile with `DataBoostIsolationReadOnly` - # can see all writes committed before the token was created, but only if - # the read and write target the same cluster. - # - # Note: The following parameters are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new - # - # # Call the check_consistency method. - # result = client.check_consistency request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. - # p result - # - def check_consistency request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.check_consistency.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.check_consistency.timeout, - metadata: metadata, - retry_policy: @config.rpcs.check_consistency.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new snapshot in the specified cluster from the specified - # source table. The cluster and the table must be in the same instance. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload snapshot_table(request, options = nil) - # Pass arguments to `snapshot_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload snapshot_table(name: nil, cluster: nil, snapshot_id: nil, ttl: nil, description: nil) - # Pass arguments to `snapshot_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to have the snapshot taken. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param cluster [::String] - # Required. The name of the cluster where the snapshot will be created in. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param snapshot_id [::String] - # Required. The ID by which the new snapshot should be referred to within the - # parent cluster, e.g., `mysnapshot` of the form: - # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - # @param ttl [::Google::Protobuf::Duration, ::Hash] - # The amount of time that the new snapshot can stay active after it is - # created. Once 'ttl' expires, the snapshot will get deleted. The maximum - # amount of time a snapshot can stay active is 7 days. If 'ttl' is not - # specified, the default value of 24 hours will be used. - # @param description [::String] - # Description of the snapshot. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new - # - # # Call the snapshot_table method. - # result = client.snapshot_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def snapshot_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.snapshot_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.snapshot_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified snapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload get_snapshot(request, options = nil) - # Pass arguments to `get_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_snapshot(name: nil) - # Pass arguments to `get_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Snapshot] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new - # - # # Call the get_snapshot method. - # result = client.get_snapshot request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. - # p result - # - def get_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all snapshots associated with the specified cluster. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload list_snapshots(request, options = nil) - # Pass arguments to `list_snapshots` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_snapshots(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_snapshots` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the cluster for which snapshots should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @param page_size [::Integer] - # The maximum number of snapshots to return per page. - # CURRENTLY UNIMPLEMENTED AND IGNORED. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new - # - # # Call the list_snapshots method. - # result = client.list_snapshots request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. - # p item - # end - # - def list_snapshots request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_snapshots.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_snapshots.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_snapshots, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes the specified snapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload delete_snapshot(request, options = nil) - # Pass arguments to `delete_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_snapshot(name: nil) - # Pass arguments to `delete_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the snapshot to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new - # - # # Call the delete_snapshot method. - # result = client.delete_snapshot request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts creating a new Cloud Bigtable Backup. The returned backup - # {::Google::Longrunning::Operation long-running operation} can be used to - # track creation of the backup. The - # {::Google::Longrunning::Operation#metadata metadata} field type is - # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupMetadata CreateBackupMetadata}. The - # {::Google::Longrunning::Operation#response response} field type is - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}, if successful. Cancelling the - # returned operation will stop the creation and delete the backup. - # - # @overload create_backup(request, options = nil) - # Pass arguments to `create_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_backup(parent: nil, backup_id: nil, backup: nil) - # Pass arguments to `create_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. This must be one of the clusters in the instance in which this - # table is located. The backup will be stored in this cluster. Values are - # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param backup_id [::String] - # Required. The id of the backup to be created. The `backup_id` along with - # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create - # the full backup name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] - # Required. The backup to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new - # - # # Call the create_backup method. - # result = client.create_backup request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata on a pending or completed Cloud Bigtable Backup. - # - # @overload get_backup(request, options = nil) - # Pass arguments to `get_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_backup(name: nil) - # Pass arguments to `get_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the backup. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new - # - # # Call the get_backup method. - # result = client.get_backup request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - # p result - # - def get_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a pending or completed Cloud Bigtable Backup. - # - # @overload update_backup(request, options = nil) - # Pass arguments to `update_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_backup(backup: nil, update_mask: nil) - # Pass arguments to `update_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] - # Required. The backup to update. `backup.name`, and the fields to be updated - # as specified by `update_mask` are required. Other fields are ignored. - # Update is only supported for the following fields: - # - # * `backup.expire_time`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. A mask specifying which fields (e.g. `expire_time`) in the - # Backup resource should be updated. This mask is relative to the Backup - # resource, not to the request message. The field mask must always be - # specified; this prevents any future fields from being erased accidentally - # by clients that do not know about them. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new - # - # # Call the update_backup method. - # result = client.update_backup request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - # p result - # - def update_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.backup&.name - header_params["backup.name"] = request.backup.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a pending or completed Cloud Bigtable backup. - # - # @overload delete_backup(request, options = nil) - # Pass arguments to `delete_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_backup(name: nil) - # Pass arguments to `delete_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the backup to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new - # - # # Call the delete_backup method. - # result = client.delete_backup request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Cloud Bigtable backups. Returns both completed and pending - # backups. - # - # @overload list_backups(request, options = nil) - # Pass arguments to `list_backups` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_backups(parent: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_backups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The cluster to list backups from. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list backups for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @param filter [::String] - # A filter expression that filters backups listed in the response. - # The expression must specify the field name, a comparison operator, - # and the value that you want to use for filtering. The value must be a - # string, a number, or a boolean. The comparison operator must be - # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - # roughly synonymous with equality. Filter rules are case insensitive. - # - # The fields eligible for filtering are: - # - # * `name` - # * `source_table` - # * `state` - # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `size_bytes` - # - # To filter on multiple expressions, provide each separate expression within - # parentheses. By default, each expression is an AND expression. However, - # you can include AND, OR, and NOT expressions explicitly. - # - # Some examples of using filters are: - # - # * `name:"exact"` --> The backup's name is the string "exact". - # * `name:howl` --> The backup's name contains the string "howl". - # * `source_table:prod` - # --> The source_table's name contains the string "prod". - # * `state:CREATING` --> The backup is pending creation. - # * `state:READY` --> The backup is fully created and ready for use. - # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - # --> The backup name contains the string "howl" and start_time - # of the backup is before 2018-03-28T14:50:00Z. - # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - # @param order_by [::String] - # An expression for specifying the sort order of the results of the request. - # The string value should specify one or more fields in - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at - # https://aip.dev/132#ordering. - # - # Fields supported are: - # - # * name - # * source_table - # * expire_time - # * start_time - # * end_time - # * size_bytes - # * state - # - # For example, "start_time". The default sorting order is ascending. - # To specify descending order for the field, a suffix " desc" should - # be appended to the field name. For example, "start_time desc". - # Redundant space characters in the syntax are insigificant. - # - # If order_by is empty, results will be sorted by `start_time` in descending - # order starting from the most recently created backup. - # @param page_size [::Integer] - # Number of backups to be returned in the response. If 0 or - # less, defaults to the server's maximum allowed page size. - # @param page_token [::String] - # If non-empty, `page_token` should contain a - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} - # from a previous - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the - # same `parent` and with the same `filter`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new - # - # # Call the list_backups method. - # result = client.list_backups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. - # p item - # end - # - def list_backups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_backups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_backups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_backups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_backups, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new table by restoring from a completed backup. The - # returned table {::Google::Longrunning::Operation long-running operation} can - # be used to track the progress of the operation, and to cancel it. The - # {::Google::Longrunning::Operation#metadata metadata} field type is - # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableMetadata RestoreTableMetadata}. The - # {::Google::Longrunning::Operation#response response} type is - # {::Google::Cloud::Bigtable::Admin::V2::Table Table}, if successful. - # - # @overload restore_table(request, options = nil) - # Pass arguments to `restore_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload restore_table(parent: nil, table_id: nil, backup: nil) - # Pass arguments to `restore_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the instance in which to create the restored - # table. Values are of the form `projects//instances/`. - # @param table_id [::String] - # Required. The id of the table to create and restore to. This - # table must not already exist. The `table_id` appended to - # `parent` forms the full table name of the form - # `projects//instances//tables/`. - # @param backup [::String] - # Name of the backup from which to restore. Values are of the form - # `projects//instances//clusters//backups/`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new - # - # # Call the restore_table method. - # result = client.restore_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def restore_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.restore_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.restore_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.restore_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Copy a Cloud Bigtable backup to a new backup in the destination cluster - # located in the destination instance and project. - # - # @overload copy_backup(request, options = nil) - # Pass arguments to `copy_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload copy_backup(parent: nil, backup_id: nil, source_backup: nil, expire_time: nil) - # Pass arguments to `copy_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the destination cluster that will contain the backup - # copy. The cluster must already exist. Values are of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param backup_id [::String] - # Required. The id of the new backup. The `backup_id` along with `parent` - # are combined as \\{parent}/backups/\\{backup_id} to create the full backup - # name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @param source_backup [::String] - # Required. The source backup to be copied from. - # The source backup needs to be in READY state for it to be copied. - # Copying a copied backup is not allowed. - # Once CopyBackup is in progress, the source backup cannot be deleted or - # cleaned up on expiration until CopyBackup is finished. - # Values are of the form: - # `projects//instances//clusters//backups/`. - # @param expire_time [::Google::Protobuf::Timestamp, ::Hash] - # Required. Required. The expiration time of the copied backup with - # microsecond granularity that must be at least 6 hours and at most 30 days - # from the time the request is received. Once the `expire_time` has - # passed, Cloud Bigtable will delete the backup and free the resources used - # by the backup. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new - # - # # Call the copy_backup method. - # result = client.copy_backup request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def copy_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.copy_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.copy_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.copy_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :copy_backup, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a Bigtable resource. - # Returns an empty policy if the resource exists but does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on a Bigtable resource. - # Replaces any existing policy. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns permissions that the caller has on the specified Bigtable - # resource. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new schema bundle in the specified table. - # - # @overload create_schema_bundle(request, options = nil) - # Pass arguments to `create_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_schema_bundle(parent: nil, schema_bundle_id: nil, schema_bundle: nil) - # Pass arguments to `create_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this schema bundle will be created. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param schema_bundle_id [::String] - # Required. The unique ID to use for the schema bundle, which will become the - # final component of the schema bundle's resource name. - # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] - # Required. The schema bundle to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new - # - # # Call the create_schema_bundle method. - # result = client.create_schema_bundle request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_schema_bundle, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a schema bundle in the specified table. - # - # @overload update_schema_bundle(request, options = nil) - # Pass arguments to `update_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_schema_bundle(schema_bundle: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] - # Required. The schema bundle to update. - # - # The schema bundle's `name` field is used to identify the schema bundle to - # update. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # @param ignore_warnings [::Boolean] - # Optional. If set, ignore the safety checks when updating the Schema Bundle. - # The safety checks are: - # - The new Schema Bundle is backwards compatible with the existing Schema - # Bundle. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new - # - # # Call the update_schema_bundle method. - # result = client.update_schema_bundle request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.schema_bundle&.name - header_params["schema_bundle.name"] = request.schema_bundle.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_schema_bundle, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified schema bundle. - # - # @overload get_schema_bundle(request, options = nil) - # Pass arguments to `get_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_schema_bundle(name: nil) - # Pass arguments to `get_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the schema bundle to retrieve. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new - # - # # Call the get_schema_bundle method. - # result = client.get_schema_bundle request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - # p result - # - def get_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_schema_bundle, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all schema bundles associated with the specified table. - # - # @overload list_schema_bundles(request, options = nil) - # Pass arguments to `list_schema_bundles` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_schema_bundles(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_schema_bundles` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent, which owns this collection of schema bundles. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param page_size [::Integer] - # The maximum number of schema bundles to return. If the value is positive, - # the server may return at most this value. If unspecified, the server will - # return the maximum allowed page size. - # @param page_token [::String] - # A page token, received from a previous `ListSchemaBundles` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListSchemaBundles` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new - # - # # Call the list_schema_bundles method. - # result = client.list_schema_bundles request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - # p item - # end - # - def list_schema_bundles request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_schema_bundles.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_schema_bundles.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_schema_bundles.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_schema_bundles, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_schema_bundles, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a schema bundle in the specified table. - # - # @overload delete_schema_bundle(request, options = nil) - # Pass arguments to `delete_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_schema_bundle(name: nil, etag: nil) - # Pass arguments to `delete_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the schema bundle to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @param etag [::String] - # Optional. The etag of the schema bundle. - # If this is provided, it must match the server's etag. The server - # returns an ABORTED error on a mismatched etag. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new - # - # # Call the delete_schema_bundle method. - # result = client.delete_schema_bundle request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_schema_bundle, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the BigtableTableAdmin API. - # - # This class represents the configuration for BigtableTableAdmin, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_table to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_table.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_table.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BigtableTableAdmin API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_table` - # @return [::Gapic::Config::Method] - # - attr_reader :create_table - ## - # RPC-specific configuration for `create_table_from_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :create_table_from_snapshot - ## - # RPC-specific configuration for `list_tables` - # @return [::Gapic::Config::Method] - # - attr_reader :list_tables - ## - # RPC-specific configuration for `get_table` - # @return [::Gapic::Config::Method] - # - attr_reader :get_table - ## - # RPC-specific configuration for `update_table` - # @return [::Gapic::Config::Method] - # - attr_reader :update_table - ## - # RPC-specific configuration for `delete_table` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_table - ## - # RPC-specific configuration for `undelete_table` - # @return [::Gapic::Config::Method] - # - attr_reader :undelete_table - ## - # RPC-specific configuration for `create_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_authorized_view - ## - # RPC-specific configuration for `list_authorized_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_authorized_views - ## - # RPC-specific configuration for `get_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_authorized_view - ## - # RPC-specific configuration for `update_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_authorized_view - ## - # RPC-specific configuration for `delete_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_authorized_view - ## - # RPC-specific configuration for `modify_column_families` - # @return [::Gapic::Config::Method] - # - attr_reader :modify_column_families - ## - # RPC-specific configuration for `drop_row_range` - # @return [::Gapic::Config::Method] - # - attr_reader :drop_row_range - ## - # RPC-specific configuration for `generate_consistency_token` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_consistency_token - ## - # RPC-specific configuration for `check_consistency` - # @return [::Gapic::Config::Method] - # - attr_reader :check_consistency - ## - # RPC-specific configuration for `snapshot_table` - # @return [::Gapic::Config::Method] - # - attr_reader :snapshot_table - ## - # RPC-specific configuration for `get_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :get_snapshot - ## - # RPC-specific configuration for `list_snapshots` - # @return [::Gapic::Config::Method] - # - attr_reader :list_snapshots - ## - # RPC-specific configuration for `delete_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_snapshot - ## - # RPC-specific configuration for `create_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :create_backup - ## - # RPC-specific configuration for `get_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :get_backup - ## - # RPC-specific configuration for `update_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :update_backup - ## - # RPC-specific configuration for `delete_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_backup - ## - # RPC-specific configuration for `list_backups` - # @return [::Gapic::Config::Method] - # - attr_reader :list_backups - ## - # RPC-specific configuration for `restore_table` - # @return [::Gapic::Config::Method] - # - attr_reader :restore_table - ## - # RPC-specific configuration for `copy_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :copy_backup - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - ## - # RPC-specific configuration for `create_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :create_schema_bundle - ## - # RPC-specific configuration for `update_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :update_schema_bundle - ## - # RPC-specific configuration for `get_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :get_schema_bundle - ## - # RPC-specific configuration for `list_schema_bundles` - # @return [::Gapic::Config::Method] - # - attr_reader :list_schema_bundles - ## - # RPC-specific configuration for `delete_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_schema_bundle - - # @private - def initialize parent_rpcs = nil - create_table_config = parent_rpcs.create_table if parent_rpcs.respond_to? :create_table - @create_table = ::Gapic::Config::Method.new create_table_config - create_table_from_snapshot_config = parent_rpcs.create_table_from_snapshot if parent_rpcs.respond_to? :create_table_from_snapshot - @create_table_from_snapshot = ::Gapic::Config::Method.new create_table_from_snapshot_config - list_tables_config = parent_rpcs.list_tables if parent_rpcs.respond_to? :list_tables - @list_tables = ::Gapic::Config::Method.new list_tables_config - get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table - @get_table = ::Gapic::Config::Method.new get_table_config - update_table_config = parent_rpcs.update_table if parent_rpcs.respond_to? :update_table - @update_table = ::Gapic::Config::Method.new update_table_config - delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table - @delete_table = ::Gapic::Config::Method.new delete_table_config - undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table - @undelete_table = ::Gapic::Config::Method.new undelete_table_config - create_authorized_view_config = parent_rpcs.create_authorized_view if parent_rpcs.respond_to? :create_authorized_view - @create_authorized_view = ::Gapic::Config::Method.new create_authorized_view_config - list_authorized_views_config = parent_rpcs.list_authorized_views if parent_rpcs.respond_to? :list_authorized_views - @list_authorized_views = ::Gapic::Config::Method.new list_authorized_views_config - get_authorized_view_config = parent_rpcs.get_authorized_view if parent_rpcs.respond_to? :get_authorized_view - @get_authorized_view = ::Gapic::Config::Method.new get_authorized_view_config - update_authorized_view_config = parent_rpcs.update_authorized_view if parent_rpcs.respond_to? :update_authorized_view - @update_authorized_view = ::Gapic::Config::Method.new update_authorized_view_config - delete_authorized_view_config = parent_rpcs.delete_authorized_view if parent_rpcs.respond_to? :delete_authorized_view - @delete_authorized_view = ::Gapic::Config::Method.new delete_authorized_view_config - modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families - @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config - drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range - @drop_row_range = ::Gapic::Config::Method.new drop_row_range_config - generate_consistency_token_config = parent_rpcs.generate_consistency_token if parent_rpcs.respond_to? :generate_consistency_token - @generate_consistency_token = ::Gapic::Config::Method.new generate_consistency_token_config - check_consistency_config = parent_rpcs.check_consistency if parent_rpcs.respond_to? :check_consistency - @check_consistency = ::Gapic::Config::Method.new check_consistency_config - snapshot_table_config = parent_rpcs.snapshot_table if parent_rpcs.respond_to? :snapshot_table - @snapshot_table = ::Gapic::Config::Method.new snapshot_table_config - get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot - @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config - list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots - @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config - delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot - @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config - create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup - @create_backup = ::Gapic::Config::Method.new create_backup_config - get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup - @get_backup = ::Gapic::Config::Method.new get_backup_config - update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup - @update_backup = ::Gapic::Config::Method.new update_backup_config - delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup - @delete_backup = ::Gapic::Config::Method.new delete_backup_config - list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups - @list_backups = ::Gapic::Config::Method.new list_backups_config - restore_table_config = parent_rpcs.restore_table if parent_rpcs.respond_to? :restore_table - @restore_table = ::Gapic::Config::Method.new restore_table_config - copy_backup_config = parent_rpcs.copy_backup if parent_rpcs.respond_to? :copy_backup - @copy_backup = ::Gapic::Config::Method.new copy_backup_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - create_schema_bundle_config = parent_rpcs.create_schema_bundle if parent_rpcs.respond_to? :create_schema_bundle - @create_schema_bundle = ::Gapic::Config::Method.new create_schema_bundle_config - update_schema_bundle_config = parent_rpcs.update_schema_bundle if parent_rpcs.respond_to? :update_schema_bundle - @update_schema_bundle = ::Gapic::Config::Method.new update_schema_bundle_config - get_schema_bundle_config = parent_rpcs.get_schema_bundle if parent_rpcs.respond_to? :get_schema_bundle - @get_schema_bundle = ::Gapic::Config::Method.new get_schema_bundle_config - list_schema_bundles_config = parent_rpcs.list_schema_bundles if parent_rpcs.respond_to? :list_schema_bundles - @list_schema_bundles = ::Gapic::Config::Method.new list_schema_bundles_config - delete_schema_bundle_config = parent_rpcs.delete_schema_bundle if parent_rpcs.respond_to? :delete_schema_bundle - @delete_schema_bundle = ::Gapic::Config::Method.new delete_schema_bundle_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb deleted file mode 100644 index b13ab97ad469..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Credentials for the BigtableTableAdmin API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.table", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.table", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - self.env_vars = [ - "BIGTABLE_CREDENTIALS", - "BIGTABLE_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "BIGTABLE_CREDENTIALS_JSON", - "BIGTABLE_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb deleted file mode 100644 index ad9957f0f690..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +++ /dev/null @@ -1,843 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the BigtableTableAdmin Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableTableAdmin Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb deleted file mode 100644 index c10bcef1999e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb +++ /dev/null @@ -1,214 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Path helper methods for the BigtableTableAdmin API. - module Paths - ## - # Create a fully-qualified AuthorizedView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # @param authorized_view [String] - # - # @return [::String] - def authorized_view_path project:, instance:, table:, authorized_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}/authorizedViews/#{authorized_view}" - end - - ## - # Create a fully-qualified Backup resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # @param backup [String] - # - # @return [::String] - def backup_path project:, instance:, cluster:, backup: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}" - end - - ## - # Create a fully-qualified Cluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # - # @return [::String] - def cluster_path project:, instance:, cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}" - end - - ## - # Create a fully-qualified CryptoKeyVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # @param crypto_key_version [String] - # - # @return [::String] - def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" - end - - ## - # Create a fully-qualified Instance resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}` - # - # @param project [String] - # @param instance [String] - # - # @return [::String] - def instance_path project:, instance: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/instances/#{instance}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified SchemaBundle resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # @param schema_bundle [String] - # - # @return [::String] - def schema_bundle_path project:, instance:, table:, schema_bundle: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}/schemaBundles/#{schema_bundle}" - end - - ## - # Create a fully-qualified Snapshot resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # @param snapshot [String] - # - # @return [::String] - def snapshot_path project:, instance:, cluster:, snapshot: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}" - end - - ## - # Create a fully-qualified Table resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # - # @return [::String] - def table_path project:, instance:, table: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb deleted file mode 100644 index b19e81c131f7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - VERSION = "0.0.1" - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md deleted file mode 100644 index 2968913b938d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Cloud Bigtable Admin V2 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb deleted file mode 100644 index 3ab0b096d445..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb +++ /dev/null @@ -1,593 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - # - # Note: This field should not be used in most cases. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # - # Note: This feature should not be used in most cases. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb deleted file mode 100644 index a39e72495e1c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb +++ /dev/null @@ -1,767 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Request message for BigtableInstanceAdmin.CreateInstance. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the project in which to create the new - # instance. Values are of the form `projects/{project}`. - # @!attribute [rw] instance_id - # @return [::String] - # Required. The ID to be used when referring to the new instance within its - # project, e.g., just `myinstance` rather than - # `projects/myproject/instances/myinstance`. - # @!attribute [rw] instance - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # Required. The instance to create. - # Fields marked `OutputOnly` must be left blank. - # @!attribute [rw] clusters - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster}] - # Required. The clusters to be created within the instance, mapped by desired - # cluster ID, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # Fields marked `OutputOnly` must be left blank. - class CreateInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - class ClustersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for BigtableInstanceAdmin.GetInstance. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested instance. Values are of the form - # `projects/{project}/instances/{instance}`. - class GetInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListInstances. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the project for which a list of instances is - # requested. Values are of the form `projects/{project}`. - # @!attribute [rw] page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListInstancesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListInstances. - # @!attribute [rw] instances - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Instance>] - # The list of requested instances. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which Instance information could not be retrieved, - # due to an outage or some other transient condition. - # Instances whose Clusters are all in one of the failed locations - # may be missing from `instances`, and Instances with at least one - # Cluster in a failed location may only have partial information returned. - # Values are of the form `projects//locations/` - # @!attribute [rw] next_page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListInstancesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.PartialUpdateInstance. - # @!attribute [rw] instance - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # Required. The Instance which will (partially) replace the current value. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of Instance fields which should be replaced. - # Must be explicitly set. - class PartialUpdateInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteInstance. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the instance to be deleted. - # Values are of the form `projects/{project}/instances/{instance}`. - class DeleteInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateCluster. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the new - # cluster. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] cluster_id - # @return [::String] - # Required. The ID to be used when referring to the new cluster within its - # instance, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # @!attribute [rw] cluster - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # Required. The cluster to be created. - # Fields marked `OutputOnly` must be left blank. - class CreateClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetCluster. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - class GetClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListClusters. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which a list of clusters is - # requested. Values are of the form - # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - # Clusters for all Instances in a project, e.g., - # `projects/myproject/instances/-`. - # @!attribute [rw] page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListClustersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListClusters. - # @!attribute [rw] clusters - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Cluster>] - # The list of requested clusters. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which Cluster information could not be retrieved, - # due to an outage or some other transient condition. - # Clusters from these locations may be missing from `clusters`, - # or may only have partial information returned. - # Values are of the form `projects//locations/` - # @!attribute [rw] next_page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListClustersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteCluster. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the cluster to be deleted. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - class DeleteClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateInstance. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest] - # The request that prompted the initiation of this CreateInstance operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateInstanceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateInstance. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest] - # The request that prompted the initiation of this UpdateInstance operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateInstanceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateCluster. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest] - # The request that prompted the initiation of this CreateCluster operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - # @!attribute [rw] tables - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress}] - # Keys: the full `name` of each table that existed in the instance when - # CreateCluster was first called, i.e. - # `projects//instances//tables/
`. Any table added - # to the instance by a later API call will be created in the new cluster by - # that API call, not this one. - # - # Values: information on how much of a table's data has been copied to the - # newly-created cluster so far. - class CreateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Progress info for copying a table's data to the new cluster. - # @!attribute [rw] estimated_size_bytes - # @return [::Integer] - # Estimate of the size of the table to be copied. - # @!attribute [rw] estimated_copied_bytes - # @return [::Integer] - # Estimate of the number of bytes copied so far for this table. - # This will eventually reach 'estimated_size_bytes' unless the table copy - # is CANCELLED. - # @!attribute [rw] state - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress::State] - class TableProgress - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - module State - STATE_UNSPECIFIED = 0 - - # The table has not yet begun copying to the new cluster. - PENDING = 1 - - # The table is actively being copied to the new cluster. - COPYING = 2 - - # The table has been fully copied to the new cluster. - COMPLETED = 3 - - # The table was deleted before it finished copying to the new cluster. - # Note that tables deleted after completion will stay marked as - # COMPLETED, not CANCELLED. - CANCELLED = 4 - end - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress] - class TablesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The metadata for the Operation returned by UpdateCluster. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # The request that prompted the initiation of this UpdateCluster operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by PartialUpdateCluster. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest] - # The original request for PartialUpdateCluster. - class PartialUpdateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.PartialUpdateCluster. - # @!attribute [rw] cluster - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # Required. The Cluster which contains the partial updates to be applied, - # subject to the update_mask. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of Cluster fields which should be replaced. - class PartialUpdateClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateAppProfile. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the new app - # profile. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] app_profile_id - # @return [::String] - # Required. The ID to be used when referring to the new app profile within - # its instance, e.g., just `myprofile` rather than - # `projects/myproject/instances/myinstance/appProfiles/myprofile`. - # @!attribute [rw] app_profile - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # Required. The app profile to be created. - # Fields marked `OutputOnly` will be ignored. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # If true, ignore safety checks when creating the app profile. - class CreateAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetAppProfile. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested app profile. Values are of the - # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - class GetAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListAppProfiles. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which a list of app profiles - # is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - # e.g., `projects/myproject/instances/-`. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListAppProfilesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListAppProfiles. - # @!attribute [rw] app_profiles - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # The list of requested app profiles. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all app profiles could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which AppProfile information could not be retrieved, - # due to an outage or some other transient condition. - # AppProfiles from these locations may be missing from `app_profiles`. - # Values are of the form `projects//locations/` - class ListAppProfilesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateAppProfile. - # @!attribute [rw] app_profile - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # Required. The app profile which will (partially) replace the current value. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of app profile fields which should be replaced. - # If unset, all fields will be replaced. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # If true, ignore safety checks when updating the app profile. - class UpdateAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteAppProfile. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the app profile to be deleted. Values are of - # the form - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Required. If true, ignore safety checks when deleting the app profile. - class DeleteAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateAppProfile. - class UpdateAppProfileMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListHotTablets. - # @!attribute [rw] parent - # @return [::String] - # Required. The cluster name to list hot tablets. - # Value is in the following form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The start time to list hot tablets. The hot tablets in the response will - # have start times between the requested start time and end time. Start time - # defaults to Now if it is unset, and end time defaults to Now - 24 hours if - # it is unset. The start time should be less than the end time, and the - # maximum allowed time range between start time and end time is 48 hours. - # Start time and end time should have values between Now and Now - 14 days. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # The end time to list hot tablets. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size that is empty or zero lets the server choose the number of - # items to return. A page_size which is strictly positive will return at most - # that many items. A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls do not need a - # page_size field. If a page_size is set in subsequent calls, it must match - # the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListHotTabletsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListHotTablets. - # @!attribute [rw] hot_tablets - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # List of hot tablets in the tables of the requested cluster that fall - # within the requested time range. Hot tablets are ordered by node cpu usage - # percent. If there are multiple hot tablets that correspond to the same - # tablet within a 15-minute interval, only the hot tablet with the highest - # node cpu usage will be included in the response. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all hot tablets could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListHotTabletsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateLogicalView. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent instance where this logical view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @!attribute [rw] logical_view_id - # @return [::String] - # Required. The ID to use for the logical view, which will become the final - # component of the logical view's resource name. - # @!attribute [rw] logical_view - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # Required. The logical view to create. - class CreateLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateLogicalView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest] - # The request that prompted the initiation of this CreateLogicalView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateLogicalViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetLogicalView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested logical view. Values are of the - # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - class GetLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListLogicalViews. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which the list of logical - # views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of logical views to return. The service may - # return fewer than this value - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListLogicalViews` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListLogicalViews` must - # match the call that provided the page token. - class ListLogicalViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListLogicalViews. - # @!attribute [rw] logical_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # The list of requested logical views. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListLogicalViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateLogicalView. - # @!attribute [rw] logical_view - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # Required. The logical view to update. - # - # The logical view's `name` field is used to identify the view to update. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - class UpdateLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateLogicalView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest] - # The request that prompted the initiation of this UpdateLogicalView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation was started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateLogicalViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteLogicalView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the logical view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the logical view. - # If an etag is provided and does not match the current etag of the - # logical view, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateMaterializedView. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent instance where this materialized view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @!attribute [rw] materialized_view_id - # @return [::String] - # Required. The ID to use for the materialized view, which will become the - # final component of the materialized view's resource name. - # @!attribute [rw] materialized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # Required. The materialized view to create. - class CreateMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateMaterializedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest] - # The request that prompted the initiation of this CreateMaterializedView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateMaterializedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetMaterializedView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested materialized view. Values are of - # the form - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - class GetMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListMaterializedViews. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which the list of - # materialized views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of materialized views to return. The service - # may return fewer than this value - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListMaterializedViews` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListMaterializedViews` - # must match the call that provided the page token. - class ListMaterializedViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListMaterializedViews. - # @!attribute [rw] materialized_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # The list of requested materialized views. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListMaterializedViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateMaterializedView. - # @!attribute [rw] materialized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # Required. The materialized view to update. - # - # The materialized view's `name` field is used to identify the view to - # update. Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - class UpdateMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateMaterializedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest] - # The request that prompted the initiation of this UpdateMaterializedView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation was started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateMaterializedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteMaterializedView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the materialized view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the materialized view. - # If an etag is provided and does not match the current etag of the - # materialized view, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb deleted file mode 100644 index cde156ec6152..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb +++ /dev/null @@ -1,1167 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the instance in which to create the restored - # table. Values are of the form `projects//instances/`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The id of the table to create and restore to. This - # table must not already exist. The `table_id` appended to - # `parent` forms the full table name of the form - # `projects//instances//tables/`. - # @!attribute [rw] backup - # @return [::String] - # Name of the backup from which to restore. Values are of the form - # `projects//instances//clusters//backups/`. - class RestoreTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the long-running operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. - # @!attribute [rw] name - # @return [::String] - # Name of the table being created and restored to. - # @!attribute [rw] source_type - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] - # The type of the restore source. - # @!attribute [rw] backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # @!attribute [rw] optimize_table_operation_name - # @return [::String] - # If exists, the name of the long-running operation that will be used to - # track the post-restore optimization process to optimize the performance of - # the restored table. The metadata type of the long-running operation is - # [OptimizeRestoreTableMetadata][]. The response type is - # {::Google::Protobuf::Empty Empty}. This long-running operation may be - # automatically created by the system if applicable after the - # RestoreTable long-running operation completes successfully. This operation - # may not be created if the table is already optimized or the restore was - # not successful. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable} - # operation. - class RestoreTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the long-running operation used to track the progress - # of optimizations performed on a newly restored table. This long-running - # operation is automatically created by the system after the successful - # completion of a table restore, and cannot be cancelled. - # @!attribute [rw] name - # @return [::String] - # Name of the restored table being optimized. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the post-restore optimizations. - class OptimizeRestoredTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table google.bigtable.admin.v2.BigtableTableAdmin.CreateTable} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # Maximum 50 characters. - # @!attribute [rw] table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Required. The Table to create. - # @!attribute [rw] initial_splits - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>] - # The optional list of row keys that will be used to initially split the - # table into several tablets (tablets are similar to HBase regions). - # Given two split keys, `s1` and `s2`, three tablets will be created, - # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - # - # Example: - # - # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - # `"other", "zz"]` - # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - # * Key assignment: - # - Tablet 1 `[, apple) => {"a"}.` - # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - # - Tablet 4 `[customer_2, other) => {"customer_2"}.` - # - Tablet 5 `[other, ) => {"other", "zz"}.` - class CreateTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # An initial split point for a newly created table. - # @!attribute [rw] key - # @return [::String] - # Row key to use as an initial tablet boundary. - class Split - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # @!attribute [rw] source_snapshot - # @return [::String] - # Required. The unique name of the snapshot from which to restore the table. - # The snapshot and the table must be in the same instance. Values are of the - # form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class CreateTableFromSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table on which to drop a range of rows. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] row_key_prefix - # @return [::String] - # Delete all rows that start with this row key prefix. Prefix cannot be - # zero length. - # - # Note: The following fields are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delete_all_data_from_table - # @return [::Boolean] - # Delete all rows in the table. Setting this to false is a no-op. - # - # Note: The following fields are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class DropRowRangeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which tables should be - # listed. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned tables' fields. - # NAME_ONLY view (default) and REPLICATION_VIEW are supported. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListTablesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} - # @!attribute [rw] tables - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Table>] - # The tables present in the requested instance. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all tables could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListTablesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table google.bigtable.admin.v2.BigtableTableAdmin.GetTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested table. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned table's fields. - # Defaults to `SCHEMA_VIEW` if unspecified. - class GetTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. - # @!attribute [rw] table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Required. The table to update. - # The table's `name` field is used to identify the table to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to update. - # A mask specifying which fields (e.g. `change_stream_config`) in the `table` - # field should be updated. This mask is relative to the `table` field, not to - # the request message. The wildcard (*) path is currently not supported. - # Currently UpdateTable is only supported for the following fields: - # - # * `change_stream_config` - # * `change_stream_config.retention_period` - # * `deletion_protection` - # * `row_key_schema` - # - # If `column_families` is set in `update_mask`, it will return an - # UNIMPLEMENTED error. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore safety checks when updating the table. - class UpdateTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. - # @!attribute [rw] name - # @return [::String] - # The name of the table being updated. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class DeleteTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to be restored. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class UndeleteTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}. - # @!attribute [rw] name - # @return [::String] - # The name of the table being restored. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was cancelled. - class UndeleteTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table whose families should be modified. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] modifications - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>] - # Required. Modifications to be atomically applied to the specified table's - # families. Entries are applied in order, meaning that earlier modifications - # can be masked by later ones (in the case of repeated updates to the same - # family, for example). - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore safety checks when modifying the column families. - class ModifyColumnFamiliesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A create, update, or delete of a particular column family. - # @!attribute [rw] id - # @return [::String] - # The ID of the column family to be modified. - # @!attribute [rw] create - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - # Create a new column family with the specified schema, or fail if - # one already exists with the given ID. - # - # Note: The following fields are mutually exclusive: `create`, `update`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] update - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - # Update an existing column family to the specified schema, or fail - # if no column family exists with the given ID. - # - # Note: The following fields are mutually exclusive: `update`, `create`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] drop - # @return [::Boolean] - # Drop (delete) the column family with the given ID, or fail if no such - # family exists. - # - # Note: The following fields are mutually exclusive: `drop`, `create`, `update`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` - # mod should be updated, ignored for other modification types. If unset or - # empty, we treat it as updating `gc_rule` to be backward compatible. - class Modification - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the Table for which to create a consistency - # token. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class GenerateConsistencyTokenRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} - # @!attribute [rw] consistency_token - # @return [::String] - # The generated consistency token. - class GenerateConsistencyTokenResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the Table for which to check replication - # consistency. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] consistency_token - # @return [::String] - # Required. The token created using GenerateConsistencyToken for the Table. - # @!attribute [rw] standard_read_remote_writes - # @return [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites] - # Checks that reads using an app profile with `StandardIsolation` can - # see all writes committed before the token was created, even if the - # read and write target different clusters. - # - # Note: The following fields are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_boost_read_local_writes - # @return [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites] - # Checks that reads using an app profile with `DataBoostIsolationReadOnly` - # can see all writes committed before the token was created, but only if - # the read and write target the same cluster. - # - # Note: The following fields are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class CheckConsistencyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Checks that all writes before the consistency token was generated are - # replicated in every cluster and readable. - class StandardReadRemoteWrites - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Checks that all writes before the consistency token was generated in the same - # cluster are readable by Databoost. - class DataBoostReadLocalWrites - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} - # @!attribute [rw] consistent - # @return [::Boolean] - # True only if the token is consistent. A token is consistent if replication - # has caught up with the restrictions specified in the request. - class CheckConsistencyResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to have the snapshot taken. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] cluster - # @return [::String] - # Required. The name of the cluster where the snapshot will be created in. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] snapshot_id - # @return [::String] - # Required. The ID by which the new snapshot should be referred to within the - # parent cluster, e.g., `mysnapshot` of the form: - # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - # @!attribute [rw] ttl - # @return [::Google::Protobuf::Duration] - # The amount of time that the new snapshot can stay active after it is - # created. Once 'ttl' expires, the snapshot will get deleted. The maximum - # amount of time a snapshot can stay active is 7 days. If 'ttl' is not - # specified, the default value of 24 hours will be used. - # @!attribute [rw] description - # @return [::String] - # Description of the snapshot. - class SnapshotTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class GetSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the cluster for which snapshots should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of snapshots to return per page. - # CURRENTLY UNIMPLEMENTED AND IGNORED. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListSnapshotsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] snapshots - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # The snapshots present in the requested cluster. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all snapshots could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListSnapshotsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the snapshot to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class DeleteSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by SnapshotTable. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest] - # The request that prompted the initiation of this SnapshotTable operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class SnapshotTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateTableFromSnapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest] - # The request that prompted the initiation of this CreateTableFromSnapshot - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateTableFromSnapshotMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. - # @!attribute [rw] parent - # @return [::String] - # Required. This must be one of the clusters in the instance in which this - # table is located. The backup will be stored in this cluster. Values are - # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] backup_id - # @return [::String] - # Required. The id of the backup to be created. The `backup_id` along with - # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create - # the full backup name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @!attribute [rw] backup - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # Required. The backup to create. - class CreateBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. - # @!attribute [rw] name - # @return [::String] - # The name of the backup being created. - # @!attribute [rw] source_table - # @return [::String] - # The name of the table the backup is created from. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was cancelled. - class CreateBackupMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup UpdateBackup}. - # @!attribute [rw] backup - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # Required. The backup to update. `backup.name`, and the fields to be updated - # as specified by `update_mask` are required. Other fields are ignored. - # Update is only supported for the following fields: - # - # * `backup.expire_time`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. A mask specifying which fields (e.g. `expire_time`) in the - # Backup resource should be updated. This mask is relative to the Backup - # resource, not to the request message. The field mask must always be - # specified; this prevents any future fields from being erased accidentally - # by clients that do not know about them. - class UpdateBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup GetBackup}. - # @!attribute [rw] name - # @return [::String] - # Required. Name of the backup. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - class GetBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup DeleteBackup}. - # @!attribute [rw] name - # @return [::String] - # Required. Name of the backup to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - class DeleteBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. - # @!attribute [rw] parent - # @return [::String] - # Required. The cluster to list backups from. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list backups for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @!attribute [rw] filter - # @return [::String] - # A filter expression that filters backups listed in the response. - # The expression must specify the field name, a comparison operator, - # and the value that you want to use for filtering. The value must be a - # string, a number, or a boolean. The comparison operator must be - # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - # roughly synonymous with equality. Filter rules are case insensitive. - # - # The fields eligible for filtering are: - # - # * `name` - # * `source_table` - # * `state` - # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `size_bytes` - # - # To filter on multiple expressions, provide each separate expression within - # parentheses. By default, each expression is an AND expression. However, - # you can include AND, OR, and NOT expressions explicitly. - # - # Some examples of using filters are: - # - # * `name:"exact"` --> The backup's name is the string "exact". - # * `name:howl` --> The backup's name contains the string "howl". - # * `source_table:prod` - # --> The source_table's name contains the string "prod". - # * `state:CREATING` --> The backup is pending creation. - # * `state:READY` --> The backup is fully created and ready for use. - # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - # --> The backup name contains the string "howl" and start_time - # of the backup is before 2018-03-28T14:50:00Z. - # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - # @!attribute [rw] order_by - # @return [::String] - # An expression for specifying the sort order of the results of the request. - # The string value should specify one or more fields in - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at - # https://aip.dev/132#ordering. - # - # Fields supported are: - # - # * name - # * source_table - # * expire_time - # * start_time - # * end_time - # * size_bytes - # * state - # - # For example, "start_time". The default sorting order is ascending. - # To specify descending order for the field, a suffix " desc" should - # be appended to the field name. For example, "start_time desc". - # Redundant space characters in the syntax are insigificant. - # - # If order_by is empty, results will be sorted by `start_time` in descending - # order starting from the most recently created backup. - # @!attribute [rw] page_size - # @return [::Integer] - # Number of backups to be returned in the response. If 0 or - # less, defaults to the server's maximum allowed page size. - # @!attribute [rw] page_token - # @return [::String] - # If non-empty, `page_token` should contain a - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} - # from a previous - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the - # same `parent` and with the same `filter`. - class ListBackupsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. - # @!attribute [rw] backups - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # The list of matching backups. - # @!attribute [rw] next_page_token - # @return [::String] - # `next_page_token` can be sent in a subsequent - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups} call - # to fetch more of the matching backups. - class ListBackupsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the destination cluster that will contain the backup - # copy. The cluster must already exist. Values are of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] backup_id - # @return [::String] - # Required. The id of the new backup. The `backup_id` along with `parent` - # are combined as \\{parent}/backups/\\{backup_id} to create the full backup - # name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @!attribute [rw] source_backup - # @return [::String] - # Required. The source backup to be copied from. - # The source backup needs to be in READY state for it to be copied. - # Copying a copied backup is not allowed. - # Once CopyBackup is in progress, the source backup cannot be deleted or - # cleaned up on expiration until CopyBackup is finished. - # Values are of the form: - # `projects//instances//clusters//backups/`. - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # Required. Required. The expiration time of the copied backup with - # microsecond granularity that must be at least 6 hours and at most 30 days - # from the time the request is received. Once the `expire_time` has - # passed, Cloud Bigtable will delete the backup and free the resources used - # by the backup. - class CopyBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the google.longrunning.Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. - # @!attribute [rw] name - # @return [::String] - # The name of the backup being created through the copy operation. - # Values are of the form - # `projects//instances//clusters//backups/`. - # @!attribute [rw] source_backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # Information about the source backup that is being copied from. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup} - # operation. - class CopyBackupMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view CreateAuthorizedView} - # @!attribute [rw] parent - # @return [::String] - # Required. This is the name of the table the AuthorizedView belongs to. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] authorized_view_id - # @return [::String] - # Required. The id of the AuthorizedView to create. This AuthorizedView must - # not already exist. The `authorized_view_id` appended to `parent` forms the - # full AuthorizedView name of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - # @!attribute [rw] authorized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # Required. The AuthorizedView to create. - class CreateAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateAuthorizedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest] - # The request that prompted the initiation of this CreateAuthorizedView - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateAuthorizedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the table for which AuthorizedViews should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # Optional. The value of `next_page_token` returned by a previous call. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedViews' - # fields. Default to NAME_ONLY. - class ListAuthorizedViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} - # @!attribute [rw] authorized_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # The AuthorizedViews present in the requested table. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all tables could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListAuthorizedViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedView's - # fields. Default to BASIC. - class GetAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. - # @!attribute [rw] authorized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # Required. The AuthorizedView to update. The `name` in `authorized_view` is - # used to identify the AuthorizedView. AuthorizedView name must in this - # format: - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - # A mask specifying which fields in the AuthorizedView resource should be - # updated. This mask is relative to the AuthorizedView resource, not to the - # request message. A field will be overwritten if it is in the mask. If - # empty, all fields set in the request will be overwritten. A special value - # `*` means to overwrite all fields (including fields not set in the - # request). - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore the safety checks when updating the - # AuthorizedView. - class UpdateAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for the google.longrunning.Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest] - # The request that prompted the initiation of this UpdateAuthorizedView - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateAuthorizedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the AuthorizedView to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the AuthorizedView. - # If an etag is provided and does not match the current etag of the - # AuthorizedView, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource where this schema bundle will be created. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # Required. The unique ID to use for the schema bundle, which will become the - # final component of the schema bundle's resource name. - # @!attribute [rw] schema_bundle - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # Required. The schema bundle to create. - class CreateSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateSchemaBundleMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. - # @!attribute [rw] schema_bundle - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # Required. The schema bundle to update. - # - # The schema bundle's `name` field is used to identify the schema bundle to - # update. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If set, ignore the safety checks when updating the Schema Bundle. - # The safety checks are: - # - The new Schema Bundle is backwards compatible with the existing Schema - # Bundle. - class UpdateSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateSchemaBundleMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle GetSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the schema bundle to retrieve. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - class GetSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent, which owns this collection of schema bundles. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of schema bundles to return. If the value is positive, - # the server may return at most this value. If unspecified, the server will - # return the maximum allowed page size. - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListSchemaBundles` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListSchemaBundles` must - # match the call that provided the page token. - class ListSchemaBundlesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. - # @!attribute [rw] schema_bundles - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # The schema bundles from the specified table. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListSchemaBundlesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle DeleteSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the schema bundle to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag of the schema bundle. - # If this is provided, it must match the server's etag. The server - # returns an ABORTED error on a mismatched etag. - class DeleteSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb deleted file mode 100644 index 09fe845b5e8c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Encapsulates progress related information for a Cloud Bigtable long - # running operation. - # @!attribute [rw] progress_percent - # @return [::Integer] - # Percent completion of the operation. - # Values are between 0 and 100 inclusive. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Time the request was received. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation failed or was completed - # successfully. - class OperationProgress - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Storage media types for persisting Bigtable data. - module StorageType - # The user did not specify a storage type. - STORAGE_TYPE_UNSPECIFIED = 0 - - # Flash (SSD) storage should be used. - SSD = 1 - - # Magnetic drive (HDD) storage should be used. - HDD = 2 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb deleted file mode 100644 index 3915a0a92c55..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb +++ /dev/null @@ -1,519 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # A collection of Bigtable {::Google::Cloud::Bigtable::Admin::V2::Table Tables} and - # the resources that serve them. - # All tables in an instance are served from all - # {::Google::Cloud::Bigtable::Admin::V2::Cluster Clusters} in the instance. - # @!attribute [rw] name - # @return [::String] - # The unique name of the instance. Values are of the form - # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - # @!attribute [rw] display_name - # @return [::String] - # Required. The descriptive name for this instance as it appears in UIs. - # Can be changed at any time, but should be kept globally unique - # to avoid confusion. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::State] - # Output only. The current state of the instance. - # @!attribute [rw] type - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] - # The type of the instance. Defaults to `PRODUCTION`. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Labels are a flexible and lightweight mechanism for organizing cloud - # resources into groups that reflect a customer's organizational needs and - # deployment strategies. They can be used to filter resources and aggregate - # metrics. - # - # * Label keys must be between 1 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - # * Label values must be between 0 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - # * No more than 64 labels can be associated with a given resource. - # * Keys and values must both be under 128 bytes. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. A commit timestamp representing when this Instance was - # created. For instances created before this field was added (August 2021), - # this value is `seconds: 0, nanos: 1`. - # @!attribute [r] satisfies_pzs - # @return [::Boolean] - # Output only. Reserved for future use. - # @!attribute [r] satisfies_pzi - # @return [::Boolean] - # Output only. Reserved for future use. - # @!attribute [rw] tags - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Input only. Immutable. Tag keys/values directly bound to this - # resource. For example: - # - "123/environment": "production", - # - "123/costCenter": "marketing" - # - # Tags and Labels (above) are both used to bind metadata to resources, with - # different use-cases. See - # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - # in-depth overview on the difference between tags and labels. - class Instance - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TagsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible states of an instance. - module State - # The state of the instance could not be determined. - STATE_NOT_KNOWN = 0 - - # The instance has been successfully created and can serve requests - # to its tables. - READY = 1 - - # The instance is currently being created, and may be destroyed - # if the creation process encounters an error. - CREATING = 2 - end - - # The type of the instance. - module Type - # The type of the instance is unspecified. If set when creating an - # instance, a `PRODUCTION` instance will be created. If set when updating - # an instance, the type will be left unchanged. - TYPE_UNSPECIFIED = 0 - - # An instance meant for production use. `serve_nodes` must be set - # on the cluster. - PRODUCTION = 1 - - # DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces - # a higher minimum node count than DEVELOPMENT. - DEVELOPMENT = 2 - end - end - - # The Autoscaling targets for a Cluster. These determine the recommended nodes. - # @!attribute [rw] cpu_utilization_percent - # @return [::Integer] - # The cpu utilization that the Autoscaler should be trying to achieve. - # This number is on a scale from 0 (no utilization) to - # 100 (total utilization), and is limited between 10 and 80, otherwise it - # will return INVALID_ARGUMENT error. - # @!attribute [rw] storage_utilization_gib_per_node - # @return [::Integer] - # The storage utilization that the Autoscaler should be trying to achieve. - # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD - # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, - # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, - # it will be treated as if it were set to the default value: 2560 for SSD, - # 8192 for HDD. - class AutoscalingTargets - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Limits for the number of nodes a Cluster can autoscale up/down to. - # @!attribute [rw] min_serve_nodes - # @return [::Integer] - # Required. Minimum number of nodes to scale down to. - # @!attribute [rw] max_serve_nodes - # @return [::Integer] - # Required. Maximum number of nodes to scale up to. - class AutoscalingLimits - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resizable group of nodes in a particular cloud location, capable - # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent - # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}. - # @!attribute [rw] name - # @return [::String] - # The unique name of the cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - # @!attribute [rw] location - # @return [::String] - # Immutable. The location where this cluster's nodes and storage reside. For - # best performance, clients should be located as close as possible to this - # cluster. Currently only zones are supported, so values should be of the - # form `projects/{project}/locations/{zone}`. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::State] - # Output only. The current state of the cluster. - # @!attribute [rw] serve_nodes - # @return [::Integer] - # The number of nodes in the cluster. If no value is set, - # Cloud Bigtable automatically allocates nodes based on your data footprint - # and optimized for 50% storage utilization. - # @!attribute [rw] node_scaling_factor - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] - # Immutable. The node scaling factor of this cluster. - # @!attribute [rw] cluster_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig] - # Configuration for this cluster. - # @!attribute [rw] default_storage_type - # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType] - # Immutable. The type of storage used by this cluster to serve its - # parent instance's tables, unless explicitly overridden. - # @!attribute [rw] encryption_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig] - # Immutable. The encryption configuration for CMEK-protected clusters. - class Cluster - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Autoscaling config for a cluster. - # @!attribute [rw] autoscaling_limits - # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits] - # Required. Autoscaling limits for this cluster. - # @!attribute [rw] autoscaling_targets - # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets] - # Required. Autoscaling targets for this cluster. - class ClusterAutoscalingConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Configuration for a cluster. - # @!attribute [rw] cluster_autoscaling_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig] - # Autoscaling configuration for this cluster. - class ClusterConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected - # cluster. - # @!attribute [rw] kms_key_name - # @return [::String] - # Describes the Cloud KMS encryption key that will be used to protect the - # destination Bigtable cluster. The requirements for this key are: - # 1) The Cloud Bigtable service account associated with the project that - # contains this cluster must be granted the - # `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. - # 2) Only regional keys can be used and the region of the CMEK key must - # match the region of the cluster. - # Values are of the form - # `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` - class EncryptionConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible states of a cluster. - module State - # The state of the cluster could not be determined. - STATE_NOT_KNOWN = 0 - - # The cluster has been successfully created and is ready to serve requests. - READY = 1 - - # The cluster is currently being created, and may be destroyed - # if the creation process encounters an error. - # A cluster may not be able to serve requests while being created. - CREATING = 2 - - # The cluster is currently being resized, and may revert to its previous - # node count if the process encounters an error. - # A cluster is still capable of serving requests while being resized, - # but may exhibit performance as if its number of allocated nodes is - # between the starting and requested states. - RESIZING = 3 - - # The cluster has no backing nodes. The data (tables) still - # exist, but no operations can be performed on the cluster. - DISABLED = 4 - end - - # Possible node scaling factors of the clusters. Node scaling delivers better - # latency and more throughput by removing node boundaries. - module NodeScalingFactor - # No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. - NODE_SCALING_FACTOR_UNSPECIFIED = 0 - - # The cluster is running with a scaling factor of 1. - NODE_SCALING_FACTOR_1X = 1 - - # The cluster is running with a scaling factor of 2. - # All node count values must be in increments of 2 with this scaling factor - # enabled, otherwise an INVALID_ARGUMENT error will be returned. - NODE_SCALING_FACTOR_2X = 2 - end - end - - # A configuration object describing how Cloud Bigtable should treat traffic - # from a particular end user application. - # @!attribute [rw] name - # @return [::String] - # The unique name of the app profile. Values are of the form - # `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # @!attribute [rw] etag - # @return [::String] - # Strongly validated etag for optimistic concurrency control. Preserve the - # value returned from `GetAppProfile` when calling `UpdateAppProfile` to - # fail the request if there has been a modification in the mean time. The - # `update_mask` of the request need not include `etag` for this protection - # to apply. - # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and - # [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more - # details. - # @!attribute [rw] description - # @return [::String] - # Long form description of the use case for this AppProfile. - # @!attribute [rw] multi_cluster_routing_use_any - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny] - # Use a multi-cluster routing policy. - # - # Note: The following fields are mutually exclusive: `multi_cluster_routing_use_any`, `single_cluster_routing`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] single_cluster_routing - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting] - # Use a single-cluster routing policy. - # - # Note: The following fields are mutually exclusive: `single_cluster_routing`, `multi_cluster_routing_use_any`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] priority - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] - # This field has been deprecated in favor of `standard_isolation.priority`. - # If you set this field, `standard_isolation.priority` will be set instead. - # - # The priority of requests sent using this app profile. - # - # Note: The following fields are mutually exclusive: `priority`, `standard_isolation`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] standard_isolation - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::StandardIsolation] - # The standard options used for isolating this app profile's traffic from - # other use cases. - # - # Note: The following fields are mutually exclusive: `standard_isolation`, `priority`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_boost_isolation_read_only - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly] - # Specifies that this app profile is intended for read-only usage via the - # Data Boost feature. - # - # Note: The following fields are mutually exclusive: `data_boost_isolation_read_only`, `priority`, `standard_isolation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class AppProfile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Read/write requests are routed to the nearest cluster in the instance, and - # will fail over to the nearest cluster that is available in the event of - # transient errors or delays. Clusters in a region are considered - # equidistant. Choosing this option sacrifices read-your-writes consistency - # to improve availability. - # @!attribute [rw] cluster_ids - # @return [::Array<::String>] - # The set of clusters to route to. The order is ignored; clusters will be - # tried in order of distance. If left empty, all clusters are eligible. - # @!attribute [rw] row_affinity - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity] - # Row affinity sticky routing based on the row key of the request. - # Requests that span multiple rows are routed non-deterministically. - class MultiClusterRoutingUseAny - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # If enabled, Bigtable will route the request based on the row key of the - # request, rather than randomly. Instead, each row key will be assigned - # to a cluster, and will stick to that cluster. If clusters are added or - # removed, then this may affect which row keys stick to which clusters. - # To avoid this, users can use a cluster group to specify which clusters - # are to be used. In this case, new clusters that are not a part of the - # cluster group will not be routed to, and routing will be unaffected by - # the new cluster. Moreover, clusters specified in the cluster group cannot - # be deleted unless removed from the cluster group. - class RowAffinity - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Unconditionally routes all read/write requests to a specific cluster. - # This option preserves read-your-writes consistency but does not improve - # availability. - # @!attribute [rw] cluster_id - # @return [::String] - # The cluster to which read/write requests should be routed. - # @!attribute [rw] allow_transactional_writes - # @return [::Boolean] - # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are - # allowed by this app profile. It is unsafe to send these requests to - # the same table/row/column in multiple clusters. - class SingleClusterRouting - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Standard options for isolating this app profile's traffic from other use - # cases. - # @!attribute [rw] priority - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] - # The priority of requests sent using this app profile. - class StandardIsolation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data Boost is a serverless compute capability that lets you run - # high-throughput read jobs and queries on your Bigtable data, without - # impacting the performance of the clusters that handle your application - # traffic. Data Boost supports read-only use cases with single-cluster - # routing. - # @!attribute [rw] compute_billing_owner - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner] - # The Compute Billing Owner for this Data Boost App Profile. - class DataBoostIsolationReadOnly - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Compute Billing Owner specifies how usage should be accounted when using - # Data Boost. Compute Billing Owner also configures which Cloud Project is - # charged for relevant quota. - module ComputeBillingOwner - # Unspecified value. - COMPUTE_BILLING_OWNER_UNSPECIFIED = 0 - - # The host Cloud Project containing the targeted Bigtable Instance / - # Table pays for compute. - HOST_PAYS = 1 - end - end - - # Possible priorities for an app profile. Note that higher priority writes - # can sometimes queue behind lower priority writes to the same tablet, as - # writes must be strictly sequenced in the durability log. - module Priority - # Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. - PRIORITY_UNSPECIFIED = 0 - - PRIORITY_LOW = 1 - - PRIORITY_MEDIUM = 2 - - PRIORITY_HIGH = 3 - end - end - - # A tablet is a defined by a start and end key and is explained in - # https://cloud.google.com/bigtable/docs/overview#architecture and - # https://cloud.google.com/bigtable/docs/performance#optimization. - # A Hot tablet is a tablet that exhibits high average cpu usage during the time - # interval from start time to end time. - # @!attribute [rw] name - # @return [::String] - # The unique name of the hot tablet. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. - # @!attribute [rw] table_name - # @return [::String] - # Name of the table that contains the tablet. Values are of the form - # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The start time of the hot tablet. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The end time of the hot tablet. - # @!attribute [rw] start_key - # @return [::String] - # Tablet Start Key (inclusive). - # @!attribute [rw] end_key - # @return [::String] - # Tablet End Key (inclusive). - # @!attribute [r] node_cpu_usage_percent - # @return [::Float] - # Output only. The average CPU usage spent by a node on this tablet over the - # start_time to end_time time range. The percentage is the amount of CPU used - # by the node to serve the tablet, from 0% (tablet was not interacted with) - # to 100% (the node spent all cycles serving the hot tablet). - class HotTablet - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A SQL logical view object that can be referenced in SQL queries. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name of the logical view. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - # @!attribute [rw] query - # @return [::String] - # Required. The logical view's select query. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this logical view. - # This may be sent on update requests to ensure that the client has an - # up-to-date value before proceeding. The server returns an ABORTED error on - # a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Optional. Set to true to make the LogicalView protected against deletion. - class LogicalView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A materialized view object that can be referenced in SQL queries. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name of the materialized view. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - # @!attribute [rw] query - # @return [::String] - # Required. Immutable. The materialized view's select query. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this materialized view. - # This may be sent on update requests to ensure that the client has an - # up-to-date value before proceeding. The server returns an ABORTED error on - # a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the MaterializedView protected against deletion. - class MaterializedView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb deleted file mode 100644 index a0aaeed8b974..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb +++ /dev/null @@ -1,741 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Information about a table restore. - # @!attribute [rw] source_type - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] - # The type of the restore source. - # @!attribute [rw] backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # Information about the backup used to restore the table. The backup - # may no longer exist. - class RestoreInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Change stream configuration. - # @!attribute [rw] retention_period - # @return [::Google::Protobuf::Duration] - # How long the change stream should be retained. Change stream data older - # than the retention period will not be returned when reading the change - # stream from the table. - # Values must be at least 1 day and at most 7 days, and will be truncated to - # microsecond granularity. - class ChangeStreamConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A collection of user data indexed by row, column, and timestamp. - # Each table is served using the resources of its parent cluster. - # @!attribute [rw] name - # @return [::String] - # The unique name of the table. Values are of the form - # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` - # @!attribute [r] cluster_states - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState}] - # Output only. Map from cluster ID to per-cluster table state. - # If it could not be determined whether or not the table has data in a - # particular cluster (for example, if its zone is unavailable), then - # there will be an entry for the cluster with UNKNOWN `replication_status`. - # Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - # @!attribute [rw] column_families - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::ColumnFamily}] - # The column families configured for this table, mapped by column family ID. - # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` - # @!attribute [rw] granularity - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::TimestampGranularity] - # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored - # in this table. Timestamps not matching the granularity will be rejected. If - # unspecified at creation time, the value will be set to `MILLIS`. Views: - # `SCHEMA_VIEW`, `FULL`. - # @!attribute [r] restore_info - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreInfo] - # Output only. If this table was restored from another data source (e.g. a - # backup), this field will be populated with information about the restore. - # @!attribute [rw] change_stream_config - # @return [::Google::Cloud::Bigtable::Admin::V2::ChangeStreamConfig] - # If specified, enable the change stream on this table. - # Otherwise, the change stream is disabled and the change stream is not - # retained. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the table protected against data loss. i.e. deleting - # the following resources through Admin APIs are prohibited: - # - # * The table. - # * The column families in the table. - # * The instance containing the table. - # - # Note one can still delete the data stored in the table through Data APIs. - # @!attribute [rw] automated_backup_policy - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::AutomatedBackupPolicy] - # If specified, automated backups are enabled for this table. - # Otherwise, automated backups are disabled. - # @!attribute [rw] tiered_storage_config - # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageConfig] - # Rules to specify what data is stored in each storage tier. - # Different tiers store data differently, providing different trade-offs - # between cost and performance. Different parts of a table can be stored - # separately on different tiers. - # If a config is specified, tiered storage is enabled for this table. - # Otherwise, tiered storage is disabled. - # Only SSD instances can configure tiered storage. - # @!attribute [rw] row_key_schema - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] - # The row key schema for this table. The schema is used to decode the raw row - # key bytes into a structured format. The order of field declarations in this - # schema is important, as it reflects how the raw row key bytes are - # structured. Currently, this only affects how the key is read via a - # GoogleSQL query from the ExecuteQuery API. - # - # For a SQL query, the _key column is still read as raw bytes. But queries - # can reference the key fields by name, which will be decoded from _key using - # provided type and encoding. Queries that reference key fields will fail if - # they encounter an invalid row key. - # - # For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the - # following schema: - # { - # fields { - # field_name: "id" - # type { string { encoding: utf8_bytes \\{} } } - # } - # fields { - # field_name: "date" - # type { string { encoding: utf8_bytes \\{} } } - # } - # fields { - # field_name: "product_code" - # type { int64 { encoding: big_endian_bytes \\{} } } - # } - # encoding { delimited_bytes { delimiter: "#" } } - # } - # - # The decoded key parts would be: - # id = "some_id", date = "2024-04-30", product_code = 1245427 - # The query "SELECT _key, product_code FROM table" will return two columns: - # /------------------------------------------------------\ - # | _key | product_code | - # | --------------------------------------|--------------| - # | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | - # \------------------------------------------------------/ - # - # The schema has the following invariants: - # (1) The decoded field values are order-preserved. For read, the field - # values will be decoded in sorted mode from the raw bytes. - # (2) Every field in the schema must specify a non-empty name. - # (3) Every field must specify a type with an associated encoding. The type - # is limited to scalar types only: Array, Map, Aggregate, and Struct are not - # allowed. - # (4) The field names must not collide with existing column family - # names and reserved keywords "_key" and "_timestamp". - # - # The following update operations are allowed for row_key_schema: - # - Update from an empty schema to a new schema. - # - Remove the existing schema. This operation requires setting the - # `ignore_warnings` flag to `true`, since it might be a backward - # incompatible change. Without the flag, the update request will fail with - # an INVALID_ARGUMENT error. - # Any other row key schema update operation (e.g. update existing schema - # columns names or types) is currently unsupported. - class Table - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The state of a table's data in a particular cluster. - # @!attribute [r] replication_state - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState::ReplicationState] - # Output only. The state of replication for the table in this cluster. - # @!attribute [r] encryption_info - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo>] - # Output only. The encryption information for the table in this cluster. - # If the encryption key protecting this resource is customer managed, then - # its version can be rotated in Cloud Key Management Service (Cloud KMS). - # The primary version of the key and its status will be reflected here when - # changes propagate from Cloud KMS. - class ClusterState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Table replication states. - module ReplicationState - # The replication state of the table is unknown in this cluster. - STATE_NOT_KNOWN = 0 - - # The cluster was recently created, and the table must finish copying - # over pre-existing data from other clusters before it can begin - # receiving live replication updates and serving Data API requests. - INITIALIZING = 1 - - # The table is temporarily unable to serve Data API requests from this - # cluster due to planned internal maintenance. - PLANNED_MAINTENANCE = 2 - - # The table is temporarily unable to serve Data API requests from this - # cluster due to unplanned or emergency maintenance. - UNPLANNED_MAINTENANCE = 3 - - # The table can serve Data API requests from this cluster. Depending on - # replication delay, reads may not immediately reflect the state of the - # table in other clusters. - READY = 4 - - # The table is fully created and ready for use after a restore, and is - # being optimized for performance. When optimizations are complete, the - # table will transition to `READY` state. - READY_OPTIMIZING = 5 - end - end - - # Defines an automated backup policy for a table - # @!attribute [rw] retention_period - # @return [::Google::Protobuf::Duration] - # Required. How long the automated backups should be retained. Values must - # be at least 3 days and at most 90 days. - # @!attribute [rw] frequency - # @return [::Google::Protobuf::Duration] - # How frequently automated backups should occur. The only supported value - # at this time is 24 hours. An undefined frequency is treated as 24 hours. - # @!attribute [rw] locations - # @return [::Array<::String>] - # Optional. A list of Cloud Bigtable zones where automated backups are - # allowed to be created. If empty, automated backups will be created in all - # zones of the instance. Locations are in the format - # `projects/{project}/locations/{zone}`. - # This field can only set for tables in Enterprise Plus instances. - class AutomatedBackupPolicy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState] - class ClusterStatesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - class ColumnFamiliesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible timestamp granularities to use when keeping multiple versions - # of data in a table. - module TimestampGranularity - # The user did not specify a granularity. Should not be returned. - # When specified during table creation, MILLIS will be used. - TIMESTAMP_GRANULARITY_UNSPECIFIED = 0 - - # The table keeps data versioned at a granularity of 1ms. - MILLIS = 1 - end - - # Defines a view over a table's fields. - module View - # Uses the default view for each method as documented in its request. - VIEW_UNSPECIFIED = 0 - - # Only populates `name`. - NAME_ONLY = 1 - - # Only populates `name` and fields related to the table's schema. - SCHEMA_VIEW = 2 - - # Only populates `name` and fields related to the table's replication - # state. - REPLICATION_VIEW = 3 - - # Only populates `name` and fields related to the table's encryption state. - ENCRYPTION_VIEW = 5 - - # Populates all fields. - FULL = 4 - end - end - - # AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users - # can configure access to each Authorized View independently from the table and - # use the existing Data APIs to access the subset of data. - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of this AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - # @!attribute [rw] subset_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::SubsetView] - # An AuthorizedView permitting access to an explicit subset of a Table. - # @!attribute [rw] etag - # @return [::String] - # The etag for this AuthorizedView. - # If this is provided on update, it must match the server's etag. The server - # returns ABORTED error on a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the AuthorizedView protected against deletion. - # The parent Table and containing Instance cannot be deleted if an - # AuthorizedView has this bit set. - class AuthorizedView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Subsets of a column family that are included in this AuthorizedView. - # @!attribute [rw] qualifiers - # @return [::Array<::String>] - # Individual exact column qualifiers to be included in the AuthorizedView. - # @!attribute [rw] qualifier_prefixes - # @return [::Array<::String>] - # Prefixes for qualifiers to be included in the AuthorizedView. Every - # qualifier starting with one of these prefixes is included in the - # AuthorizedView. To provide access to all qualifiers, include the empty - # string as a prefix - # (""). - class FamilySubsets - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a simple AuthorizedView that is a subset of the underlying Table. - # @!attribute [rw] row_prefixes - # @return [::Array<::String>] - # Row prefixes to be included in the AuthorizedView. - # To provide access to all rows, include the empty string as a prefix (""). - # @!attribute [rw] family_subsets - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets}] - # Map from column family name to the columns in this family to be included - # in the AuthorizedView. - class SubsetView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets] - class FamilySubsetsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Defines a subset of an AuthorizedView's fields. - module ResponseView - # Uses the default view for each method as documented in the request. - RESPONSE_VIEW_UNSPECIFIED = 0 - - # Only populates `name`. - NAME_ONLY = 1 - - # Only populates the AuthorizedView's basic metadata. This includes: - # name, deletion_protection, etag. - BASIC = 2 - - # Populates every fields. - FULL = 3 - end - end - - # A set of columns within a table which share a common configuration. - # @!attribute [rw] gc_rule - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule] - # Garbage collection rule specified as a protobuf. - # Must serialize to at most 500 bytes. - # - # NOTE: Garbage collection executes opportunistically in the background, and - # so it's possible for reads to return a cell even if it matches the active - # GC expression for its family. - # @!attribute [rw] value_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of data stored in each of this family's cell values, including its - # full encoding. If omitted, the family only serves raw untyped bytes. - # - # For now, only the `Aggregate` type is supported. - # - # `Aggregate` can only be set at family creation and is immutable afterwards. - # - # - # If `value_type` is `Aggregate`, written data must be compatible with: - # * `value_type.input_type` for `AddInput` mutations - class ColumnFamily - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rule for determining which cells to delete during garbage collection. - # @!attribute [rw] max_num_versions - # @return [::Integer] - # Delete all cells in a column except the most recent N. - # - # Note: The following fields are mutually exclusive: `max_num_versions`, `max_age`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] max_age - # @return [::Google::Protobuf::Duration] - # Delete cells in a column older than the given age. - # Values must be at least one millisecond, and will be truncated to - # microsecond granularity. - # - # Note: The following fields are mutually exclusive: `max_age`, `max_num_versions`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] intersection - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Intersection] - # Delete cells that would be deleted by every nested rule. - # - # Note: The following fields are mutually exclusive: `intersection`, `max_num_versions`, `max_age`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] union - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Union] - # Delete cells that would be deleted by any nested rule. - # - # Note: The following fields are mutually exclusive: `union`, `max_num_versions`, `max_age`, `intersection`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class GcRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A GcRule which deletes cells matching all of the given rules. - # @!attribute [rw] rules - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] - # Only delete cells which would be deleted by every element of `rules`. - class Intersection - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A GcRule which deletes cells matching any of the given rules. - # @!attribute [rw] rules - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] - # Delete cells which would be deleted by any element of `rules`. - class Union - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Encryption information for a given resource. - # If this resource is protected with customer managed encryption, the in-use - # Cloud Key Management Service (Cloud KMS) key version is specified along with - # its status. - # @!attribute [r] encryption_type - # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo::EncryptionType] - # Output only. The type of encryption used to protect this resource. - # @!attribute [r] encryption_status - # @return [::Google::Rpc::Status] - # Output only. The status of encrypt/decrypt calls on underlying data for - # this resource. Regardless of status, the existing data is always encrypted - # at rest. - # @!attribute [r] kms_key_version - # @return [::String] - # Output only. The version of the Cloud KMS key specified in the parent - # cluster that is in use for the data underlying this table. - class EncryptionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible encryption types for a resource. - module EncryptionType - # Encryption type was not specified, though data at rest remains encrypted. - ENCRYPTION_TYPE_UNSPECIFIED = 0 - - # The data backing this resource is encrypted at rest with a key that is - # fully managed by Google. No key version or status will be populated. - # This is the default state. - GOOGLE_DEFAULT_ENCRYPTION = 1 - - # The data backing this resource is encrypted at rest with a key that is - # managed by the customer. - # The in-use version of the key and its status are populated for - # CMEK-protected tables. - # CMEK-protected backups are pinned to the key version that was in use at - # the time the backup was taken. This key version is populated but its - # status is not tracked and is reported as `UNKNOWN`. - CUSTOMER_MANAGED_ENCRYPTION = 2 - end - end - - # A snapshot of a table at a particular time. A snapshot can be used as a - # checkpoint for data restoration or a data source for a new table. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # The unique name of the snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # @!attribute [r] source_table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Output only. The source table at the time the snapshot was taken. - # @!attribute [r] data_size_bytes - # @return [::Integer] - # Output only. The size of the data in the source table at the time the - # snapshot was taken. In some cases, this value may be computed - # asynchronously via a background process and a placeholder of 0 will be used - # in the meantime. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time when the snapshot is created. - # @!attribute [rw] delete_time - # @return [::Google::Protobuf::Timestamp] - # The time when the snapshot will be deleted. The maximum amount of time a - # snapshot can stay active is 365 days. If 'ttl' is not specified, - # the default maximum of 365 days will be used. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot::State] - # Output only. The current state of the snapshot. - # @!attribute [rw] description - # @return [::String] - # Description of the snapshot. - class Snapshot - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible states of a snapshot. - module State - # The state of the snapshot could not be determined. - STATE_NOT_KNOWN = 0 - - # The snapshot has been successfully created and can serve all requests. - READY = 1 - - # The snapshot is currently being created, and may be destroyed if the - # creation process encounters an error. A snapshot may not be restored to a - # table while it is being created. - CREATING = 2 - end - end - - # A backup of a Cloud Bigtable table. - # @!attribute [rw] name - # @return [::String] - # A globally unique identifier for the backup which cannot be - # changed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/ - # backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - # The final segment of the name must be between 1 and 50 characters - # in length. - # - # The backup is stored in the cluster identified by the prefix of the backup - # name of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] source_table - # @return [::String] - # Required. Immutable. Name of the table from which this backup was created. - # This needs to be in the same instance as the backup. Values are of the form - # `projects/{project}/instances/{instance}/tables/{source_table}`. - # @!attribute [r] source_backup - # @return [::String] - # Output only. Name of the backup from which this backup was copied. If a - # backup is not created by copying a backup, this field will be empty. Values - # are of the form: - # projects//instances//clusters//backups/ - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # Required. The expiration time of the backup. - # When creating a backup or updating its `expire_time`, the value must be - # greater than the backup creation time by: - # - At least 6 hours - # - At most 90 days - # - # Once the `expire_time` has passed, Cloud Bigtable will delete the backup. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. `start_time` is the time that the backup was started - # (i.e. approximately the time the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup} - # request is received). The row data in this backup will be no older than - # this timestamp. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. `end_time` is the time that the backup was finished. The row - # data in the backup will be no newer than this timestamp. - # @!attribute [r] size_bytes - # @return [::Integer] - # Output only. Size of the backup in bytes. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State] - # Output only. The current state of the backup. - # @!attribute [r] encryption_info - # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo] - # Output only. The encryption information for the backup. - # @!attribute [rw] backup_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType] - # Indicates the backup type of the backup. - # @!attribute [rw] hot_to_standard_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the hot backup will be converted to a standard backup. - # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the - # hot backup to a standard backup. This value must be greater than the backup - # creation time by: - # - At least 24 hours - # - # This field only applies for hot backups. When creating or updating a - # standard backup, attempting to set this field will fail the request. - class Backup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the current state of the backup. - module State - # Not specified. - STATE_UNSPECIFIED = 0 - - # The pending backup is still being created. Operations on the - # backup may fail with `FAILED_PRECONDITION` in this state. - CREATING = 1 - - # The backup is complete and ready for use. - READY = 2 - end - - # The type of the backup. - module BackupType - # Not specified. - BACKUP_TYPE_UNSPECIFIED = 0 - - # The default type for Cloud Bigtable managed backups. Supported for - # backups created in both HDD and SSD instances. Requires optimization when - # restored to a table in an SSD instance. - STANDARD = 1 - - # A backup type with faster restore to SSD performance. Only supported for - # backups created in SSD instances. A new SSD table restored from a hot - # backup reaches production performance more quickly than a standard - # backup. - HOT = 2 - end - end - - # Information about a backup. - # @!attribute [r] backup - # @return [::String] - # Output only. Name of the backup. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time that the backup was started. Row data in the backup - # will be no older than this timestamp. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. This time that the backup was finished. Row data in the - # backup will be no newer than this timestamp. - # @!attribute [r] source_table - # @return [::String] - # Output only. Name of the table the backup was created from. - # @!attribute [r] source_backup - # @return [::String] - # Output only. Name of the backup from which this backup was copied. If a - # backup is not created by copying a backup, this field will be empty. Values - # are of the form: - # projects//instances//clusters//backups/ - class BackupInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Config for tiered storage. - # A valid config must have a valid TieredStorageRule. Otherwise the whole - # TieredStorageConfig must be unset. - # By default all data is stored in the SSD tier (only SSD instances can - # configure tiered storage). - # @!attribute [rw] infrequent_access - # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageRule] - # Rule to specify what data is stored in the infrequent access(IA) tier. - # The IA tier allows storing more data per node with reduced performance. - class TieredStorageConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rule to specify what data is stored in a storage tier. - # @!attribute [rw] include_if_older_than - # @return [::Google::Protobuf::Duration] - # Include cells older than the given age. - # For the infrequent access tier, this value must be at least 30 days. - class TieredStorageRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a protobuf schema. - # @!attribute [rw] proto_descriptors - # @return [::String] - # Required. Contains a protobuf-serialized - # [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), - # which could include multiple proto files. - # To generate it, [install](https://grpc.io/docs/protoc-installation/) and - # run `protoc` with - # `--include_imports` and `--descriptor_set_out`. For example, to generate - # for moon/shot/app.proto, run - # ``` - # $protoc --proto_path=/app_path --proto_path=/lib_path \ - # --include_imports \ - # --descriptor_set_out=descriptors.pb \ - # moon/shot/app.proto - # ``` - # For more details, see protobuffer [self - # description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). - class ProtoSchema - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A named collection of related schemas. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] proto_schema - # @return [::Google::Cloud::Bigtable::Admin::V2::ProtoSchema] - # Schema for Protobufs. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this schema bundle. - # This may be sent on update and delete requests to ensure the - # client has an up-to-date value before proceeding. The server - # returns an ABORTED error on a mismatched etag. - class SchemaBundle - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the type of the restore source. - module RestoreSourceType - # No restore associated. - RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 - - # A backup was used as the source of the restore. - BACKUP = 1 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb deleted file mode 100644 index 8a598f02b9ff..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb +++ /dev/null @@ -1,575 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # `Type` represents the type of data that is written to, read from, or stored - # in Bigtable. It is heavily based on the GoogleSQL standard to help maintain - # familiarity and consistency across products and features. - # - # For compatibility with Bigtable's existing untyped APIs, each `Type` includes - # an `Encoding` which describes how to convert to or from the underlying data. - # - # Each encoding can operate in one of two modes: - # - # - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` - # if and only if `X <= Y`. This is useful anywhere sort order is important, - # for example when encoding keys. - # - Distinct: In this mode, Bigtable guarantees that if `X != Y` then - # `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For - # example, both "\\{'foo': '1', 'bar': '2'}" and "\\{'bar': '2', 'foo': '1'}" - # are valid encodings of the same JSON value. - # - # The API clearly documents which mode is used wherever an encoding can be - # configured. Each encoding also documents which values are supported in which - # modes. For example, when encoding INT64 as a numeric STRING, negative numbers - # cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but - # `STRING("-00001") > STRING("00001")`. - # @!attribute [rw] bytes_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] - # Bytes - # - # Note: The following fields are mutually exclusive: `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] string_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String] - # String - # - # Note: The following fields are mutually exclusive: `string_type`, `bytes_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] int64_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64] - # Int64 - # - # Note: The following fields are mutually exclusive: `int64_type`, `bytes_type`, `string_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float32_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float32] - # Float32 - # - # Note: The following fields are mutually exclusive: `float32_type`, `bytes_type`, `string_type`, `int64_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float64_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float64] - # Float64 - # - # Note: The following fields are mutually exclusive: `float64_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bool] - # Bool - # - # Note: The following fields are mutually exclusive: `bool_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] timestamp_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp] - # Timestamp - # - # Note: The following fields are mutually exclusive: `timestamp_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] date_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Date] - # Date - # - # Note: The following fields are mutually exclusive: `date_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] aggregate_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate] - # Aggregate - # - # Note: The following fields are mutually exclusive: `aggregate_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] struct_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] - # Struct - # - # Note: The following fields are mutually exclusive: `struct_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] array_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Array] - # Array - # - # Note: The following fields are mutually exclusive: `array_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] map_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Map] - # Map - # - # Note: The following fields are mutually exclusive: `map_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] proto_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Proto] - # Proto - # - # Note: The following fields are mutually exclusive: `proto_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] enum_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Enum] - # Enum - # - # Note: The following fields are mutually exclusive: `enum_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Type - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Bytes - # Values of type `Bytes` are stored in `Value.bytes_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding] - # The encoding to use when converting to or from lower level types. - class Bytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] raw - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding::Raw] - # Use `Raw` encoding. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Leaves the value as-is. - # - # Sorted mode: all values are supported. - # - # Distinct mode: all values are supported. - class Raw - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # String - # Values of type `String` are stored in `Value.string_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding] - # The encoding to use when converting to or from lower level types. - class String - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] utf8_raw - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Raw] - # Deprecated: if set, converts to an empty `utf8_bytes`. - # - # Note: The following fields are mutually exclusive: `utf8_raw`, `utf8_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] utf8_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Bytes] - # Use `Utf8Bytes` encoding. - # - # Note: The following fields are mutually exclusive: `utf8_bytes`, `utf8_raw`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Deprecated: prefer the equivalent `Utf8Bytes`. - # @deprecated This message is deprecated and may be removed in the next major version update. - class Utf8Raw - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UTF-8 encoding. - # - # Sorted mode: - # - All values are supported. - # - Code point order is preserved. - # - # Distinct mode: all values are supported. - # - # Compatible with: - # - # - BigQuery `TEXT` encoding - # - HBase `Bytes.toBytes` - # - Java `String#getBytes(StandardCharsets.UTF_8)` - class Utf8Bytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # Int64 - # Values of type `Int64` are stored in `Value.int_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] - # The encoding to use when converting to or from lower level types. - class Int64 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] big_endian_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::BigEndianBytes] - # Use `BigEndianBytes` encoding. - # - # Note: The following fields are mutually exclusive: `big_endian_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ordered_code_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::OrderedCodeBytes] - # Use `OrderedCodeBytes` encoding. - # - # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `big_endian_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Encodes the value as an 8-byte big-endian two's complement value. - # - # Sorted mode: non-negative values are supported. - # - # Distinct mode: all values are supported. - # - # Compatible with: - # - # - BigQuery `BINARY` encoding - # - HBase `Bytes.toBytes` - # - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` - # @!attribute [rw] bytes_type - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] - # Deprecated: ignored if set. - class BigEndianBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Encodes the value in a variable length binary format of up to 10 bytes. - # Values that are closer to zero use fewer bytes. - # - # Sorted mode: all values are supported. - # - # Distinct mode: all values are supported. - class OrderedCodeBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # bool - # Values of type `Bool` are stored in `Value.bool_value`. - class Bool - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Float32 - # Values of type `Float32` are stored in `Value.float_value`. - class Float32 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Float64 - # Values of type `Float64` are stored in `Value.float_value`. - class Float64 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Timestamp - # Values of type `Timestamp` are stored in `Value.timestamp_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp::Encoding] - # The encoding to use when converting to or from lower level types. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] unix_micros_int64 - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] - # Encodes the number of microseconds since the Unix epoch using the - # given `Int64` encoding. Values must be microsecond-aligned. - # - # Compatible with: - # - # - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Date - # Values of type `Date` are stored in `Value.date_value`. - class Date - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A structured data value, consisting of fields which map to dynamically - # typed values. - # Values of type `Struct` are stored in `Value.array_value` where entries are - # in the same order and number as `field_types`. - # @!attribute [rw] fields - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Field>] - # The names and types of the fields in this struct. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding] - # The encoding to use when converting to or from lower level types. - class Struct - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A struct field and its type. - # @!attribute [rw] field_name - # @return [::String] - # The field name (optional). Fields without a `field_name` are considered - # anonymous and cannot be referenced by name. - # @!attribute [rw] type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of values in this field. - class Field - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rules used to convert to or from lower level types. - # @!attribute [rw] singleton - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::Singleton] - # Use `Singleton` encoding. - # - # Note: The following fields are mutually exclusive: `singleton`, `delimited_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delimited_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::DelimitedBytes] - # Use `DelimitedBytes` encoding. - # - # Note: The following fields are mutually exclusive: `delimited_bytes`, `singleton`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ordered_code_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::OrderedCodeBytes] - # User `OrderedCodeBytes` encoding. - # - # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `singleton`, `delimited_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Uses the encoding of `fields[0].type` as-is. - # Only valid if `fields.size == 1`. - class Singleton - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Fields are encoded independently and concatenated with a configurable - # `delimiter` in between. - # - # A struct with no fields defined is encoded as a single `delimiter`. - # - # Sorted mode: - # - # - Fields are encoded in sorted mode. - # - Encoded field values must not contain any bytes <= `delimiter[0]` - # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - # - # Distinct mode: - # - # - Fields are encoded in distinct mode. - # - Encoded field values must not contain `delimiter[0]`. - # @!attribute [rw] delimiter - # @return [::String] - # Byte sequence used to delimit concatenated fields. The delimiter must - # contain at least 1 character and at most 50 characters. - class DelimitedBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Fields are encoded independently and concatenated with the fixed byte - # pair \\{0x00, 0x01} in between. - # - # Any null (0x00) byte in an encoded field is replaced by the fixed byte - # pair \\{0x00, 0xFF}. - # - # Fields that encode to the empty string "" have special handling: - # - # - If *every* field encodes to "", or if the STRUCT has no fields - # defined, then the STRUCT is encoded as the fixed byte pair - # \\{0x00, 0x00}. - # - Otherwise, the STRUCT only encodes until the last non-empty field, - # omitting any trailing empty fields. Any empty fields that aren't - # omitted are replaced with the fixed byte pair \\{0x00, 0x00}. - # - # Examples: - # - # - STRUCT() -> "\00\00" - # - STRUCT("") -> "\00\00" - # - STRUCT("", "") -> "\00\00" - # - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" - # - STRUCT("A", "") -> "A" - # - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" - # - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" - # - # - # Since null bytes are always escaped, this encoding can cause size - # blowup for encodings like `Int64.BigEndianBytes` that are likely to - # produce many such bytes. - # - # Sorted mode: - # - # - Fields are encoded in sorted mode. - # - All values supported by the field encodings are allowed - # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - # - # Distinct mode: - # - # - Fields are encoded in distinct mode. - # - All values supported by the field encodings are allowed. - class OrderedCodeBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # A protobuf message type. - # Values of type `Proto` are stored in `Value.bytes_value`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # The ID of the schema bundle that this proto is defined in. - # @!attribute [rw] message_name - # @return [::String] - # The fully qualified name of the protobuf message, including package. In - # the format of "foo.bar.Message". - class Proto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A protobuf enum type. - # Values of type `Enum` are stored in `Value.int_value`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # The ID of the schema bundle that this enum is defined in. - # @!attribute [rw] enum_name - # @return [::String] - # The fully qualified name of the protobuf enum message, including package. - # In the format of "foo.bar.EnumMessage". - class Enum - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # An ordered list of elements of a given type. - # Values of type `Array` are stored in `Value.array_value`. - # @!attribute [rw] element_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of the elements in the array. This must not be `Array`. - class Array - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A mapping of keys to values of a given type. - # Values of type `Map` are stored in a `Value.array_value` where each entry - # is another `Value.array_value` with two elements (the key and the value, - # in that order). - # Normally encoded Map values won't have repeated keys, however, clients are - # expected to handle the case in which they do. If the same key appears - # multiple times, the _last_ value takes precedence. - # @!attribute [rw] key_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of a map key. - # Only `Bytes`, `String`, and `Int64` are allowed as key types. - # @!attribute [rw] value_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of the values in a map. - class Map - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A value that combines incremental updates into a summarized value. - # - # Data is never directly written or read using type `Aggregate`. Writes will - # provide either the `input_type` or `state_type`, and reads will always - # return the `state_type` . - # @!attribute [rw] input_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # Type of the inputs that are accumulated by this `Aggregate`, which must - # specify a full encoding. - # Use `AddInput` mutations to accumulate new inputs. - # @!attribute [r] state_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # Output only. Type that holds the internal accumulator state for the - # `Aggregate`. This is a function of the `input_type` and `aggregator` - # chosen, and will always specify a full encoding. - # @!attribute [rw] sum - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Sum] - # Sum aggregator. - # - # Note: The following fields are mutually exclusive: `sum`, `hllpp_unique_count`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] hllpp_unique_count - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount] - # HyperLogLogPlusPlusUniqueCount aggregator. - # - # Note: The following fields are mutually exclusive: `hllpp_unique_count`, `sum`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] max - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Max] - # Max aggregator. - # - # Note: The following fields are mutually exclusive: `max`, `sum`, `hllpp_unique_count`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] min - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Min] - # Min aggregator. - # - # Note: The following fields are mutually exclusive: `min`, `sum`, `hllpp_unique_count`, `max`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Aggregate - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Computes the sum of the input values. - # Allowed input: `Int64` - # State: same as input - class Sum - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes the max of the input values. - # Allowed input: `Int64` - # State: same as input - class Max - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes the min of the input values. - # Allowed input: `Int64` - # State: same as input - class Min - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes an approximate unique count over the input values. When using - # raw data as input, be careful to use a consistent encoding. Otherwise - # the same value encoded differently could count more than once, or two - # distinct values could count as identical. - # Input: Any, or omit for Raw - # State: TBD - # Special state conversions: `Int64` (the unique count estimate) - class HyperLogLogPlusPlusUniqueCount - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb deleted file mode 100644 index 5445c77f8258..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb +++ /dev/null @@ -1,87 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # Request message for `SetIamPolicy` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] policy - # @return [::Google::Iam::V1::Policy] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - class SetIamPolicyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for `GetIamPolicy` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] options - # @return [::Google::Iam::V1::GetPolicyOptions] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - class GetIamPolicyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for `TestIamPermissions` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] permissions - # @return [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - class TestIamPermissionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for `TestIamPermissions` method. - # @!attribute [rw] permissions - # @return [::Array<::String>] - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - class TestIamPermissionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb deleted file mode 100644 index 60713d995b86..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # Encapsulates settings provided to GetIamPolicy. - # @!attribute [rw] requested_policy_version - # @return [::Integer] - # Optional. The maximum policy version that will be used to format the - # policy. - # - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # - # Requests for policies with any conditional role bindings must specify - # version 3. Policies with no conditional role bindings may specify any valid - # value or leave the field unset. - # - # The policy in the response might use the policy version that you specified, - # or it might use a lower policy version. For example, if you specify version - # 3, but the policy has no conditional role bindings, the response uses - # version 1. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - class GetPolicyOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb deleted file mode 100644 index 999575b797df..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb +++ /dev/null @@ -1,426 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # - # - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members`, or principals, to a single `role`. Principals can be user - # accounts, service accounts, Google groups, and domains (such as G Suite). A - # `role` is a named list of permissions; each `role` can be an IAM predefined - # role or a user-created custom role. - # - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - # - # **JSON example:** - # - # ``` - # { - # "bindings": [ - # { - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # }, - # { - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": { - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", - # } - # } - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # } - # ``` - # - # **YAML example:** - # - # ``` - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # etag: BwWWja0YfJA= - # version: 3 - # ``` - # - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). - # @!attribute [rw] version - # @return [::Integer] - # Specifies the format of the policy. - # - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - # @!attribute [rw] bindings - # @return [::Array<::Google::Iam::V1::Binding>] - # Associates a list of `members`, or principals, with a `role`. Optionally, - # may specify a `condition` that determines how and when the `bindings` are - # applied. Each of the `bindings` must contain at least one principal. - # - # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - # of these principals can be Google groups. Each occurrence of a principal - # counts towards these limits. For example, if the `bindings` grant 50 - # different roles to `user:alice@example.com`, and not to any other - # principal, then you can add another 1,450 principals to the `bindings` in - # the `Policy`. - # @!attribute [rw] audit_configs - # @return [::Array<::Google::Iam::V1::AuditConfig>] - # Specifies cloud audit logging configuration for this policy. - # @!attribute [rw] etag - # @return [::String] - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - class Policy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Associates `members`, or principals, with a `role`. - # @!attribute [rw] role - # @return [::String] - # Role that is assigned to the list of `members`, or principals. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # @!attribute [rw] members - # @return [::Array<::String>] - # Specifies the principals requesting access for a Google Cloud resource. - # `members` can have the following values: - # - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # - # * `user:{emailid}`: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # - # - # * `serviceAccount:{emailid}`: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # - # * `group:{emailid}`: An email address that represents a Google group. - # For example, `admins@example.com`. - # - # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:{emailid}` and the recovered user - # retains the role in the binding. - # - # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:{emailid}` and the undeleted service account retains the - # role in the binding. - # - # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:{emailid}` and the - # recovered group retains the role in the binding. - # - # - # * `domain:{domain}`: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. - # @!attribute [rw] condition - # @return [::Google::Type::Expr] - # The condition that is associated with this binding. - # - # If the condition evaluates to `true`, then this binding applies to the - # current request. - # - # If the condition evaluates to `false`, then this binding does not apply to - # the current request. However, a different role binding might grant the same - # role to one or more of the principals in this binding. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - class Binding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # - # Example Policy with multiple AuditConfigs: - # - # { - # "audit_configs": [ - # { - # "service": "allServices", - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # }, - # { - # "log_type": "DATA_WRITE" - # }, - # { - # "log_type": "ADMIN_READ" - # } - # ] - # }, - # { - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ" - # }, - # { - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # } - # ] - # } - # ] - # } - # - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts `jose@example.com` from DATA_READ logging, and - # `aliya@example.com` from DATA_WRITE logging. - # @!attribute [rw] service - # @return [::String] - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # @!attribute [rw] audit_log_configs - # @return [::Array<::Google::Iam::V1::AuditLogConfig>] - # The configuration for logging of each type of permission. - class AuditConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Provides the configuration for logging a type of permissions. - # Example: - # - # { - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # }, - # { - # "log_type": "DATA_WRITE" - # } - # ] - # } - # - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. - # @!attribute [rw] log_type - # @return [::Google::Iam::V1::AuditLogConfig::LogType] - # The log type that this config enables. - # @!attribute [rw] exempted_members - # @return [::Array<::String>] - # Specifies the identities that do not cause logging for this type of - # permission. - # Follows the same format of - # [Binding.members][google.iam.v1.Binding.members]. - class AuditLogConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The list of valid permission types for which logging can be configured. - # Admin writes are always logged, and are not configurable. - module LogType - # Default case. Should never be this. - LOG_TYPE_UNSPECIFIED = 0 - - # Admin reads. Example: CloudIAM getIamPolicy - ADMIN_READ = 1 - - # Data writes. Example: CloudSQL Users create - DATA_WRITE = 2 - - # Data reads. Example: CloudSQL Users list - DATA_READ = 3 - end - end - - # The difference delta between two policies. - # @!attribute [rw] binding_deltas - # @return [::Array<::Google::Iam::V1::BindingDelta>] - # The delta for Bindings between two policies. - # @!attribute [rw] audit_config_deltas - # @return [::Array<::Google::Iam::V1::AuditConfigDelta>] - # The delta for AuditConfigs between two policies. - class PolicyDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # One delta entry for Binding. Each individual change (only one member in each - # entry) to a binding will be a separate entry. - # @!attribute [rw] action - # @return [::Google::Iam::V1::BindingDelta::Action] - # The action that was performed on a Binding. - # Required - # @!attribute [rw] role - # @return [::String] - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # @!attribute [rw] member - # @return [::String] - # A single identity requesting access for a Google Cloud resource. - # Follows the same format of Binding.members. - # Required - # @!attribute [rw] condition - # @return [::Google::Type::Expr] - # The condition that is associated with this binding. - class BindingDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of action performed on a Binding in a policy. - module Action - # Unspecified. - ACTION_UNSPECIFIED = 0 - - # Addition of a Binding. - ADD = 1 - - # Removal of a Binding. - REMOVE = 2 - end - end - - # One delta entry for AuditConfig. Each individual change (only one - # exempted_member in each entry) to a AuditConfig will be a separate entry. - # @!attribute [rw] action - # @return [::Google::Iam::V1::AuditConfigDelta::Action] - # The action that was performed on an audit configuration in a policy. - # Required - # @!attribute [rw] service - # @return [::String] - # Specifies a service that was configured for Cloud Audit Logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # Required - # @!attribute [rw] exempted_member - # @return [::String] - # A single identity that is exempted from "data access" audit - # logging for the `service` specified above. - # Follows the same format of Binding.members. - # @!attribute [rw] log_type - # @return [::String] - # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - # enabled, and cannot be configured. - # Required - class AuditConfigDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of action performed on an audit configuration in a policy. - module Action - # Unspecified. - ACTION_UNSPECIFIED = 0 - - # Addition of an audit configuration. - ADD = 1 - - # Removal of an audit configuration. - REMOVE = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb deleted file mode 100644 index 7a757f512165..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Longrunning - # This resource represents a long-running operation that is the result of a - # network API call. - # @!attribute [rw] name - # @return [::String] - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/{unique_id}`. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Any] - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # @!attribute [rw] done - # @return [::Boolean] - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. - # @!attribute [rw] error - # @return [::Google::Rpc::Status] - # The error result of the operation in case of failure or cancellation. - # - # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] response - # @return [::Google::Protobuf::Any] - # The normal, successful response of the operation. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. - # - # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Operation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.GetOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource. - class GetOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.ListOperations. - # @!attribute [rw] name - # @return [::String] - # The name of the operation's parent resource. - # @!attribute [rw] filter - # @return [::String] - # The standard list filter. - # @!attribute [rw] page_size - # @return [::Integer] - # The standard list page size. - # @!attribute [rw] page_token - # @return [::String] - # The standard list page token. - # @!attribute [rw] return_partial_success - # @return [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - class ListOperationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message for - # Operations.ListOperations. - # @!attribute [rw] operations - # @return [::Array<::Google::Longrunning::Operation>] - # A list of operations that matches the specified filter in the request. - # @!attribute [rw] next_page_token - # @return [::String] - # The standard List next-page token. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. Unreachable resources. Populated when the request sets - # `ListOperationsRequest.return_partial_success` and reads across - # collections e.g. when attempting to list all resources across all supported - # locations. - class ListOperationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.CancelOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be cancelled. - class CancelOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.DeleteOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be deleted. - class DeleteOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.WaitOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to wait on. - # @!attribute [rw] timeout - # @return [::Google::Protobuf::Duration] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - class WaitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A message representing the message types used by a long-running operation. - # - # Example: - # - # rpc Export(ExportRequest) returns (google.longrunning.Operation) { - # option (google.longrunning.operation_info) = { - # response_type: "ExportResponse" - # metadata_type: "ExportMetadata" - # }; - # } - # @!attribute [rw] response_type - # @return [::String] - # Required. The message name of the primary return type for this - # long-running operation. - # This type will be used to deserialize the LRO's response. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - # @!attribute [rw] metadata_type - # @return [::String] - # Required. The message name of the metadata type for this long-running - # operation. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - class OperationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb deleted file mode 100644 index 53e7733b6592..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # - # Example (Comparison): - # - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # - # Example (Equality): - # - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # - # Example (Logic): - # - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # - # Example (Data Manipulation): - # - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. - # @!attribute [rw] expression - # @return [::String] - # Textual representation of an expression in Common Expression Language - # syntax. - # @!attribute [rw] title - # @return [::String] - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # @!attribute [rw] description - # @return [::String] - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # @!attribute [rw] location - # @return [::String] - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - class Expr - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile deleted file mode 100644 index f88d2bf31b17..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-bigtable-admin-v2", path: "../" -else - gem "google-cloud-bigtable-admin-v2" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb deleted file mode 100644 index 60b0e44dae42..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile. -# -def create_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new - - # Call the create_app_profile method. - result = client.create_app_profile request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb deleted file mode 100644 index 1923dfa3b593..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster. -# -def create_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new - - # Call the create_cluster method. - result = client.create_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb deleted file mode 100644 index 9bfb53227c80..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance. -# -def create_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new - - # Call the create_instance method. - result = client.create_instance request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb deleted file mode 100644 index 7523e3a3df7f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view. -# -def create_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new - - # Call the create_logical_view method. - result = client.create_logical_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb deleted file mode 100644 index 99be7f04ca20..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view. -# -def create_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new - - # Call the create_materialized_view method. - result = client.create_materialized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb deleted file mode 100644 index be07699500ed..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile. -# -def delete_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new - - # Call the delete_app_profile method. - result = client.delete_app_profile request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb deleted file mode 100644 index ad008ded7e08..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster. -# -def delete_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new - - # Call the delete_cluster method. - result = client.delete_cluster request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb deleted file mode 100644 index f161dc0445dd..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance. -# -def delete_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new - - # Call the delete_instance method. - result = client.delete_instance request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb deleted file mode 100644 index f486e799a373..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view. -# -def delete_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new - - # Call the delete_logical_view method. - result = client.delete_logical_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb deleted file mode 100644 index 1e869b43c09d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view. -# -def delete_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new - - # Call the delete_materialized_view method. - result = client.delete_materialized_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb deleted file mode 100644 index a6b51fecf7b8..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile. -# -def get_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new - - # Call the get_app_profile method. - result = client.get_app_profile request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb deleted file mode 100644 index e3a302d2fe21..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster. -# -def get_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new - - # Call the get_cluster method. - result = client.get_cluster request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb deleted file mode 100644 index 69ab829b07a6..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_iam_policy call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb deleted file mode 100644 index ccd0595fe780..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance. -# -def get_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new - - # Call the get_instance method. - result = client.get_instance request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb deleted file mode 100644 index adfe7a736595..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view. -# -def get_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new - - # Call the get_logical_view method. - result = client.get_logical_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb deleted file mode 100644 index 6233ab496c0f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view. -# -def get_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new - - # Call the get_materialized_view method. - result = client.get_materialized_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb deleted file mode 100644 index 57b0097b3518..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_app_profiles call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles. -# -def list_app_profiles - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new - - # Call the list_app_profiles method. - result = client.list_app_profiles request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb deleted file mode 100644 index 8545983eb3a3..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_clusters call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters. -# -def list_clusters - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new - - # Call the list_clusters method. - result = client.list_clusters request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb deleted file mode 100644 index 5090d8624697..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets. -# -def list_hot_tablets - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new - - # Call the list_hot_tablets method. - result = client.list_hot_tablets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb deleted file mode 100644 index a4038642c51f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_instances call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances. -# -def list_instances - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new - - # Call the list_instances method. - result = client.list_instances request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb deleted file mode 100644 index 09e85d564f89..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_logical_views call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views. -# -def list_logical_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new - - # Call the list_logical_views method. - result = client.list_logical_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb deleted file mode 100644 index 37d40ffb913e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_materialized_views call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views. -# -def list_materialized_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new - - # Call the list_materialized_views method. - result = client.list_materialized_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb deleted file mode 100644 index 3923f7ae400d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster. -# -def partial_update_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new - - # Call the partial_update_cluster method. - result = client.partial_update_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb deleted file mode 100644 index 1630801fd676..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the partial_update_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance. -# -def partial_update_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new - - # Call the partial_update_instance method. - result = client.partial_update_instance request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb deleted file mode 100644 index 834fab5b6899..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the set_iam_policy call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb deleted file mode 100644 index 1e00c002ab00..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb deleted file mode 100644 index 30f88f2bf050..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile. -# -def update_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new - - # Call the update_app_profile method. - result = client.update_app_profile request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb deleted file mode 100644 index da1c506529be..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster. -# -def update_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::Cluster.new - - # Call the update_cluster method. - result = client.update_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb deleted file mode 100644 index 2aeb910c78ba..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance. -# -def update_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::Instance.new - - # Call the update_instance method. - result = client.update_instance request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb deleted file mode 100644 index 1cb0d166a85e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view. -# -def update_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new - - # Call the update_logical_view method. - result = client.update_logical_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb deleted file mode 100644 index da78d73ca450..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view. -# -def update_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new - - # Call the update_materialized_view method. - result = client.update_materialized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb deleted file mode 100644 index 56bd26ccebc2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the check_consistency call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency. -# -def check_consistency - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new - - # Call the check_consistency method. - result = client.check_consistency request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb deleted file mode 100644 index 32e9e991b2e0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the copy_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup. -# -def copy_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new - - # Call the copy_backup method. - result = client.copy_backup request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb deleted file mode 100644 index 93ca1b05050a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view. -# -def create_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new - - # Call the create_authorized_view method. - result = client.create_authorized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb deleted file mode 100644 index bbd26b8f605e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup. -# -def create_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new - - # Call the create_backup method. - result = client.create_backup request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb deleted file mode 100644 index 3cf630415459..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle. -# -def create_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new - - # Call the create_schema_bundle method. - result = client.create_schema_bundle request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb deleted file mode 100644 index 8d98a8471082..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table. -# -def create_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new - - # Call the create_table method. - result = client.create_table request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb deleted file mode 100644 index 3cf2e7283166..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot. -# -def create_table_from_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new - - # Call the create_table_from_snapshot method. - result = client.create_table_from_snapshot request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb deleted file mode 100644 index c5937706f326..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view. -# -def delete_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new - - # Call the delete_authorized_view method. - result = client.delete_authorized_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb deleted file mode 100644 index d710addca48c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup. -# -def delete_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new - - # Call the delete_backup method. - result = client.delete_backup request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb deleted file mode 100644 index 3b07c8b887f2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle. -# -def delete_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new - - # Call the delete_schema_bundle method. - result = client.delete_schema_bundle request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb deleted file mode 100644 index c7ab27d40147..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot. -# -def delete_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new - - # Call the delete_snapshot method. - result = client.delete_snapshot request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb deleted file mode 100644 index 315ff9367627..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table. -# -def delete_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new - - # Call the delete_table method. - result = client.delete_table request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb deleted file mode 100644 index 2b6cd7d2303a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the drop_row_range call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range. -# -def drop_row_range - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new - - # Call the drop_row_range method. - result = client.drop_row_range request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb deleted file mode 100644 index 88734d55318b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the generate_consistency_token call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token. -# -def generate_consistency_token - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new - - # Call the generate_consistency_token method. - result = client.generate_consistency_token request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb deleted file mode 100644 index 79ae8f10cc46..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view. -# -def get_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new - - # Call the get_authorized_view method. - result = client.get_authorized_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb deleted file mode 100644 index 6c0f68dd6078..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup. -# -def get_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new - - # Call the get_backup method. - result = client.get_backup request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb deleted file mode 100644 index 33969bfecb74..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_iam_policy call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb deleted file mode 100644 index 108356d532d0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle. -# -def get_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new - - # Call the get_schema_bundle method. - result = client.get_schema_bundle request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb deleted file mode 100644 index da9903b816ee..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot. -# -def get_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new - - # Call the get_snapshot method. - result = client.get_snapshot request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb deleted file mode 100644 index de73a71a944b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table. -# -def get_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new - - # Call the get_table method. - result = client.get_table request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb deleted file mode 100644 index 975edad00358..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_authorized_views call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views. -# -def list_authorized_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new - - # Call the list_authorized_views method. - result = client.list_authorized_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb deleted file mode 100644 index 113b0761aba0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_backups call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups. -# -def list_backups - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new - - # Call the list_backups method. - result = client.list_backups request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb deleted file mode 100644 index 03b8c6193c5a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_schema_bundles call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles. -# -def list_schema_bundles - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new - - # Call the list_schema_bundles method. - result = client.list_schema_bundles request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb deleted file mode 100644 index 1c34195822a7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_snapshots call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots. -# -def list_snapshots - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new - - # Call the list_snapshots method. - result = client.list_snapshots request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb deleted file mode 100644 index 3c482ff03261..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_tables call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables. -# -def list_tables - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new - - # Call the list_tables method. - result = client.list_tables request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb deleted file mode 100644 index e711d7477c88..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the modify_column_families call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families. -# -def modify_column_families - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new - - # Call the modify_column_families method. - result = client.modify_column_families request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb deleted file mode 100644 index 3c28d6009330..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the restore_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table. -# -def restore_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new - - # Call the restore_table method. - result = client.restore_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb deleted file mode 100644 index ff5fff58358d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the set_iam_policy call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb deleted file mode 100644 index 4d171700843e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the snapshot_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table. -# -def snapshot_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new - - # Call the snapshot_table method. - result = client.snapshot_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb deleted file mode 100644 index abe2e3451d02..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the test_iam_permissions call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb deleted file mode 100644 index 00c9558cd83c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the undelete_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table. -# -def undelete_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new - - # Call the undelete_table method. - result = client.undelete_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb deleted file mode 100644 index 383be6ce0938..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view. -# -def update_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new - - # Call the update_authorized_view method. - result = client.update_authorized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb deleted file mode 100644 index 32aa9d456b3a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup. -# -def update_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new - - # Call the update_backup method. - result = client.update_backup request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb deleted file mode 100644 index c33e873f5e7d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle. -# -def update_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new - - # Call the update_schema_bundle method. - result = client.update_schema_bundle request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb deleted file mode 100644 index d49e5c04deca..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table. -# -def update_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new - - # Call the update_table method. - result = client.update_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json deleted file mode 100644 index 307c646525b1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json +++ /dev/null @@ -1,2655 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-bigtable-admin-v2", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.bigtable.admin.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", - "title": "Snippet for the create_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance.", - "file": "bigtable_instance_admin/create_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", - "title": "Snippet for the get_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance.", - "file": "bigtable_instance_admin/get_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", - "title": "Snippet for the list_instances call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances.", - "file": "bigtable_instance_admin/list_instances.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_instances", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListInstances", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", - "title": "Snippet for the update_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance.", - "file": "bigtable_instance_admin/update_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", - "title": "Snippet for the partial_update_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance.", - "file": "bigtable_instance_admin/partial_update_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "partial_update_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "PartialUpdateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", - "title": "Snippet for the delete_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance.", - "file": "bigtable_instance_admin/delete_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", - "title": "Snippet for the create_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster.", - "file": "bigtable_instance_admin/create_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", - "title": "Snippet for the get_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster.", - "file": "bigtable_instance_admin/get_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", - "title": "Snippet for the list_clusters call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters.", - "file": "bigtable_instance_admin/list_clusters.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_clusters", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListClusters", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", - "title": "Snippet for the update_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster.", - "file": "bigtable_instance_admin/update_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", - "title": "Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster.", - "file": "bigtable_instance_admin/partial_update_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "partial_update_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "PartialUpdateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", - "title": "Snippet for the delete_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster.", - "file": "bigtable_instance_admin/delete_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", - "title": "Snippet for the create_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile.", - "file": "bigtable_instance_admin/create_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", - "title": "Snippet for the get_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile.", - "file": "bigtable_instance_admin/get_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", - "title": "Snippet for the list_app_profiles call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles.", - "file": "bigtable_instance_admin/list_app_profiles.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_app_profiles", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListAppProfiles", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", - "title": "Snippet for the update_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile.", - "file": "bigtable_instance_admin/update_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", - "title": "Snippet for the delete_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile.", - "file": "bigtable_instance_admin/delete_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy.", - "file": "bigtable_instance_admin/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy.", - "file": "bigtable_instance_admin/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions.", - "file": "bigtable_instance_admin/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", - "title": "Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets.", - "file": "bigtable_instance_admin/list_hot_tablets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_hot_tablets", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListHotTablets", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync", - "title": "Snippet for the create_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view.", - "file": "bigtable_instance_admin/create_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync", - "title": "Snippet for the get_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view.", - "file": "bigtable_instance_admin/get_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::LogicalView", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync", - "title": "Snippet for the list_logical_views call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views.", - "file": "bigtable_instance_admin/list_logical_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_logical_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListLogicalViews", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync", - "title": "Snippet for the update_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view.", - "file": "bigtable_instance_admin/update_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync", - "title": "Snippet for the delete_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view.", - "file": "bigtable_instance_admin/delete_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync", - "title": "Snippet for the create_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view.", - "file": "bigtable_instance_admin/create_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync", - "title": "Snippet for the get_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view.", - "file": "bigtable_instance_admin/get_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::MaterializedView", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync", - "title": "Snippet for the list_materialized_views call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views.", - "file": "bigtable_instance_admin/list_materialized_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_materialized_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListMaterializedViews", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync", - "title": "Snippet for the update_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view.", - "file": "bigtable_instance_admin/update_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync", - "title": "Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view.", - "file": "bigtable_instance_admin/delete_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", - "title": "Snippet for the create_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table.", - "file": "bigtable_table_admin/create_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", - "title": "Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot.", - "file": "bigtable_table_admin/create_table_from_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_table_from_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateTableFromSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", - "title": "Snippet for the list_tables call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables.", - "file": "bigtable_table_admin/list_tables.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_tables", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListTables", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", - "title": "Snippet for the get_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table.", - "file": "bigtable_table_admin/get_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", - "title": "Snippet for the update_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table.", - "file": "bigtable_table_admin/update_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", - "title": "Snippet for the delete_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table.", - "file": "bigtable_table_admin/delete_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", - "title": "Snippet for the undelete_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table.", - "file": "bigtable_table_admin/undelete_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "undelete_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UndeleteTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", - "title": "Snippet for the create_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view.", - "file": "bigtable_table_admin/create_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", - "title": "Snippet for the list_authorized_views call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views.", - "file": "bigtable_table_admin/list_authorized_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_authorized_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListAuthorizedViews", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", - "title": "Snippet for the get_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view.", - "file": "bigtable_table_admin/get_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AuthorizedView", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", - "title": "Snippet for the update_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view.", - "file": "bigtable_table_admin/update_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", - "title": "Snippet for the delete_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view.", - "file": "bigtable_table_admin/delete_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", - "title": "Snippet for the modify_column_families call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families.", - "file": "bigtable_table_admin/modify_column_families.rb", - "language": "RUBY", - "client_method": { - "short_name": "modify_column_families", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ModifyColumnFamilies", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", - "title": "Snippet for the drop_row_range call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range.", - "file": "bigtable_table_admin/drop_row_range.rb", - "language": "RUBY", - "client_method": { - "short_name": "drop_row_range", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DropRowRange", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", - "title": "Snippet for the generate_consistency_token call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token.", - "file": "bigtable_table_admin/generate_consistency_token.rb", - "language": "RUBY", - "client_method": { - "short_name": "generate_consistency_token", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GenerateConsistencyToken", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", - "title": "Snippet for the check_consistency call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency.", - "file": "bigtable_table_admin/check_consistency.rb", - "language": "RUBY", - "client_method": { - "short_name": "check_consistency", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CheckConsistency", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", - "title": "Snippet for the snapshot_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table.", - "file": "bigtable_table_admin/snapshot_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "snapshot_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "SnapshotTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", - "title": "Snippet for the get_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot.", - "file": "bigtable_table_admin/get_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Snapshot", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", - "title": "Snippet for the list_snapshots call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots.", - "file": "bigtable_table_admin/list_snapshots.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_snapshots", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListSnapshots", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", - "title": "Snippet for the delete_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot.", - "file": "bigtable_table_admin/delete_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", - "title": "Snippet for the create_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup.", - "file": "bigtable_table_admin/create_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", - "title": "Snippet for the get_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup.", - "file": "bigtable_table_admin/get_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", - "title": "Snippet for the update_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup.", - "file": "bigtable_table_admin/update_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", - "title": "Snippet for the delete_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup.", - "file": "bigtable_table_admin/delete_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", - "title": "Snippet for the list_backups call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups.", - "file": "bigtable_table_admin/list_backups.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_backups", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListBackups", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", - "title": "Snippet for the restore_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table.", - "file": "bigtable_table_admin/restore_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "restore_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "RestoreTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", - "title": "Snippet for the copy_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup.", - "file": "bigtable_table_admin/copy_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "copy_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CopyBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy.", - "file": "bigtable_table_admin/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy.", - "file": "bigtable_table_admin/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions.", - "file": "bigtable_table_admin/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync", - "title": "Snippet for the create_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle.", - "file": "bigtable_table_admin/create_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync", - "title": "Snippet for the update_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle.", - "file": "bigtable_table_admin/update_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync", - "title": "Snippet for the get_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle.", - "file": "bigtable_table_admin/get_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::SchemaBundle", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync", - "title": "Snippet for the list_schema_bundles call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles.", - "file": "bigtable_table_admin/list_schema_bundles.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_schema_bundles", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListSchemaBundles", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync", - "title": "Snippet for the delete_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle.", - "file": "bigtable_table_admin/delete_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb deleted file mode 100644 index d7820c4ab5a3..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" -require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb deleted file mode 100644 index 2454f9a7005c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb +++ /dev/null @@ -1,139 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_app_profile_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.app_profile_path project: "value0", instance: "value1", app_profile: "value2" - assert_equal "projects/value0/instances/value1/appProfiles/value2", path - end - end - - def test_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" - assert_equal "projects/value0/instances/value1/clusters/value2", path - end - end - - def test_crypto_key_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path - end - end - - def test_instance_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.instance_path project: "value0", instance: "value1" - assert_equal "projects/value0/instances/value1", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_logical_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.logical_view_path project: "value0", instance: "value1", logical_view: "value2" - assert_equal "projects/value0/instances/value1/logicalViews/value2", path - end - end - - def test_materialized_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.materialized_view_path project: "value0", instance: "value1", materialized_view: "value2" - assert_equal "projects/value0/instances/value1/materializedViews/value2", path - end - end - - def test_project_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.project_path project: "value0" - assert_equal "projects/value0", path - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb deleted file mode 100644 index 9ff63d5bec0c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb +++ /dev/null @@ -1,2093 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_instance - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - instance_id = "hello world" - instance = {} - clusters = {} - - create_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["instance_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] - assert_equal({}, request["clusters"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_instance parent: parent, instance_id: instance_id, instance: instance, clusters: clusters do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_instance ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_instance(::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_instance_client_stub.call_rpc_count - end - end - - def test_get_instance - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_instance({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_instance name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_instance ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_instance({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_instance(::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_instance_client_stub.call_rpc_count - end - end - - def test_list_instances - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_token = "hello world" - - list_instances_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_instances, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_instances_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_instances({ parent: parent, page_token: page_token }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_instances parent: parent, page_token: page_token do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_instances ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_instances({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_instances(::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_instances_client_stub.call_rpc_count - end - end - - def test_update_instance - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - display_name = "hello world" - state = :STATE_NOT_KNOWN - type = :TYPE_UNSPECIFIED - labels = {} - create_time = {} - satisfies_pzs = true - satisfies_pzi = true - tags = {} - - update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Instance, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["display_name"] - assert_equal :STATE_NOT_KNOWN, request["state"] - assert_equal :TYPE_UNSPECIFIED, request["type"] - assert_equal({}, request["labels"].to_h) - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] - assert_equal true, request["satisfies_pzs"] - assert request.has_satisfies_pzs? - assert_equal true, request["satisfies_pzi"] - assert request.has_satisfies_pzi? - assert_equal({}, request["tags"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_instance name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_instance_client_stub.call_rpc_count - end - end - - def test_partial_update_instance - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - instance = {} - update_mask = {} - - partial_update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :partial_update_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, partial_update_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.partial_update_instance({ instance: instance, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.partial_update_instance instance: instance, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.partial_update_instance ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.partial_update_instance({ instance: instance, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.partial_update_instance(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, partial_update_instance_client_stub.call_rpc_count - end - end - - def test_delete_instance - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_instance({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_instance name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_instance ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_instance({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_instance(::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_instance_client_stub.call_rpc_count - end - end - - def test_create_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - cluster_id = "hello world" - cluster = {} - - create_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["cluster_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_cluster parent: parent, cluster_id: cluster_id, cluster: cluster do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_cluster ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_cluster(::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_cluster_client_stub.call_rpc_count - end - end - - def test_get_cluster - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Cluster.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_cluster ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_cluster(::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_cluster_client_stub.call_rpc_count - end - end - - def test_list_clusters - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_token = "hello world" - - list_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_clusters, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_clusters_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_clusters({ parent: parent, page_token: page_token }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_clusters parent: parent, page_token: page_token do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_clusters ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_clusters({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_clusters(::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_clusters_client_stub.call_rpc_count - end - end - - def test_update_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - location = "hello world" - state = :STATE_NOT_KNOWN - serve_nodes = 42 - node_scaling_factor = :NODE_SCALING_FACTOR_UNSPECIFIED - cluster_config = {} - default_storage_type = :STORAGE_TYPE_UNSPECIFIED - encryption_config = {} - - update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Cluster, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["location"] - assert_equal :STATE_NOT_KNOWN, request["state"] - assert_equal 42, request["serve_nodes"] - assert_equal :NODE_SCALING_FACTOR_UNSPECIFIED, request["node_scaling_factor"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig), request["cluster_config"] - assert_equal :cluster_config, request.config - assert_equal :STORAGE_TYPE_UNSPECIFIED, request["default_storage_type"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig), request["encryption_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_cluster name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_cluster ::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_cluster(::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_cluster_client_stub.call_rpc_count - end - end - - def test_partial_update_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - cluster = {} - update_mask = {} - - partial_update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :partial_update_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, partial_update_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.partial_update_cluster cluster: cluster, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.partial_update_cluster ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.partial_update_cluster(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, partial_update_cluster_client_stub.call_rpc_count - end - end - - def test_delete_cluster - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_cluster ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_cluster(::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_cluster_client_stub.call_rpc_count - end - end - - def test_create_app_profile - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - app_profile_id = "hello world" - app_profile = {} - ignore_warnings = true - - create_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["app_profile_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_app_profile parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_app_profile ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_app_profile(::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_app_profile_client_stub.call_rpc_count - end - end - - def test_get_app_profile - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_app_profile({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_app_profile name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_app_profile ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_app_profile({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_app_profile(::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_app_profile_client_stub.call_rpc_count - end - end - - def test_list_app_profiles - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_app_profiles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_app_profiles, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_app_profiles_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_app_profiles parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_app_profiles ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_app_profiles(::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_app_profiles_client_stub.call_rpc_count - end - end - - def test_update_app_profile - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - app_profile = {} - update_mask = {} - ignore_warnings = true - - update_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_app_profile app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_app_profile ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_app_profile(::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_app_profile_client_stub.call_rpc_count - end - end - - def test_delete_app_profile - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - ignore_warnings = true - - delete_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_app_profile name: name, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_app_profile ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_app_profile(::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_app_profile_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_list_hot_tablets - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - start_time = {} - end_time = {} - page_size = 42 - page_token = "hello world" - - list_hot_tablets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_hot_tablets, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_hot_tablets_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_hot_tablets parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_hot_tablets ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_hot_tablets(::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_hot_tablets_client_stub.call_rpc_count - end - end - - def test_create_logical_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - logical_view_id = "hello world" - logical_view = {} - - create_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["logical_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_logical_view parent: parent, logical_view_id: logical_view_id, logical_view: logical_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_logical_view ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_logical_view(::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_logical_view_client_stub.call_rpc_count - end - end - - def test_get_logical_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::LogicalView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_logical_view({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_logical_view name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_logical_view ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_logical_view({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_logical_view(::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_logical_view_client_stub.call_rpc_count - end - end - - def test_list_logical_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_logical_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_logical_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_logical_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_logical_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_logical_views ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_logical_views(::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_logical_views_client_stub.call_rpc_count - end - end - - def test_update_logical_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - logical_view = {} - update_mask = {} - - update_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_logical_view logical_view: logical_view, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_logical_view ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_logical_view(::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_logical_view_client_stub.call_rpc_count - end - end - - def test_delete_logical_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_logical_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_logical_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_logical_view ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_logical_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_logical_view(::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_logical_view_client_stub.call_rpc_count - end - end - - def test_create_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - materialized_view_id = "hello world" - materialized_view = {} - - create_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["materialized_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_materialized_view parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_materialized_view ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_materialized_view(::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_materialized_view_client_stub.call_rpc_count - end - end - - def test_get_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::MaterializedView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_materialized_view({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_materialized_view name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_materialized_view ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_materialized_view({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_materialized_view(::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_materialized_view_client_stub.call_rpc_count - end - end - - def test_list_materialized_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_materialized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_materialized_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_materialized_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_materialized_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_materialized_views ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_materialized_views(::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_materialized_views_client_stub.call_rpc_count - end - end - - def test_update_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - materialized_view = {} - update_mask = {} - - update_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_materialized_view materialized_view: materialized_view, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_materialized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_materialized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_materialized_view_client_stub.call_rpc_count - end - end - - def test_delete_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_materialized_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_materialized_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_materialized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_materialized_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_materialized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_materialized_view_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb deleted file mode 100644 index b4858530f9ca..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_table_admin_pb" -require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb deleted file mode 100644 index f660e3430c6e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb +++ /dev/null @@ -1,151 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_authorized_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.authorized_view_path project: "value0", instance: "value1", table: "value2", authorized_view: "value3" - assert_equal "projects/value0/instances/value1/tables/value2/authorizedViews/value3", path - end - end - - def test_backup_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.backup_path project: "value0", instance: "value1", cluster: "value2", backup: "value3" - assert_equal "projects/value0/instances/value1/clusters/value2/backups/value3", path - end - end - - def test_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" - assert_equal "projects/value0/instances/value1/clusters/value2", path - end - end - - def test_crypto_key_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path - end - end - - def test_instance_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.instance_path project: "value0", instance: "value1" - assert_equal "projects/value0/instances/value1", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_schema_bundle_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.schema_bundle_path project: "value0", instance: "value1", table: "value2", schema_bundle: "value3" - assert_equal "projects/value0/instances/value1/tables/value2/schemaBundles/value3", path - end - end - - def test_snapshot_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.snapshot_path project: "value0", instance: "value1", cluster: "value2", snapshot: "value3" - assert_equal "projects/value0/instances/value1/clusters/value2/snapshots/value3", path - end - end - - def test_table_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.table_path project: "value0", instance: "value1", table: "value2" - assert_equal "projects/value0/instances/value1/tables/value2", path - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb deleted file mode 100644 index 44ea7cd17fc5..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb +++ /dev/null @@ -1,2339 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_table_admin_pb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_table - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - table = {} - initial_splits = [{}] - - create_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, request["initial_splits"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_table parent: parent, table_id: table_id, table: table, initial_splits: initial_splits do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_table ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_table(::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_table_client_stub.call_rpc_count - end - end - - def test_create_table_from_snapshot - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - source_snapshot = "hello world" - - create_table_from_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_table_from_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal "hello world", request["source_snapshot"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_table_from_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_table_from_snapshot parent: parent, table_id: table_id, source_snapshot: source_snapshot do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_table_from_snapshot ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_table_from_snapshot(::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_table_from_snapshot_client_stub.call_rpc_count - end - end - - def test_list_tables - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - view = :VIEW_UNSPECIFIED - page_size = 42 - page_token = "hello world" - - list_tables_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_tables, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, request - assert_equal "hello world", request["parent"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_tables_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_tables parent: parent, view: view, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_tables ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_tables(::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_tables_client_stub.call_rpc_count - end - end - - def test_get_table - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :VIEW_UNSPECIFIED - - get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, request - assert_equal "hello world", request["name"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_table({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_table name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_table ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_table({ name: name, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_table(::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_table_client_stub.call_rpc_count - end - end - - def test_update_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - table = {} - update_mask = {} - ignore_warnings = true - - update_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_table table: table, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_table ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_table(::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_table_client_stub.call_rpc_count - end - end - - def test_delete_table - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_table({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_table name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_table ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_table({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_table(::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_table_client_stub.call_rpc_count - end - end - - def test_undelete_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - undelete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :undelete_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, undelete_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.undelete_table({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.undelete_table name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.undelete_table ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.undelete_table({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.undelete_table(::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, undelete_table_client_stub.call_rpc_count - end - end - - def test_create_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - authorized_view_id = "hello world" - authorized_view = {} - - create_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["authorized_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_authorized_view parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_authorized_view ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_authorized_view(::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_authorized_view_client_stub.call_rpc_count - end - end - - def test_list_authorized_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - view = :RESPONSE_VIEW_UNSPECIFIED - - list_authorized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_authorized_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_authorized_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_authorized_views parent: parent, page_size: page_size, page_token: page_token, view: view do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_authorized_views ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_authorized_views(::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_authorized_views_client_stub.call_rpc_count - end - end - - def test_get_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :RESPONSE_VIEW_UNSPECIFIED - - get_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_authorized_view({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_authorized_view name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_authorized_view ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_authorized_view({ name: name, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_authorized_view(::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_authorized_view_client_stub.call_rpc_count - end - end - - def test_update_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - authorized_view = {} - update_mask = {} - ignore_warnings = true - - update_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_authorized_view authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_authorized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_authorized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_authorized_view_client_stub.call_rpc_count - end - end - - def test_delete_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_authorized_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_authorized_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_authorized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_authorized_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_authorized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_authorized_view_client_stub.call_rpc_count - end - end - - def test_modify_column_families - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - modifications = [{}] - ignore_warnings = true - - modify_column_families_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :modify_column_families, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, request - assert_equal "hello world", request["name"] - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, request["modifications"].first - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, modify_column_families_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.modify_column_families name: name, modifications: modifications, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.modify_column_families ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.modify_column_families(::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, modify_column_families_client_stub.call_rpc_count - end - end - - def test_drop_row_range - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - row_key_prefix = "hello world" - - drop_row_range_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :drop_row_range, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["row_key_prefix"] - assert_equal :row_key_prefix, request.target - refute_nil options - end - - Gapic::ServiceStub.stub :new, drop_row_range_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.drop_row_range name: name, row_key_prefix: row_key_prefix do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.drop_row_range ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.drop_row_range(::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, drop_row_range_client_stub.call_rpc_count - end - end - - def test_generate_consistency_token - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - generate_consistency_token_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :generate_consistency_token, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, generate_consistency_token_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.generate_consistency_token({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.generate_consistency_token name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.generate_consistency_token ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.generate_consistency_token({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.generate_consistency_token(::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, generate_consistency_token_client_stub.call_rpc_count - end - end - - def test_check_consistency - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - consistency_token = "hello world" - standard_read_remote_writes = {} - - check_consistency_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :check_consistency, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["consistency_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites), request["standard_read_remote_writes"] - assert_equal :standard_read_remote_writes, request.mode - refute_nil options - end - - Gapic::ServiceStub.stub :new, check_consistency_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.check_consistency name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.check_consistency ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.check_consistency(::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, check_consistency_client_stub.call_rpc_count - end - end - - def test_snapshot_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - cluster = "hello world" - snapshot_id = "hello world" - ttl = {} - description = "hello world" - - snapshot_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :snapshot_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["cluster"] - assert_equal "hello world", request["snapshot_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] - assert_equal "hello world", request["description"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, snapshot_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.snapshot_table name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.snapshot_table ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.snapshot_table(::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, snapshot_table_client_stub.call_rpc_count - end - end - - def test_get_snapshot - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Snapshot.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_snapshot({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_snapshot name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_snapshot ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_snapshot({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_snapshot(::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_snapshot_client_stub.call_rpc_count - end - end - - def test_list_snapshots - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_snapshots, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_snapshots_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_snapshots parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_snapshots ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_snapshots(::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_snapshots_client_stub.call_rpc_count - end - end - - def test_delete_snapshot - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_snapshot({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_snapshot name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_snapshot ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_snapshot({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_snapshot(::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_snapshot_client_stub.call_rpc_count - end - end - - def test_create_backup - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - backup_id = "hello world" - backup = {} - - create_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["backup_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_backup parent: parent, backup_id: backup_id, backup: backup do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_backup ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_backup(::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_backup_client_stub.call_rpc_count - end - end - - def test_get_backup - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_backup({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_backup name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_backup ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_backup({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_backup(::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_backup_client_stub.call_rpc_count - end - end - - def test_update_backup - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - backup = {} - update_mask = {} - - update_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_backup({ backup: backup, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_backup backup: backup, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_backup ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_backup({ backup: backup, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_backup(::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_backup_client_stub.call_rpc_count - end - end - - def test_delete_backup - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_backup({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_backup name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_backup ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_backup({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_backup(::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_backup_client_stub.call_rpc_count - end - end - - def test_list_backups - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - order_by = "hello world" - page_size = 42 - page_token = "hello world" - - list_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_backups, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_backups_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_backups parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_backups ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_backups(::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_backups_client_stub.call_rpc_count - end - end - - def test_restore_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - backup = "hello world" - - restore_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :restore_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal "hello world", request["backup"] - assert_equal :backup, request.source - refute_nil options - end - - Gapic::ServiceStub.stub :new, restore_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.restore_table({ parent: parent, table_id: table_id, backup: backup }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.restore_table parent: parent, table_id: table_id, backup: backup do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.restore_table ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.restore_table({ parent: parent, table_id: table_id, backup: backup }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.restore_table(::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, restore_table_client_stub.call_rpc_count - end - end - - def test_copy_backup - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - backup_id = "hello world" - source_backup = "hello world" - expire_time = {} - - copy_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :copy_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["backup_id"] - assert_equal "hello world", request["source_backup"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["expire_time"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, copy_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.copy_backup parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.copy_backup ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.copy_backup(::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, copy_backup_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_create_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - schema_bundle_id = "hello world" - schema_bundle = {} - - create_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["schema_bundle_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_schema_bundle parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_schema_bundle_client_stub.call_rpc_count - end - end - - def test_update_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - schema_bundle = {} - update_mask = {} - ignore_warnings = true - - update_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_schema_bundle schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_schema_bundle_client_stub.call_rpc_count - end - end - - def test_get_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_schema_bundle({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_schema_bundle name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_schema_bundle({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_schema_bundle_client_stub.call_rpc_count - end - end - - def test_list_schema_bundles - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_schema_bundles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_schema_bundles, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_schema_bundles_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_schema_bundles parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_schema_bundles ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_schema_bundles(::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_schema_bundles_client_stub.call_rpc_count - end - end - - def test_delete_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_schema_bundle({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_schema_bundle name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_schema_bundle({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_schema_bundle_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct" From 1e6a36679d00a918970a2545cd58420e516866b3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 15 Apr 2026 17:02:40 +0000 Subject: [PATCH 7/8] feat: add Editions field to Instance PiperOrigin-RevId: 900156940 Source-Link: https://github.com/googleapis/googleapis/commit/9761131b283e506d8b45fe5e0a174bee9f9bc828 Source-Link: https://github.com/googleapis/googleapis-gen/commit/658fe513d74166f0d92d18a377fee95cb9cbfdf6 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWJpZ3RhYmxlLWFkbWluLXYyLy5Pd2xCb3QueWFtbCIsImgiOiI2NThmZTUxM2Q3NDE2NmYwZDkyZDE4YTM3N2ZlZTk1Y2I5Y2JmZGY2In0= --- .../google-cloud-bigtable-admin-v2/.gitignore | 22 + .../.repo-metadata.json | 18 + .../.rubocop.yml | 33 + .../google-cloud-bigtable-admin-v2/.toys.rb | 28 + .../google-cloud-bigtable-admin-v2/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../CHANGELOG.md | 2 + .../google-cloud-bigtable-admin-v2/Gemfile | 14 + .../google-cloud-bigtable-admin-v2/LICENSE.md | 201 + .../google-cloud-bigtable-admin-v2/README.md | 154 + .../google-cloud-bigtable-admin-v2/Rakefile | 169 + .../gapic_metadata.json | 357 ++ .../google-cloud-bigtable-admin-v2.gemspec | 29 + .../lib/google-cloud-bigtable-admin-v2.rb | 21 + .../admin/v2/bigtable_instance_admin_pb.rb | 78 + .../v2/bigtable_instance_admin_services_pb.rb | 142 + .../admin/v2/bigtable_table_admin_pb.rb | 91 + .../v2/bigtable_table_admin_services_pb.rb | 182 + .../lib/google/bigtable/admin/v2/common_pb.rb | 26 + .../google/bigtable/admin/v2/instance_pb.rb | 50 + .../lib/google/bigtable/admin/v2/table_pb.rb | 58 + .../lib/google/bigtable/admin/v2/types_pb.rb | 57 + .../lib/google/cloud/bigtable/admin/v2.rb | 43 + .../admin/v2/bigtable_instance_admin.rb | 54 + .../v2/bigtable_instance_admin/client.rb | 3713 ++++++++++++++ .../v2/bigtable_instance_admin/credentials.rb | 59 + .../v2/bigtable_instance_admin/operations.rb | 843 ++++ .../admin/v2/bigtable_instance_admin/paths.rb | 180 + .../bigtable/admin/v2/bigtable_table_admin.rb | 56 + .../admin/v2/bigtable_table_admin/client.rb | 4266 +++++++++++++++++ .../v2/bigtable_table_admin/credentials.rb | 58 + .../v2/bigtable_table_admin/operations.rb | 843 ++++ .../admin/v2/bigtable_table_admin/paths.rb | 214 + .../google/cloud/bigtable/admin/v2/version.rb | 30 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 593 +++ .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../admin/v2/bigtable_instance_admin.rb | 767 +++ .../bigtable/admin/v2/bigtable_table_admin.rb | 1167 +++++ .../google/bigtable/admin/v2/common.rb | 58 + .../google/bigtable/admin/v2/instance.rb | 546 +++ .../google/bigtable/admin/v2/table.rb | 741 +++ .../google/bigtable/admin/v2/types.rb | 575 +++ .../proto_docs/google/iam/v1/iam_policy.rb | 87 + .../proto_docs/google/iam/v1/options.rb | 50 + .../proto_docs/google/iam/v1/policy.rb | 426 ++ .../google/longrunning/operations.rb | 191 + .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/rpc/status.rb | 48 + .../proto_docs/google/type/expr.rb | 75 + .../snippets/Gemfile | 32 + .../create_app_profile.rb | 47 + .../bigtable_instance_admin/create_cluster.rb | 54 + .../create_instance.rb | 54 + .../create_logical_view.rb | 54 + .../create_materialized_view.rb | 54 + .../delete_app_profile.rb | 47 + .../bigtable_instance_admin/delete_cluster.rb | 47 + .../delete_instance.rb | 47 + .../delete_logical_view.rb | 47 + .../delete_materialized_view.rb | 47 + .../get_app_profile.rb | 47 + .../bigtable_instance_admin/get_cluster.rb | 47 + .../bigtable_instance_admin/get_iam_policy.rb | 47 + .../bigtable_instance_admin/get_instance.rb | 47 + .../get_logical_view.rb | 47 + .../get_materialized_view.rb | 47 + .../list_app_profiles.rb | 51 + .../bigtable_instance_admin/list_clusters.rb | 47 + .../list_hot_tablets.rb | 51 + .../bigtable_instance_admin/list_instances.rb | 47 + .../list_logical_views.rb | 51 + .../list_materialized_views.rb | 51 + .../partial_update_cluster.rb | 54 + .../partial_update_instance.rb | 54 + .../bigtable_instance_admin/set_iam_policy.rb | 47 + .../test_iam_permissions.rb | 47 + .../update_app_profile.rb | 54 + .../bigtable_instance_admin/update_cluster.rb | 54 + .../update_instance.rb | 47 + .../update_logical_view.rb | 54 + .../update_materialized_view.rb | 54 + .../bigtable_table_admin/check_consistency.rb | 47 + .../bigtable_table_admin/copy_backup.rb | 54 + .../create_authorized_view.rb | 54 + .../bigtable_table_admin/create_backup.rb | 54 + .../create_schema_bundle.rb | 54 + .../bigtable_table_admin/create_table.rb | 47 + .../create_table_from_snapshot.rb | 54 + .../delete_authorized_view.rb | 47 + .../bigtable_table_admin/delete_backup.rb | 47 + .../delete_schema_bundle.rb | 47 + .../bigtable_table_admin/delete_snapshot.rb | 47 + .../bigtable_table_admin/delete_table.rb | 47 + .../bigtable_table_admin/drop_row_range.rb | 47 + .../generate_consistency_token.rb | 47 + .../get_authorized_view.rb | 47 + .../bigtable_table_admin/get_backup.rb | 47 + .../bigtable_table_admin/get_iam_policy.rb | 47 + .../bigtable_table_admin/get_schema_bundle.rb | 47 + .../bigtable_table_admin/get_snapshot.rb | 47 + .../bigtable_table_admin/get_table.rb | 47 + .../list_authorized_views.rb | 51 + .../bigtable_table_admin/list_backups.rb | 51 + .../list_schema_bundles.rb | 51 + .../bigtable_table_admin/list_snapshots.rb | 51 + .../bigtable_table_admin/list_tables.rb | 51 + .../modify_column_families.rb | 47 + .../bigtable_table_admin/restore_table.rb | 54 + .../bigtable_table_admin/set_iam_policy.rb | 47 + .../bigtable_table_admin/snapshot_table.rb | 54 + .../test_iam_permissions.rb | 47 + .../bigtable_table_admin/undelete_table.rb | 54 + .../update_authorized_view.rb | 54 + .../bigtable_table_admin/update_backup.rb | 47 + .../update_schema_bundle.rb | 54 + .../bigtable_table_admin/update_table.rb | 54 + ...pet_metadata_google.bigtable.admin.v2.json | 2655 ++++++++++ ...bigtable_instance_admin_operations_test.rb | 400 ++ .../v2/bigtable_instance_admin_paths_test.rb | 139 + .../admin/v2/bigtable_instance_admin_test.rb | 2095 ++++++++ .../bigtable_table_admin_operations_test.rb | 400 ++ .../v2/bigtable_table_admin_paths_test.rb | 151 + .../admin/v2/bigtable_table_admin_test.rb | 2339 +++++++++ .../test/helper.rb | 26 + 131 files changed, 30091 insertions(+) create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/README.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/common_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb create mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json new file mode 100644 index 000000000000..b1afcd60adc1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json @@ -0,0 +1,18 @@ +{ + "api_id": "bigtableadmin.googleapis.com", + "api_shortname": "bigtableadmin", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest", + "distribution_name": "google-cloud-bigtable-admin-v2", + "is_cloud": true, + "language": "ruby", + "name": "bigtableadmin", + "name_pretty": "Cloud Bigtable Admin V2 API", + "product_documentation": "https://cloud.google.com/bigtable", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details.", + "ruby-cloud-env-prefix": "BIGTABLE", + "ruby-cloud-product-url": "https://cloud.google.com/bigtable", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml new file mode 100644 index 000000000000..8b307e35af07 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-bigtable-admin-v2.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-bigtable-admin-v2.rb" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts new file mode 100644 index 000000000000..73aed5753bd5 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Cloud Bigtable Admin V2 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md new file mode 100644 index 000000000000..1bb27d1cc834 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-bigtable-admin-v2 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-bigtable-admin-v2 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/bigtable/admin/v2" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/bigtable/admin/v2" + +::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-bigtable-admin-v2 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/bigtable/admin/v2" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md new file mode 100644 index 000000000000..7fe6da059f1e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Cloud Bigtable Admin V2 API + +Administer your Cloud Bigtable tables and instances. + +Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Cloud Bigtable Admin V2 API. Most users should consider using +the main client gem, +[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-bigtable-admin-v2 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/bigtable/admin/v2" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new +request = ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new # (request fields as keyword arguments...) +response = client.create_instance request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/bigtable) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/bigtable/admin/v2" +require "logger" + +client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-bigtable`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-bigtable-admin-v2`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-bigtable`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-bigtable-admin-v2`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile new file mode 100644 index 000000000000..485278a34b9d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-bigtable-admin-v2 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["BIGTABLE_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["BIGTABLE_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["BIGTABLE_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or BIGTABLE_TEST_PROJECT=test123 BIGTABLE_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" + ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["BIGTABLE_PROJECT"] = project + ENV["BIGTABLE_TEST_PROJECT"] = project + ENV["BIGTABLE_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-bigtable-admin-v2 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-bigtable-admin-v2 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-bigtable-admin-v2" + header "google-cloud-bigtable-admin-v2 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-bigtable-admin-v2 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-bigtable-admin-v2 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-bigtable-admin-v2 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-bigtable-admin-v2 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json new file mode 100644 index 000000000000..2370ce3ced54 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json @@ -0,0 +1,357 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.bigtable.admin.v2", + "libraryPackage": "::Google::Cloud::Bigtable::Admin::V2", + "services": { + "BigtableInstanceAdmin": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client", + "rpcs": { + "CreateInstance": { + "methods": [ + "create_instance" + ] + }, + "GetInstance": { + "methods": [ + "get_instance" + ] + }, + "ListInstances": { + "methods": [ + "list_instances" + ] + }, + "UpdateInstance": { + "methods": [ + "update_instance" + ] + }, + "PartialUpdateInstance": { + "methods": [ + "partial_update_instance" + ] + }, + "DeleteInstance": { + "methods": [ + "delete_instance" + ] + }, + "CreateCluster": { + "methods": [ + "create_cluster" + ] + }, + "GetCluster": { + "methods": [ + "get_cluster" + ] + }, + "ListClusters": { + "methods": [ + "list_clusters" + ] + }, + "UpdateCluster": { + "methods": [ + "update_cluster" + ] + }, + "PartialUpdateCluster": { + "methods": [ + "partial_update_cluster" + ] + }, + "DeleteCluster": { + "methods": [ + "delete_cluster" + ] + }, + "CreateAppProfile": { + "methods": [ + "create_app_profile" + ] + }, + "GetAppProfile": { + "methods": [ + "get_app_profile" + ] + }, + "ListAppProfiles": { + "methods": [ + "list_app_profiles" + ] + }, + "UpdateAppProfile": { + "methods": [ + "update_app_profile" + ] + }, + "DeleteAppProfile": { + "methods": [ + "delete_app_profile" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, + "ListHotTablets": { + "methods": [ + "list_hot_tablets" + ] + }, + "CreateLogicalView": { + "methods": [ + "create_logical_view" + ] + }, + "GetLogicalView": { + "methods": [ + "get_logical_view" + ] + }, + "ListLogicalViews": { + "methods": [ + "list_logical_views" + ] + }, + "UpdateLogicalView": { + "methods": [ + "update_logical_view" + ] + }, + "DeleteLogicalView": { + "methods": [ + "delete_logical_view" + ] + }, + "CreateMaterializedView": { + "methods": [ + "create_materialized_view" + ] + }, + "GetMaterializedView": { + "methods": [ + "get_materialized_view" + ] + }, + "ListMaterializedViews": { + "methods": [ + "list_materialized_views" + ] + }, + "UpdateMaterializedView": { + "methods": [ + "update_materialized_view" + ] + }, + "DeleteMaterializedView": { + "methods": [ + "delete_materialized_view" + ] + } + } + } + } + }, + "BigtableTableAdmin": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client", + "rpcs": { + "CreateTable": { + "methods": [ + "create_table" + ] + }, + "CreateTableFromSnapshot": { + "methods": [ + "create_table_from_snapshot" + ] + }, + "ListTables": { + "methods": [ + "list_tables" + ] + }, + "GetTable": { + "methods": [ + "get_table" + ] + }, + "UpdateTable": { + "methods": [ + "update_table" + ] + }, + "DeleteTable": { + "methods": [ + "delete_table" + ] + }, + "UndeleteTable": { + "methods": [ + "undelete_table" + ] + }, + "CreateAuthorizedView": { + "methods": [ + "create_authorized_view" + ] + }, + "ListAuthorizedViews": { + "methods": [ + "list_authorized_views" + ] + }, + "GetAuthorizedView": { + "methods": [ + "get_authorized_view" + ] + }, + "UpdateAuthorizedView": { + "methods": [ + "update_authorized_view" + ] + }, + "DeleteAuthorizedView": { + "methods": [ + "delete_authorized_view" + ] + }, + "ModifyColumnFamilies": { + "methods": [ + "modify_column_families" + ] + }, + "DropRowRange": { + "methods": [ + "drop_row_range" + ] + }, + "GenerateConsistencyToken": { + "methods": [ + "generate_consistency_token" + ] + }, + "CheckConsistency": { + "methods": [ + "check_consistency" + ] + }, + "SnapshotTable": { + "methods": [ + "snapshot_table" + ] + }, + "GetSnapshot": { + "methods": [ + "get_snapshot" + ] + }, + "ListSnapshots": { + "methods": [ + "list_snapshots" + ] + }, + "DeleteSnapshot": { + "methods": [ + "delete_snapshot" + ] + }, + "CreateBackup": { + "methods": [ + "create_backup" + ] + }, + "GetBackup": { + "methods": [ + "get_backup" + ] + }, + "UpdateBackup": { + "methods": [ + "update_backup" + ] + }, + "DeleteBackup": { + "methods": [ + "delete_backup" + ] + }, + "ListBackups": { + "methods": [ + "list_backups" + ] + }, + "RestoreTable": { + "methods": [ + "restore_table" + ] + }, + "CopyBackup": { + "methods": [ + "copy_backup" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, + "CreateSchemaBundle": { + "methods": [ + "create_schema_bundle" + ] + }, + "UpdateSchemaBundle": { + "methods": [ + "update_schema_bundle" + ] + }, + "GetSchemaBundle": { + "methods": [ + "get_schema_bundle" + ] + }, + "ListSchemaBundles": { + "methods": [ + "list_schema_bundles" + ] + }, + "DeleteSchemaBundle": { + "methods": [ + "delete_schema_bundle" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec new file mode 100644 index 000000000000..d15e999177a9 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec @@ -0,0 +1,29 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/bigtable/admin/v2/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-bigtable-admin-v2" + gem.version = Google::Cloud::Bigtable::Admin::V2::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details." + gem.summary = "Administer your Cloud Bigtable tables and instances." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "grpc-google-iam-v1", "~> 1.11" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb new file mode 100644 index 000000000000..0c7aa4cc6208 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/bigtable/admin/v2" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb new file mode 100644 index 000000000000..ada921bfd341 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb @@ -0,0 +1,78 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/bigtable_instance_admin.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/instance_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"Q\n\x12GetInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"T\n\x15\x44\x65leteInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"\xa7\x01\n\x14\x43reateClusterRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\"O\n\x11GetClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"h\n\x13ListClustersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"R\n\x14\x44\x65leteClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfb\x04\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x06tables\x18\x04 \x03(\x0b\x32;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1a\xf9\x01\n\rTableProgress\x12\x1c\n\x14\x65stimated_size_bytes\x18\x02 \x01(\x03\x12\x1e\n\x16\x65stimated_copied_bytes\x18\x03 \x01(\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32\x43.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07\x43OPYING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1al\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x02\x38\x01\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd2\x01\n\x1cPartialUpdateClusterMetadata\x12\x30\n\x0crequest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x10original_request\x18\x03 \x01(\x0b\x32\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8c\x01\n\x1bPartialUpdateClusterRequest\x12\x37\n\x07\x63luster\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xce\x01\n\x17\x43reateAppProfileRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"U\n\x14GetAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\"~\n\x16ListAppProfilesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"v\n\x17\x44\x65leteAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\x12\x1c\n\x0fignore_warnings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\xda\x01\n\x15ListHotTabletsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"k\n\x16ListHotTabletsResponse\x12\x38\n\x0bhot_tablets\x18\x01 \x03(\x0b\x32#.google.bigtable.admin.v2.HotTablet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\x18\x43reateLogicalViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1c\n\x0flogical_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0clogical_view\x18\x03 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\"\xc7\x01\n\x19\x43reateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x15GetLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\"\x8c\x01\n\x17ListLogicalViewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"q\n\x18ListLogicalViewsResponse\x12<\n\rlogical_views\x18\x01 \x03(\x0b\x32%.google.bigtable.admin.v2.LogicalView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x92\x01\n\x18UpdateLogicalViewRequest\x12@\n\x0clogical_view\x18\x01 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xc7\x01\n\x19UpdateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"m\n\x18\x44\x65leteLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1d\x43reateMaterializedViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12!\n\x14materialized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11materialized_view\x18\x03 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\"\xd1\x01\n\x1e\x43reateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1aGetMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\n\x1cListMaterializedViewsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1dListMaterializedViewsResponse\x12\x46\n\x12materialized_views\x18\x01 \x03(\x0b\x32*.google.bigtable.admin.v2.MaterializedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa1\x01\n\x1dUpdateMaterializedViewRequest\x12J\n\x11materialized_view\x18\x01 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xd1\x01\n\x1eUpdateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1d\x44\x65leteMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xe6\x36\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16\x43reateInstanceMetadata\xda\x41$parent,instance_id,instance,clusters\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16UpdateInstanceMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\xda\x41\x19parent,cluster_id,cluster\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\x12\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\'\n\x07\x43luster\x12\x1cPartialUpdateClusterMetadata\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07\x63luster\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"h\xda\x41!parent,app_profile_id,app_profile\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\xda\x41\x17\x61pp_profile,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\xb4\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\xda\x41\x14name,ignore_warnings\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaa\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xde\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xb1\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xe5\x01\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xe8\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xfc\x01\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\xde\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xbf\x01\n\x0eListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a\x30.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\n\x11\x43reateLogicalView\x12\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41(\n\x0bLogicalView\x12\x19\x43reateLogicalViewMetadata\xda\x41#parent,logical_view,logical_view_id\x82\xd3\xe4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0clogical_view\x12\xa9\x01\n\x0eGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1a%.google.bigtable.admin.v2.LogicalView\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xbc\x01\n\x10ListLogicalViews\x12\x31.google.bigtable.admin.v2.ListLogicalViewsRequest\x1a\x32.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\n\x11UpdateLogicalView\x12\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41(\n\x0bLogicalView\x12\x19UpdateLogicalViewMetadata\xda\x41\x18logical_view,update_mask\x82\xd3\xe4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0clogical_view\x12\xa0\x01\n\x11\x44\x65leteLogicalView\x12\x32.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xa8\x02\n\x16\x43reateMaterializedView\x12\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41\x32\n\x10MaterializedView\x12\x1e\x43reateMaterializedViewMetadata\xda\x41-parent,materialized_view,materialized_view_id\x82\xd3\xe4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xbd\x01\n\x13GetMaterializedView\x12\x34.google.bigtable.admin.v2.GetMaterializedViewRequest\x1a*.google.bigtable.admin.v2.MaterializedView\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xd0\x01\n\x15ListMaterializedViews\x12\x36.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1a\x37.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/instances/*}/materializedViews\x12\xaa\x02\n\x16UpdateMaterializedView\x12\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x32\n\x10MaterializedView\x12\x1eUpdateMaterializedViewMetadata\xda\x41\x1dmaterialized_view,update_mask\x82\xd3\xe4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xaf\x01\n\x16\x44\x65leteMaterializedView\x12\x37.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xdd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass + GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass + ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass + ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass + PartialUpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass + DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass + CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass + GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass + ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass + ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass + DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass + CreateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass + UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass + CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass + CreateClusterMetadata::TableProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress").msgclass + CreateClusterMetadata::TableProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State").enummodule + UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass + PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass + PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass + CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass + GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass + ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass + ListAppProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass + UpdateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass + DeleteAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass + UpdateAppProfileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass + ListHotTabletsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsRequest").msgclass + ListHotTabletsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsResponse").msgclass + CreateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewRequest").msgclass + CreateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewMetadata").msgclass + GetLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetLogicalViewRequest").msgclass + ListLogicalViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsRequest").msgclass + ListLogicalViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsResponse").msgclass + UpdateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewRequest").msgclass + UpdateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewMetadata").msgclass + DeleteLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteLogicalViewRequest").msgclass + CreateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewRequest").msgclass + CreateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewMetadata").msgclass + GetMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetMaterializedViewRequest").msgclass + ListMaterializedViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsRequest").msgclass + ListMaterializedViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsResponse").msgclass + UpdateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewRequest").msgclass + UpdateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewMetadata").msgclass + DeleteMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteMaterializedViewRequest").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb new file mode 100644 index 000000000000..5719dfcb7960 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb @@ -0,0 +1,142 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2' +# Original file comments: +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/bigtable/admin/v2/bigtable_instance_admin_pb' + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin' + + # Create an instance within a project. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation + # Gets information about an instance. + rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance + # Lists information about instances in a project. + rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse + # Updates an instance within a project. This method updates only the display + # name and type for an Instance. To update other Instance properties, such as + # labels, use PartialUpdateInstance. + rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance + # Partially updates an instance within a project. This method can modify all + # fields of an Instance and is the preferred way to update an Instance. + rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation + # Delete an instance from a project. + rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty + # Creates a cluster within an instance. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation + # Gets information about a cluster. + rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster + # Lists information about clusters in an instance. + rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse + # Updates a cluster within an instance. + # + # Note that UpdateCluster does not support updating + # cluster_config.cluster_autoscaling_config. In order to update it, you + # must use PartialUpdateCluster. + rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation + # Partially updates a cluster within a project. This method is the preferred + # way to update a Cluster. + # + # To enable and update autoscaling, set + # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + # are ignored. Note that an update cannot simultaneously set serve_nodes to + # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + # also specify both in the update_mask. + # + # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + # and explicitly set a serve_node count via the update_mask. + rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation + # Deletes a cluster from an instance. + rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty + # Creates an app profile within an instance. + rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile + # Gets information about an app profile. + rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile + # Lists information about app profiles in an instance. + rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse + # Updates an app profile within an instance. + rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation + # Deletes an app profile from an instance. + rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty + # Gets the access control policy for an instance resource. Returns an empty + # policy if an instance exists but does not have a policy set. + rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy + # Sets the access control policy on an instance resource. Replaces any + # existing policy. + rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy + # Returns permissions that the caller has on the specified instance resource. + rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse + # Lists hot tablets in a cluster, within the time range provided. Hot + # tablets are ordered based on CPU usage. + rpc :ListHotTablets, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse + # Creates a logical view within an instance. + rpc :CreateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Google::Longrunning::Operation + # Gets information about a logical view. + rpc :GetLogicalView, ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Google::Cloud::Bigtable::Admin::V2::LogicalView + # Lists information about logical views in an instance. + rpc :ListLogicalViews, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse + # Updates a logical view within an instance. + rpc :UpdateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Google::Longrunning::Operation + # Deletes a logical view from an instance. + rpc :DeleteLogicalView, ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Google::Protobuf::Empty + # Creates a materialized view within an instance. + rpc :CreateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Google::Longrunning::Operation + # Gets information about a materialized view. + rpc :GetMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Google::Cloud::Bigtable::Admin::V2::MaterializedView + # Lists information about materialized views in an instance. + rpc :ListMaterializedViews, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse + # Updates a materialized view within an instance. + rpc :UpdateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Google::Longrunning::Operation + # Deletes a materialized view from an instance. + rpc :DeleteMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Google::Protobuf::Empty + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb new file mode 100644 index 000000000000..52a9ea2d2e01 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb @@ -0,0 +1,91 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/bigtable_table_admin.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/common_pb' +require 'google/bigtable/admin/v2/table_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x13RestoreTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info\"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\n\x12\x43reateTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"\xbe\x01\n\x1e\x43reateTableFromSnapshotRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0fsource_snapshot\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\n\x13\x44ropRowRangeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"\xad\x01\n\x11ListTablesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\x9d\x01\n\x12UpdateTableRequest\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13UpdateTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n\x12\x44\x65leteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"P\n\x14UndeleteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"\x83\x01\n\x15UndeleteTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x03\n\x1bModifyColumnFamiliesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xdb\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x12\x34\n\x0bupdate_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x05\n\x03mod\"[\n\x1fGenerateConsistencyTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"\xb2\x02\n\x17\x43heckConsistencyRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1bstandard_read_remote_writes\x18\x03 \x01(\x0b\x32\x32.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\n\x1c\x64\x61ta_boost_read_local_writes\x18\x04 \x01(\x0b\x32\x32.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00\x42\x06\n\x04mode\"\x1a\n\x18StandardReadRemoteWrites\"\x1a\n\x18\x44\x61taBoostReadLocalWrites\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\xe6\x01\n\x14SnapshotTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12=\n\x07\x63luster\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"Q\n\x12GetSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"{\n\x14ListSnapshotsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15\x44\x65leteSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa2\x01\n\x13\x43reateBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"M\n\x10GetBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"P\n\x13\x44\x65leteBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"\x9b\x01\n\x12ListBackupsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe3\x01\n\x11\x43opyBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rsource_backup\x18\x03 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xcd\x01\n\x12\x43opyBackupMetadata\x12\x36\n\x04name\x18\x01 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12@\n\x12source_backup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfo\x12=\n\x08progress\x18\x03 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\xcb\x01\n\x1b\x43reateAuthorizedViewRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1f\n\x12\x61uthorized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0f\x61uthorized_view\x18\x03 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\"\xd2\x01\n\x1c\x43reateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x1aListAuthorizedViewsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x04view\x18\x04 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"z\n\x1bListAuthorizedViewsResponse\x12\x42\n\x10\x61uthorized_views\x18\x01 \x03(\x0b\x32(.google.bigtable.admin.v2.AuthorizedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x18GetAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"\xb9\x01\n\x1bUpdateAuthorizedViewRequest\x12\x46\n\x0f\x61uthorized_view\x18\x01 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x1cUpdateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x1b\x44\x65leteAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x19\x43reateSchemaBundleRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1d\n\x10schema_bundle_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rschema_bundle\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\"\x88\x01\n\x1a\x43reateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x01\n\x19UpdateSchemaBundleRequest\x12\x42\n\rschema_bundle\x18\x01 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x1aUpdateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x16GetSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\n\x18ListSchemaBundlesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x19ListSchemaBundlesResponse\x12>\n\x0eschema_bundles\x18\x01 \x03(\x0b\x32&.google.bigtable.admin.v2.SchemaBundle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x19\x44\x65leteSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\x92@\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\xda\x41\x15parent,table_id,table\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\xda\x41\x1fparent,table_id,source_snapshot\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xce\x01\n\x0bUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1c\n\x05Table\x12\x13UpdateTableMetadata\xda\x41\x11table,update_mask\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xca\x41\x1e\n\x05Table\x12\x15UndeleteTableMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xa1\x02\n\x14\x43reateAuthorizedView\x12\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41.\n\x0e\x41uthorizedView\x12\x1c\x43reateAuthorizedViewMetadata\xda\x41)parent,authorized_view,authorized_view_id\x82\xd3\xe4\x93\x02O\"\x12\x12*\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02\"G\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x0e\n\nENTERPRISE\x10\x01\x12\x13\n\x0f\x45NTERPRISE_PLUS\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass + Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule + Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule + Instance::Edition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Edition").enummodule + AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass + AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass + Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass + Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass + Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass + Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass + Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule + Cluster::NodeScalingFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.NodeScalingFactor").enummodule + AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass + AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass + AppProfile::MultiClusterRoutingUseAny::RowAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity").msgclass + AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass + AppProfile::StandardIsolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.StandardIsolation").msgclass + AppProfile::DataBoostIsolationReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly").msgclass + AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner").enummodule + AppProfile::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.Priority").enummodule + HotTablet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.HotTablet").msgclass + LogicalView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.LogicalView").msgclass + MaterializedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.MaterializedView").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb new file mode 100644 index 000000000000..4b069137666b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/table.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/bigtable/admin/v2/types_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/timestamp_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass + ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass + Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass + Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass + Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule + Table::AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.AutomatedBackupPolicy").msgclass + Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule + Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule + AuthorizedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView").msgclass + AuthorizedView::FamilySubsets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.FamilySubsets").msgclass + AuthorizedView::SubsetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.SubsetView").msgclass + AuthorizedView::ResponseView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.ResponseView").enummodule + ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass + GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass + GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass + GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass + EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass + EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule + Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass + Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule + Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass + Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule + Backup::BackupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.BackupType").enummodule + BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass + TieredStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageConfig").msgclass + TieredStorageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageRule").msgclass + ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ProtoSchema").msgclass + SchemaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SchemaBundle").msgclass + RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb new file mode 100644 index 000000000000..7a9e1c6a0620 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/bigtable/admin/v2/types.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc7\x19\n\x04Type\x12:\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\n\x0bstring_type\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StringH\x00\x12:\n\nint64_type\x18\x05 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float64H\x00\x12\x38\n\tbool_type\x18\x08 \x01(\x0b\x32#.google.bigtable.admin.v2.Type.BoolH\x00\x12\x42\n\x0etimestamp_type\x18\n \x01(\x0b\x32(.google.bigtable.admin.v2.Type.TimestampH\x00\x12\x38\n\tdate_type\x18\x0b \x01(\x0b\x32#.google.bigtable.admin.v2.Type.DateH\x00\x12\x42\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\n\x0bstruct_type\x18\x07 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StructH\x00\x12:\n\narray_type\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ArrayH\x00\x12\x36\n\x08map_type\x18\x04 \x01(\x0b\x32\".google.bigtable.admin.v2.Type.MapH\x00\x12:\n\nproto_type\x18\r \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ProtoH\x00\x12\x38\n\tenum_type\x18\x0e \x01(\x0b\x32#.google.bigtable.admin.v2.Type.EnumH\x00\x1a\xa9\x01\n\x05\x42ytes\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1a_\n\x08\x45ncoding\x12@\n\x03raw\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\x9f\x02\n\x06String\x12@\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.Type.String.Encoding\x1a\xd2\x01\n\x08\x45ncoding\x12N\n\x08utf8_raw\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\r\n\x07Utf8Raw:\x02\x18\x01\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xfd\x02\n\x05Int64\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.Encoding\x1a\xb2\x02\n\x08\x45ncoding\x12X\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\n\x12ordered_code_bytes\x18\x02 \x01(\x0b\x32>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1aN\n\x0e\x42igEndianBytes\x12<\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\xb4\x01\n\tTimestamp\x12\x43\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1a\x62\n\x08\x45ncoding\x12J\n\x11unix_micros_int64\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00\x42\n\n\x08\x65ncoding\x1a\x06\n\x04\x44\x61te\x1a\xb9\x04\n\x06Struct\x12;\n\x06\x66ields\x18\x01 \x03(\x0b\x32+.google.bigtable.admin.v2.Type.Struct.Field\x12@\n\x08\x65ncoding\x18\x02 \x01(\x0b\x32..google.bigtable.admin.v2.Type.Struct.Encoding\x1aI\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xe4\x02\n\x08\x45ncoding\x12M\n\tsingleton\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\n\x0f\x64\x65limited_bytes\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\n\x12ordered_code_bytes\x18\x03 \x01(\x0b\x32?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1a\x0b\n\tSingleton\x1a#\n\x0e\x44\x65limitedBytes\x12\x11\n\tdelimiter\x18\x01 \x01(\x0c\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x37\n\x05Proto\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x14\n\x0cmessage_name\x18\x02 \x01(\t\x1a\x33\n\x04\x45num\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x11\n\tenum_name\x18\x02 \x01(\t\x1a=\n\x05\x41rray\x12\x34\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1ak\n\x03Map\x12\x30\n\x08key_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x32\n\nvalue_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xdb\x03\n\tAggregate\x12\x32\n\ninput_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x37\n\nstate_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.TypeB\x03\xe0\x41\x03\x12;\n\x03sum\x18\x04 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12\x65\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\n\x03max\x18\x06 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\n\x03min\x18\x07 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xcd\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Bigtable + module Admin + module V2 + Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type").msgclass + Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes").msgclass + Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding").msgclass + Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding.Raw").msgclass + Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String").msgclass + Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding").msgclass + Type::String::Encoding::Utf8Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw").msgclass + Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes").msgclass + Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64").msgclass + Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding").msgclass + Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes").msgclass + Type::Int64::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes").msgclass + Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bool").msgclass + Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float32").msgclass + Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float64").msgclass + Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp").msgclass + Type::Timestamp::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp.Encoding").msgclass + Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Date").msgclass + Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct").msgclass + Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Field").msgclass + Type::Struct::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding").msgclass + Type::Struct::Encoding::Singleton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.Singleton").msgclass + Type::Struct::Encoding::DelimitedBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes").msgclass + Type::Struct::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes").msgclass + Type::Proto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Proto").msgclass + Type::Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Enum").msgclass + Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Array").msgclass + Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Map").msgclass + Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate").msgclass + Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Sum").msgclass + Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Max").msgclass + Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Min").msgclass + Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb new file mode 100644 index 000000000000..19a6f94a9e3e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" +require "google/cloud/bigtable/admin/v2/version" + +module Google + module Cloud + module Bigtable + module Admin + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + module V2 + end + end + end + end +end + +helper_path = ::File.join __dir__, "v2", "_helpers.rb" +require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb new file mode 100644 index 000000000000..aeb89a361209 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/bigtable/admin/v2/version" + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + ## + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + module BigtableInstanceAdmin + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb new file mode 100644 index 000000000000..99ecba39a120 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb @@ -0,0 +1,3713 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + ## + # Client for the BigtableInstanceAdmin service. + # + # Service for creating, configuring, and deleting Cloud Bigtable Instances and + # Clusters. Provides access to the Instance and Cluster schemas only, not the + # tables' metadata or data stored in those tables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bigtable_instance_admin_stub + + ## + # Configure the BigtableInstanceAdmin Client class. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BigtableInstanceAdmin clients + # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.create_instance.timeout = 300.0 + + default_config.rpcs.get_instance.timeout = 60.0 + default_config.rpcs.get_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_instances.timeout = 60.0 + default_config.rpcs.list_instances.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_instance.timeout = 60.0 + default_config.rpcs.update_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.partial_update_instance.timeout = 60.0 + default_config.rpcs.partial_update_instance.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_instance.timeout = 60.0 + + default_config.rpcs.create_cluster.timeout = 60.0 + + default_config.rpcs.get_cluster.timeout = 60.0 + default_config.rpcs.get_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_clusters.timeout = 60.0 + default_config.rpcs.list_clusters.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_cluster.timeout = 60.0 + default_config.rpcs.update_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_cluster.timeout = 60.0 + + default_config.rpcs.create_app_profile.timeout = 60.0 + + default_config.rpcs.get_app_profile.timeout = 60.0 + default_config.rpcs.get_app_profile.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_app_profiles.timeout = 60.0 + default_config.rpcs.list_app_profiles.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_app_profile.timeout = 60.0 + default_config.rpcs.update_app_profile.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_app_profile.timeout = 60.0 + + default_config.rpcs.get_iam_policy.timeout = 60.0 + default_config.rpcs.get_iam_policy.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.set_iam_policy.timeout = 60.0 + + default_config.rpcs.test_iam_permissions.timeout = 60.0 + default_config.rpcs.test_iam_permissions.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_hot_tablets.timeout = 60.0 + default_config.rpcs.list_hot_tablets.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableInstanceAdmin Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bigtable_instance_admin_stub.universe_domain + end + + ## + # Create a new BigtableInstanceAdmin client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BigtableInstanceAdmin client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @bigtable_instance_admin_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @bigtable_instance_admin_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations] + # + attr_reader :operations_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @bigtable_instance_admin_stub.logger + end + + # Service calls + + ## + # Create an instance within a project. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + # + # @overload create_instance(request, options = nil) + # Pass arguments to `create_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_instance(parent: nil, instance_id: nil, instance: nil, clusters: nil) + # Pass arguments to `create_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the project in which to create the new + # instance. Values are of the form `projects/{project}`. + # @param instance_id [::String] + # Required. The ID to be used when referring to the new instance within its + # project, e.g., just `myinstance` rather than + # `projects/myproject/instances/myinstance`. + # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # Required. The instance to create. + # Fields marked `OutputOnly` must be left blank. + # @param clusters [::Hash{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash}] + # Required. The clusters to be created within the instance, mapped by desired + # cluster ID, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # Fields marked `OutputOnly` must be left blank. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new + # + # # Call the create_instance method. + # result = client.create_instance request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an instance. + # + # @overload get_instance(request, options = nil) + # Pass arguments to `get_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_instance(name: nil) + # Pass arguments to `get_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested instance. Values are of the form + # `projects/{project}/instances/{instance}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new + # + # # Call the get_instance method. + # result = client.get_instance request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + # p result + # + def get_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about instances in a project. + # + # @overload list_instances(request, options = nil) + # Pass arguments to `list_instances` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_instances(parent: nil, page_token: nil) + # Pass arguments to `list_instances` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the project for which a list of instances is + # requested. Values are of the form `projects/{project}`. + # @param page_token [::String] + # DEPRECATED: This field is unused and ignored. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new + # + # # Call the list_instances method. + # result = client.list_instances request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. + # p result + # + def list_instances request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_instances.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_instances.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_instances.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an instance within a project. This method updates only the display + # name and type for an Instance. To update other Instance properties, such as + # labels, use PartialUpdateInstance. + # + # @overload update_instance(request, options = nil) + # Pass arguments to `update_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::Instance} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_instance(name: nil, display_name: nil, type: nil, edition: nil, labels: nil, tags: nil) + # Pass arguments to `update_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The unique name of the instance. Values are of the form + # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + # @param display_name [::String] + # Required. The descriptive name for this instance as it appears in UIs. + # Can be changed at any time, but should be kept globally unique + # to avoid confusion. + # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] + # The type of the instance. Defaults to `PRODUCTION`. + # @param edition [::Google::Cloud::Bigtable::Admin::V2::Instance::Edition] + # Optional. The edition of the instance. See + # {::Google::Cloud::Bigtable::Admin::V2::Instance::Edition Edition} for details. + # @param labels [::Hash{::String => ::String}] + # Labels are a flexible and lightweight mechanism for organizing cloud + # resources into groups that reflect a customer's organizational needs and + # deployment strategies. They can be used to filter resources and aggregate + # metrics. + # + # * Label keys must be between 1 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + # * Label values must be between 0 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + # * No more than 64 labels can be associated with a given resource. + # * Keys and values must both be under 128 bytes. + # @param tags [::Hash{::String => ::String}] + # Optional. Input only. Immutable. Tag keys/values directly bound to this + # resource. For example: + # - "123/environment": "production", + # - "123/costCenter": "marketing" + # + # Tags and Labels (above) are both used to bind metadata to resources, with + # different use-cases. See + # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + # in-depth overview on the difference between tags and labels. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::Instance.new + # + # # Call the update_instance method. + # result = client.update_instance request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + # p result + # + def update_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Instance + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Partially updates an instance within a project. This method can modify all + # fields of an Instance and is the preferred way to update an Instance. + # + # @overload partial_update_instance(request, options = nil) + # Pass arguments to `partial_update_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload partial_update_instance(instance: nil, update_mask: nil) + # Pass arguments to `partial_update_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] + # Required. The Instance which will (partially) replace the current value. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of Instance fields which should be replaced. + # Must be explicitly set. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new + # + # # Call the partial_update_instance method. + # result = client.partial_update_instance request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def partial_update_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.partial_update_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.instance&.name + header_params["instance.name"] = request.instance.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.partial_update_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete an instance from a project. + # + # @overload delete_instance(request, options = nil) + # Pass arguments to `delete_instance` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_instance(name: nil) + # Pass arguments to `delete_instance` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the instance to be deleted. + # Values are of the form `projects/{project}/instances/{instance}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new + # + # # Call the delete_instance method. + # result = client.delete_instance request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_instance request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_instance.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_instance.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_instance.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a cluster within an instance. + # + # Note that exactly one of Cluster.serve_nodes and + # Cluster.cluster_config.cluster_autoscaling_config can be set. If + # serve_nodes is set to non-zero, then the cluster is manually scaled. If + # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + # enabled. + # + # @overload create_cluster(request, options = nil) + # Pass arguments to `create_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil) + # Pass arguments to `create_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the new + # cluster. Values are of the form `projects/{project}/instances/{instance}`. + # @param cluster_id [::String] + # Required. The ID to be used when referring to the new cluster within its + # instance, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # Required. The cluster to be created. + # Fields marked `OutputOnly` must be left blank. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new + # + # # Call the create_cluster method. + # result = client.create_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a cluster. + # + # @overload get_cluster(request, options = nil) + # Pass arguments to `get_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_cluster(name: nil) + # Pass arguments to `get_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new + # + # # Call the get_cluster method. + # result = client.get_cluster request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. + # p result + # + def get_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about clusters in an instance. + # + # @overload list_clusters(request, options = nil) + # Pass arguments to `list_clusters` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_clusters(parent: nil, page_token: nil) + # Pass arguments to `list_clusters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which a list of clusters is + # requested. Values are of the form + # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + # Clusters for all Instances in a project, e.g., + # `projects/myproject/instances/-`. + # @param page_token [::String] + # DEPRECATED: This field is unused and ignored. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new + # + # # Call the list_clusters method. + # result = client.list_clusters request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. + # p result + # + def list_clusters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_clusters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_clusters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_clusters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a cluster within an instance. + # + # Note that UpdateCluster does not support updating + # cluster_config.cluster_autoscaling_config. In order to update it, you + # must use PartialUpdateCluster. + # + # @overload update_cluster(request, options = nil) + # Pass arguments to `update_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_cluster(name: nil, location: nil, serve_nodes: nil, node_scaling_factor: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil) + # Pass arguments to `update_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The unique name of the cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + # @param location [::String] + # Immutable. The location where this cluster's nodes and storage reside. For + # best performance, clients should be located as close as possible to this + # cluster. Currently only zones are supported, so values should be of the + # form `projects/{project}/locations/{zone}`. + # @param serve_nodes [::Integer] + # The number of nodes in the cluster. If no value is set, + # Cloud Bigtable automatically allocates nodes based on your data footprint + # and optimized for 50% storage utilization. + # @param node_scaling_factor [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] + # Immutable. The node scaling factor of this cluster. + # @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash] + # Configuration for this cluster. + # @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType] + # Immutable. The type of storage used by this cluster to serve its + # parent instance's tables, unless explicitly overridden. + # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash] + # Immutable. The encryption configuration for CMEK-protected clusters. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::Cluster.new + # + # # Call the update_cluster method. + # result = client.update_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Partially updates a cluster within a project. This method is the preferred + # way to update a Cluster. + # + # To enable and update autoscaling, set + # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + # are ignored. Note that an update cannot simultaneously set serve_nodes to + # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + # also specify both in the update_mask. + # + # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + # and explicitly set a serve_node count via the update_mask. + # + # @overload partial_update_cluster(request, options = nil) + # Pass arguments to `partial_update_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload partial_update_cluster(cluster: nil, update_mask: nil) + # Pass arguments to `partial_update_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] + # Required. The Cluster which contains the partial updates to be applied, + # subject to the update_mask. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of Cluster fields which should be replaced. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new + # + # # Call the partial_update_cluster method. + # result = client.partial_update_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def partial_update_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.partial_update_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.cluster&.name + header_params["cluster.name"] = request.cluster.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.partial_update_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a cluster from an instance. + # + # @overload delete_cluster(request, options = nil) + # Pass arguments to `delete_cluster` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_cluster(name: nil) + # Pass arguments to `delete_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the cluster to be deleted. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new + # + # # Call the delete_cluster method. + # result = client.delete_cluster request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an app profile within an instance. + # + # @overload create_app_profile(request, options = nil) + # Pass arguments to `create_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_app_profile(parent: nil, app_profile_id: nil, app_profile: nil, ignore_warnings: nil) + # Pass arguments to `create_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the new app + # profile. Values are of the form `projects/{project}/instances/{instance}`. + # @param app_profile_id [::String] + # Required. The ID to be used when referring to the new app profile within + # its instance, e.g., just `myprofile` rather than + # `projects/myproject/instances/myinstance/appProfiles/myprofile`. + # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] + # Required. The app profile to be created. + # Fields marked `OutputOnly` will be ignored. + # @param ignore_warnings [::Boolean] + # If true, ignore safety checks when creating the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new + # + # # Call the create_app_profile method. + # result = client.create_app_profile request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p result + # + def create_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an app profile. + # + # @overload get_app_profile(request, options = nil) + # Pass arguments to `get_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_app_profile(name: nil) + # Pass arguments to `get_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested app profile. Values are of the + # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new + # + # # Call the get_app_profile method. + # result = client.get_app_profile request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p result + # + def get_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about app profiles in an instance. + # + # @overload list_app_profiles(request, options = nil) + # Pass arguments to `list_app_profiles` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_app_profiles(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_app_profiles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which a list of app profiles + # is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + # e.g., `projects/myproject/instances/-`. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new + # + # # Call the list_app_profiles method. + # result = client.list_app_profiles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. + # p item + # end + # + def list_app_profiles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_app_profiles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_app_profiles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_app_profiles, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an app profile within an instance. + # + # @overload update_app_profile(request, options = nil) + # Pass arguments to `update_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_app_profile(app_profile: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] + # Required. The app profile which will (partially) replace the current value. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The subset of app profile fields which should be replaced. + # If unset, all fields will be replaced. + # @param ignore_warnings [::Boolean] + # If true, ignore safety checks when updating the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new + # + # # Call the update_app_profile method. + # result = client.update_app_profile request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.app_profile&.name + header_params["app_profile.name"] = request.app_profile.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an app profile from an instance. + # + # @overload delete_app_profile(request, options = nil) + # Pass arguments to `delete_app_profile` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_app_profile(name: nil, ignore_warnings: nil) + # Pass arguments to `delete_app_profile` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the app profile to be deleted. Values are of + # the form + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # @param ignore_warnings [::Boolean] + # Required. If true, ignore safety checks when deleting the app profile. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new + # + # # Call the delete_app_profile method. + # result = client.delete_app_profile request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_app_profile request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_app_profile.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_app_profile.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for an instance resource. Returns an empty + # policy if an instance exists but does not have a policy set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on an instance resource. Replaces any + # existing policy. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns permissions that the caller has on the specified instance resource. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists hot tablets in a cluster, within the time range provided. Hot + # tablets are ordered based on CPU usage. + # + # @overload list_hot_tablets(request, options = nil) + # Pass arguments to `list_hot_tablets` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_hot_tablets(parent: nil, start_time: nil, end_time: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_hot_tablets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The cluster name to list hot tablets. + # Value is in the following form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # The start time to list hot tablets. The hot tablets in the response will + # have start times between the requested start time and end time. Start time + # defaults to Now if it is unset, and end time defaults to Now - 24 hours if + # it is unset. The start time should be less than the end time, and the + # maximum allowed time range between start time and end time is 48 hours. + # Start time and end time should have values between Now and Now - 14 days. + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # The end time to list hot tablets. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size that is empty or zero lets the server choose the number of + # items to return. A page_size which is strictly positive will return at most + # that many items. A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls do not need a + # page_size field. If a page_size is set in subsequent calls, it must match + # the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new + # + # # Call the list_hot_tablets method. + # result = client.list_hot_tablets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. + # p item + # end + # + def list_hot_tablets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_hot_tablets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_hot_tablets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_hot_tablets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_hot_tablets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_hot_tablets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a logical view within an instance. + # + # @overload create_logical_view(request, options = nil) + # Pass arguments to `create_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_logical_view(parent: nil, logical_view_id: nil, logical_view: nil) + # Pass arguments to `create_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent instance where this logical view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @param logical_view_id [::String] + # Required. The ID to use for the logical view, which will become the final + # component of the logical view's resource name. + # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] + # Required. The logical view to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new + # + # # Call the create_logical_view method. + # result = client.create_logical_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_logical_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a logical view. + # + # @overload get_logical_view(request, options = nil) + # Pass arguments to `get_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_logical_view(name: nil) + # Pass arguments to `get_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested logical view. Values are of the + # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new + # + # # Call the get_logical_view method. + # result = client.get_logical_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. + # p result + # + def get_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_logical_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about logical views in an instance. + # + # @overload list_logical_views(request, options = nil) + # Pass arguments to `list_logical_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_logical_views(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_logical_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which the list of logical + # views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @param page_size [::Integer] + # Optional. The maximum number of logical views to return. The service may + # return fewer than this value + # @param page_token [::String] + # Optional. A page token, received from a previous `ListLogicalViews` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListLogicalViews` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new + # + # # Call the list_logical_views method. + # result = client.list_logical_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. + # p item + # end + # + def list_logical_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_logical_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_logical_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_logical_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_logical_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_logical_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a logical view within an instance. + # + # @overload update_logical_view(request, options = nil) + # Pass arguments to `update_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_logical_view(logical_view: nil, update_mask: nil) + # Pass arguments to `update_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] + # Required. The logical view to update. + # + # The logical view's `name` field is used to identify the view to update. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new + # + # # Call the update_logical_view method. + # result = client.update_logical_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.logical_view&.name + header_params["logical_view.name"] = request.logical_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_logical_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a logical view from an instance. + # + # @overload delete_logical_view(request, options = nil) + # Pass arguments to `delete_logical_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_logical_view(name: nil, etag: nil) + # Pass arguments to `delete_logical_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the logical view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @param etag [::String] + # Optional. The current etag of the logical view. + # If an etag is provided and does not match the current etag of the + # logical view, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new + # + # # Call the delete_logical_view method. + # result = client.delete_logical_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_logical_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_logical_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_logical_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_logical_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_logical_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a materialized view within an instance. + # + # @overload create_materialized_view(request, options = nil) + # Pass arguments to `create_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_materialized_view(parent: nil, materialized_view_id: nil, materialized_view: nil) + # Pass arguments to `create_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent instance where this materialized view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @param materialized_view_id [::String] + # Required. The ID to use for the materialized view, which will become the + # final component of the materialized view's resource name. + # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] + # Required. The materialized view to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new + # + # # Call the create_materialized_view method. + # result = client.create_materialized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :create_materialized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about a materialized view. + # + # @overload get_materialized_view(request, options = nil) + # Pass arguments to `get_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_materialized_view(name: nil) + # Pass arguments to `get_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested materialized view. Values are of + # the form + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new + # + # # Call the get_materialized_view method. + # result = client.get_materialized_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. + # p result + # + def get_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :get_materialized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists information about materialized views in an instance. + # + # @overload list_materialized_views(request, options = nil) + # Pass arguments to `list_materialized_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_materialized_views(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_materialized_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which the list of + # materialized views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @param page_size [::Integer] + # Optional. The maximum number of materialized views to return. The service + # may return fewer than this value + # @param page_token [::String] + # Optional. A page token, received from a previous `ListMaterializedViews` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListMaterializedViews` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new + # + # # Call the list_materialized_views method. + # result = client.list_materialized_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. + # p item + # end + # + def list_materialized_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_materialized_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_materialized_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_materialized_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :list_materialized_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_materialized_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a materialized view within an instance. + # + # @overload update_materialized_view(request, options = nil) + # Pass arguments to `update_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_materialized_view(materialized_view: nil, update_mask: nil) + # Pass arguments to `update_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] + # Required. The materialized view to update. + # + # The materialized view's `name` field is used to identify the view to + # update. Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new + # + # # Call the update_materialized_view method. + # result = client.update_materialized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.materialized_view&.name + header_params["materialized_view.name"] = request.materialized_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :update_materialized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a materialized view from an instance. + # + # @overload delete_materialized_view(request, options = nil) + # Pass arguments to `delete_materialized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_materialized_view(name: nil, etag: nil) + # Pass arguments to `delete_materialized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the materialized view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @param etag [::String] + # Optional. The current etag of the materialized view. + # If an etag is provided and does not match the current etag of the + # materialized view, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new + # + # # Call the delete_materialized_view method. + # result = client.delete_materialized_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_materialized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_materialized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_materialized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_materialized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_instance_admin_stub.call_rpc :delete_materialized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the BigtableInstanceAdmin API. + # + # This class represents the configuration for BigtableInstanceAdmin, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_instance to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_instance.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_instance.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BigtableInstanceAdmin API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :create_instance + ## + # RPC-specific configuration for `get_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :get_instance + ## + # RPC-specific configuration for `list_instances` + # @return [::Gapic::Config::Method] + # + attr_reader :list_instances + ## + # RPC-specific configuration for `update_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :update_instance + ## + # RPC-specific configuration for `partial_update_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :partial_update_instance + ## + # RPC-specific configuration for `delete_instance` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_instance + ## + # RPC-specific configuration for `create_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :create_cluster + ## + # RPC-specific configuration for `get_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :get_cluster + ## + # RPC-specific configuration for `list_clusters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_clusters + ## + # RPC-specific configuration for `update_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :update_cluster + ## + # RPC-specific configuration for `partial_update_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :partial_update_cluster + ## + # RPC-specific configuration for `delete_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_cluster + ## + # RPC-specific configuration for `create_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :create_app_profile + ## + # RPC-specific configuration for `get_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :get_app_profile + ## + # RPC-specific configuration for `list_app_profiles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_app_profiles + ## + # RPC-specific configuration for `update_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :update_app_profile + ## + # RPC-specific configuration for `delete_app_profile` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_app_profile + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + ## + # RPC-specific configuration for `list_hot_tablets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_hot_tablets + ## + # RPC-specific configuration for `create_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_logical_view + ## + # RPC-specific configuration for `get_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_logical_view + ## + # RPC-specific configuration for `list_logical_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_logical_views + ## + # RPC-specific configuration for `update_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_logical_view + ## + # RPC-specific configuration for `delete_logical_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_logical_view + ## + # RPC-specific configuration for `create_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_materialized_view + ## + # RPC-specific configuration for `get_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_materialized_view + ## + # RPC-specific configuration for `list_materialized_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_materialized_views + ## + # RPC-specific configuration for `update_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_materialized_view + ## + # RPC-specific configuration for `delete_materialized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_materialized_view + + # @private + def initialize parent_rpcs = nil + create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance + @create_instance = ::Gapic::Config::Method.new create_instance_config + get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance + @get_instance = ::Gapic::Config::Method.new get_instance_config + list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances + @list_instances = ::Gapic::Config::Method.new list_instances_config + update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance + @update_instance = ::Gapic::Config::Method.new update_instance_config + partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance + @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config + delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance + @delete_instance = ::Gapic::Config::Method.new delete_instance_config + create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster + @create_cluster = ::Gapic::Config::Method.new create_cluster_config + get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster + @get_cluster = ::Gapic::Config::Method.new get_cluster_config + list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters + @list_clusters = ::Gapic::Config::Method.new list_clusters_config + update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster + @update_cluster = ::Gapic::Config::Method.new update_cluster_config + partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster + @partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config + delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster + @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config + create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile + @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config + get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile + @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config + list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles + @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config + update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile + @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config + delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile + @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + list_hot_tablets_config = parent_rpcs.list_hot_tablets if parent_rpcs.respond_to? :list_hot_tablets + @list_hot_tablets = ::Gapic::Config::Method.new list_hot_tablets_config + create_logical_view_config = parent_rpcs.create_logical_view if parent_rpcs.respond_to? :create_logical_view + @create_logical_view = ::Gapic::Config::Method.new create_logical_view_config + get_logical_view_config = parent_rpcs.get_logical_view if parent_rpcs.respond_to? :get_logical_view + @get_logical_view = ::Gapic::Config::Method.new get_logical_view_config + list_logical_views_config = parent_rpcs.list_logical_views if parent_rpcs.respond_to? :list_logical_views + @list_logical_views = ::Gapic::Config::Method.new list_logical_views_config + update_logical_view_config = parent_rpcs.update_logical_view if parent_rpcs.respond_to? :update_logical_view + @update_logical_view = ::Gapic::Config::Method.new update_logical_view_config + delete_logical_view_config = parent_rpcs.delete_logical_view if parent_rpcs.respond_to? :delete_logical_view + @delete_logical_view = ::Gapic::Config::Method.new delete_logical_view_config + create_materialized_view_config = parent_rpcs.create_materialized_view if parent_rpcs.respond_to? :create_materialized_view + @create_materialized_view = ::Gapic::Config::Method.new create_materialized_view_config + get_materialized_view_config = parent_rpcs.get_materialized_view if parent_rpcs.respond_to? :get_materialized_view + @get_materialized_view = ::Gapic::Config::Method.new get_materialized_view_config + list_materialized_views_config = parent_rpcs.list_materialized_views if parent_rpcs.respond_to? :list_materialized_views + @list_materialized_views = ::Gapic::Config::Method.new list_materialized_views_config + update_materialized_view_config = parent_rpcs.update_materialized_view if parent_rpcs.respond_to? :update_materialized_view + @update_materialized_view = ::Gapic::Config::Method.new update_materialized_view_config + delete_materialized_view_config = parent_rpcs.delete_materialized_view if parent_rpcs.respond_to? :delete_materialized_view + @delete_materialized_view = ::Gapic::Config::Method.new delete_materialized_view_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb new file mode 100644 index 000000000000..4b166e3ac286 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb @@ -0,0 +1,59 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Credentials for the BigtableInstanceAdmin API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.cluster", + "https://www.googleapis.com/auth/bigtable.admin.instance", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + self.env_vars = [ + "BIGTABLE_CREDENTIALS", + "BIGTABLE_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "BIGTABLE_CREDENTIALS_JSON", + "BIGTABLE_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb new file mode 100644 index 000000000000..d49308f480c1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb @@ -0,0 +1,843 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BigtableInstanceAdmin Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableInstanceAdmin Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb new file mode 100644 index 000000000000..8ee57571df69 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb @@ -0,0 +1,180 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableInstanceAdmin + # Path helper methods for the BigtableInstanceAdmin API. + module Paths + ## + # Create a fully-qualified AppProfile resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}` + # + # @param project [String] + # @param instance [String] + # @param app_profile [String] + # + # @return [::String] + def app_profile_path project:, instance:, app_profile: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/appProfiles/#{app_profile}" + end + + ## + # Create a fully-qualified Cluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # + # @return [::String] + def cluster_path project:, instance:, cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}" + end + + ## + # Create a fully-qualified CryptoKey resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # + # @return [::String] + def crypto_key_path project:, location:, key_ring:, crypto_key: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" + end + + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}` + # + # @param project [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/instances/#{instance}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified LogicalView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + # + # @param project [String] + # @param instance [String] + # @param logical_view [String] + # + # @return [::String] + def logical_view_path project:, instance:, logical_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/logicalViews/#{logical_view}" + end + + ## + # Create a fully-qualified MaterializedView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + # + # @param project [String] + # @param instance [String] + # @param materialized_view [String] + # + # @return [::String] + def materialized_view_path project:, instance:, materialized_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/materializedViews/#{materialized_view}" + end + + ## + # Create a fully-qualified Project resource string. + # + # The resource will be in the following format: + # + # `projects/{project}` + # + # @param project [String] + # + # @return [::String] + def project_path project: + "projects/#{project}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb new file mode 100644 index 000000000000..cc08c6872c99 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/bigtable/admin/v2/version" + +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/paths" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/operations" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/client" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + ## + # Service for creating, configuring, and deleting Cloud Bigtable tables. + # + # + # Provides access to the table schemas only, not the data stored within + # the tables. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + module BigtableTableAdmin + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "bigtable_table_admin", "helpers.rb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb new file mode 100644 index 000000000000..a6a0d9ba05cd --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb @@ -0,0 +1,4266 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/bigtable/admin/v2/bigtable_table_admin_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + ## + # Client for the BigtableTableAdmin service. + # + # Service for creating, configuring, and deleting Cloud Bigtable tables. + # + # + # Provides access to the table schemas only, not the data stored within + # the tables. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :bigtable_table_admin_stub + + ## + # Configure the BigtableTableAdmin Client class. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all BigtableTableAdmin clients + # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.create_table.timeout = 300.0 + + default_config.rpcs.list_tables.timeout = 60.0 + default_config.rpcs.list_tables.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.get_table.timeout = 60.0 + default_config.rpcs.get_table.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_table.timeout = 300.0 + + default_config.rpcs.modify_column_families.timeout = 300.0 + + default_config.rpcs.drop_row_range.timeout = 3600.0 + + default_config.rpcs.generate_consistency_token.timeout = 60.0 + default_config.rpcs.generate_consistency_token.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.check_consistency.timeout = 3600.0 + default_config.rpcs.check_consistency.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.get_snapshot.timeout = 60.0 + default_config.rpcs.get_snapshot.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.list_snapshots.timeout = 60.0 + default_config.rpcs.list_snapshots.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.delete_snapshot.timeout = 300.0 + + default_config.rpcs.create_backup.timeout = 60.0 + + default_config.rpcs.get_backup.timeout = 60.0 + default_config.rpcs.get_backup.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.update_backup.timeout = 60.0 + + default_config.rpcs.delete_backup.timeout = 300.0 + + default_config.rpcs.list_backups.timeout = 60.0 + default_config.rpcs.list_backups.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.restore_table.timeout = 60.0 + + default_config.rpcs.get_iam_policy.timeout = 60.0 + default_config.rpcs.get_iam_policy.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config.rpcs.set_iam_policy.timeout = 60.0 + + default_config.rpcs.test_iam_permissions.timeout = 60.0 + default_config.rpcs.test_iam_permissions.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableTableAdmin Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @bigtable_table_admin_stub.universe_domain + end + + ## + # Create a new BigtableTableAdmin client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the BigtableTableAdmin client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @bigtable_table_admin_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @bigtable_table_admin_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations] + # + attr_reader :operations_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @bigtable_table_admin_stub.logger + end + + # Service calls + + ## + # Creates a new table in the specified instance. + # The table can be created with a full set of initial column families, + # specified in the request. + # + # @overload create_table(request, options = nil) + # Pass arguments to `create_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_table(parent: nil, table_id: nil, table: nil, initial_splits: nil) + # Pass arguments to `create_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @param table_id [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # Maximum 50 characters. + # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] + # Required. The Table to create. + # @param initial_splits [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, ::Hash>] + # The optional list of row keys that will be used to initially split the + # table into several tablets (tablets are similar to HBase regions). + # Given two split keys, `s1` and `s2`, three tablets will be created, + # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + # + # Example: + # + # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + # `"other", "zz"]` + # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + # * Key assignment: + # - Tablet 1 `[, apple) => {"a"}.` + # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + # - Tablet 4 `[customer_2, other) => {"customer_2"}.` + # - Tablet 5 `[other, ) => {"other", "zz"}.` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new + # + # # Call the create_table method. + # result = client.create_table request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def create_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new table from the specified snapshot. The target table must + # not exist. The snapshot and the table must be in the same instance. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload create_table_from_snapshot(request, options = nil) + # Pass arguments to `create_table_from_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_table_from_snapshot(parent: nil, table_id: nil, source_snapshot: nil) + # Pass arguments to `create_table_from_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @param table_id [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # @param source_snapshot [::String] + # Required. The unique name of the snapshot from which to restore the table. + # The snapshot and the table must be in the same instance. Values are of the + # form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new + # + # # Call the create_table_from_snapshot method. + # result = client.create_table_from_snapshot request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_table_from_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_table_from_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all tables served from a specified instance. + # + # @overload list_tables(request, options = nil) + # Pass arguments to `list_tables` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_tables(parent: nil, view: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_tables` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the instance for which tables should be + # listed. Values are of the form `projects/{project}/instances/{instance}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned tables' fields. + # NAME_ONLY view (default) and REPLICATION_VIEW are supported. + # @param page_size [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new + # + # # Call the list_tables method. + # result = client.list_tables request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. + # p item + # end + # + def list_tables request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_tables.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_tables.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_tables.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_tables, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified table. + # + # @overload get_table(request, options = nil) + # Pass arguments to `get_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_table(name: nil, view: nil) + # Pass arguments to `get_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested table. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned table's fields. + # Defaults to `SCHEMA_VIEW` if unspecified. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new + # + # # Call the get_table method. + # result = client.get_table request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def get_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a specified table. + # + # @overload update_table(request, options = nil) + # Pass arguments to `update_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_table(table: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] + # Required. The table to update. + # The table's `name` field is used to identify the table to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to update. + # A mask specifying which fields (e.g. `change_stream_config`) in the `table` + # field should be updated. This mask is relative to the `table` field, not to + # the request message. The wildcard (*) path is currently not supported. + # Currently UpdateTable is only supported for the following fields: + # + # * `change_stream_config` + # * `change_stream_config.retention_period` + # * `deletion_protection` + # * `row_key_schema` + # + # If `column_families` is set in `update_mask`, it will return an + # UNIMPLEMENTED error. + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore safety checks when updating the table. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new + # + # # Call the update_table method. + # result = client.update_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.table&.name + header_params["table.name"] = request.table.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes a specified table and all of its data. + # + # @overload delete_table(request, options = nil) + # Pass arguments to `delete_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_table(name: nil) + # Pass arguments to `delete_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new + # + # # Call the delete_table method. + # result = client.delete_table request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Restores a specified table which was accidentally deleted. + # + # @overload undelete_table(request, options = nil) + # Pass arguments to `undelete_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload undelete_table(name: nil) + # Pass arguments to `undelete_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to be restored. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new + # + # # Call the undelete_table method. + # result = client.undelete_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def undelete_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.undelete_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.undelete_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.undelete_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new AuthorizedView in a table. + # + # @overload create_authorized_view(request, options = nil) + # Pass arguments to `create_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_authorized_view(parent: nil, authorized_view_id: nil, authorized_view: nil) + # Pass arguments to `create_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. This is the name of the table the AuthorizedView belongs to. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param authorized_view_id [::String] + # Required. The id of the AuthorizedView to create. This AuthorizedView must + # not already exist. The `authorized_view_id` appended to `parent` forms the + # full AuthorizedView name of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] + # Required. The AuthorizedView to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new + # + # # Call the create_authorized_view method. + # result = client.create_authorized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_authorized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all AuthorizedViews from a specific table. + # + # @overload list_authorized_views(request, options = nil) + # Pass arguments to `list_authorized_views` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_authorized_views(parent: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `list_authorized_views` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the table for which AuthorizedViews should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param page_size [::Integer] + # Optional. Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @param page_token [::String] + # Optional. The value of `next_page_token` returned by a previous call. + # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedViews' + # fields. Default to NAME_ONLY. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new + # + # # Call the list_authorized_views method. + # result = client.list_authorized_views request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + # p item + # end + # + def list_authorized_views request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_authorized_views.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_authorized_views.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_authorized_views.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_authorized_views, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_authorized_views, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information from a specified AuthorizedView. + # + # @overload get_authorized_view(request, options = nil) + # Pass arguments to `get_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_authorized_view(name: nil, view: nil) + # Pass arguments to `get_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedView's + # fields. Default to BASIC. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new + # + # # Call the get_authorized_view method. + # result = client.get_authorized_view request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + # p result + # + def get_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_authorized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an AuthorizedView in a table. + # + # @overload update_authorized_view(request, options = nil) + # Pass arguments to `update_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_authorized_view(authorized_view: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] + # Required. The AuthorizedView to update. The `name` in `authorized_view` is + # used to identify the AuthorizedView. AuthorizedView name must in this + # format: + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # A mask specifying which fields in the AuthorizedView resource should be + # updated. This mask is relative to the AuthorizedView resource, not to the + # request message. A field will be overwritten if it is in the mask. If + # empty, all fields set in the request will be overwritten. A special value + # `*` means to overwrite all fields (including fields not set in the + # request). + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore the safety checks when updating the + # AuthorizedView. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new + # + # # Call the update_authorized_view method. + # result = client.update_authorized_view request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.authorized_view&.name + header_params["authorized_view.name"] = request.authorized_view.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_authorized_view, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes a specified AuthorizedView. + # + # @overload delete_authorized_view(request, options = nil) + # Pass arguments to `delete_authorized_view` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_authorized_view(name: nil, etag: nil) + # Pass arguments to `delete_authorized_view` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the AuthorizedView to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @param etag [::String] + # Optional. The current etag of the AuthorizedView. + # If an etag is provided and does not match the current etag of the + # AuthorizedView, deletion will be blocked and an ABORTED error will be + # returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new + # + # # Call the delete_authorized_view method. + # result = client.delete_authorized_view request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_authorized_view request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_authorized_view.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_authorized_view.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_authorized_view.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_authorized_view, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a series of column family modifications on the specified table. + # Either all or none of the modifications will occur before this method + # returns, but data requests received prior to that point may see a table + # where only some modifications have taken effect. + # + # @overload modify_column_families(request, options = nil) + # Pass arguments to `modify_column_families` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload modify_column_families(name: nil, modifications: nil, ignore_warnings: nil) + # Pass arguments to `modify_column_families` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table whose families should be modified. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param modifications [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, ::Hash>] + # Required. Modifications to be atomically applied to the specified table's + # families. Entries are applied in order, meaning that earlier modifications + # can be masked by later ones (in the case of repeated updates to the same + # family, for example). + # @param ignore_warnings [::Boolean] + # Optional. If true, ignore safety checks when modifying the column families. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new + # + # # Call the modify_column_families method. + # result = client.modify_column_families request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + # p result + # + def modify_column_families request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.modify_column_families.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout, + metadata: metadata, + retry_policy: @config.rpcs.modify_column_families.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently drop/delete a row range from a specified table. The request can + # specify whether to delete all rows in a table, or only those that match a + # particular prefix. + # + # @overload drop_row_range(request, options = nil) + # Pass arguments to `drop_row_range` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload drop_row_range(name: nil, row_key_prefix: nil, delete_all_data_from_table: nil) + # Pass arguments to `drop_row_range` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table on which to drop a range of rows. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param row_key_prefix [::String] + # Delete all rows that start with this row key prefix. Prefix cannot be + # zero length. + # + # Note: The following parameters are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param delete_all_data_from_table [::Boolean] + # Delete all rows in the table. Setting this to false is a no-op. + # + # Note: The following parameters are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new + # + # # Call the drop_row_range method. + # result = client.drop_row_range request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def drop_row_range request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.drop_row_range.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout, + metadata: metadata, + retry_policy: @config.rpcs.drop_row_range.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Generates a consistency token for a Table, which can be used in + # CheckConsistency to check whether mutations to the table that finished + # before this call started have been replicated. The tokens will be available + # for 90 days. + # + # @overload generate_consistency_token(request, options = nil) + # Pass arguments to `generate_consistency_token` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_consistency_token(name: nil) + # Pass arguments to `generate_consistency_token` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the Table for which to create a consistency + # token. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new + # + # # Call the generate_consistency_token method. + # result = client.generate_consistency_token request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. + # p result + # + def generate_consistency_token request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_consistency_token.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_consistency_token.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Checks replication consistency based on a consistency token, that is, if + # replication has caught up based on the conditions specified in the token + # and the check request. + # + # @overload check_consistency(request, options = nil) + # Pass arguments to `check_consistency` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload check_consistency(name: nil, consistency_token: nil, standard_read_remote_writes: nil, data_boost_read_local_writes: nil) + # Pass arguments to `check_consistency` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the Table for which to check replication + # consistency. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param consistency_token [::String] + # Required. The token created using GenerateConsistencyToken for the Table. + # @param standard_read_remote_writes [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites, ::Hash] + # Checks that reads using an app profile with `StandardIsolation` can + # see all writes committed before the token was created, even if the + # read and write target different clusters. + # + # Note: The following parameters are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param data_boost_read_local_writes [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites, ::Hash] + # Checks that reads using an app profile with `DataBoostIsolationReadOnly` + # can see all writes committed before the token was created, but only if + # the read and write target the same cluster. + # + # Note: The following parameters are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new + # + # # Call the check_consistency method. + # result = client.check_consistency request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. + # p result + # + def check_consistency request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.check_consistency.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.check_consistency.timeout, + metadata: metadata, + retry_policy: @config.rpcs.check_consistency.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new snapshot in the specified cluster from the specified + # source table. The cluster and the table must be in the same instance. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload snapshot_table(request, options = nil) + # Pass arguments to `snapshot_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload snapshot_table(name: nil, cluster: nil, snapshot_id: nil, ttl: nil, description: nil) + # Pass arguments to `snapshot_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the table to have the snapshot taken. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param cluster [::String] + # Required. The name of the cluster where the snapshot will be created in. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param snapshot_id [::String] + # Required. The ID by which the new snapshot should be referred to within the + # parent cluster, e.g., `mysnapshot` of the form: + # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + # @param ttl [::Google::Protobuf::Duration, ::Hash] + # The amount of time that the new snapshot can stay active after it is + # created. Once 'ttl' expires, the snapshot will get deleted. The maximum + # amount of time a snapshot can stay active is 7 days. If 'ttl' is not + # specified, the default value of 24 hours will be used. + # @param description [::String] + # Description of the snapshot. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new + # + # # Call the snapshot_table method. + # result = client.snapshot_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def snapshot_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.snapshot_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.snapshot_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified snapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload get_snapshot(request, options = nil) + # Pass arguments to `get_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_snapshot(name: nil) + # Pass arguments to `get_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the requested snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Snapshot] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new + # + # # Call the get_snapshot method. + # result = client.get_snapshot request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. + # p result + # + def get_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all snapshots associated with the specified cluster. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload list_snapshots(request, options = nil) + # Pass arguments to `list_snapshots` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_snapshots(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_snapshots` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The unique name of the cluster for which snapshots should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @param page_size [::Integer] + # The maximum number of snapshots to return per page. + # CURRENTLY UNIMPLEMENTED AND IGNORED. + # @param page_token [::String] + # The value of `next_page_token` returned by a previous call. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new + # + # # Call the list_snapshots method. + # result = client.list_snapshots request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. + # p item + # end + # + def list_snapshots request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_snapshots.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_snapshots.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_snapshots, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Permanently deletes the specified snapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not + # recommended for production use. It is not subject to any SLA or deprecation + # policy. + # + # @overload delete_snapshot(request, options = nil) + # Pass arguments to `delete_snapshot` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_snapshot(name: nil) + # Pass arguments to `delete_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the snapshot to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new + # + # # Call the delete_snapshot method. + # result = client.delete_snapshot request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts creating a new Cloud Bigtable Backup. The returned backup + # {::Google::Longrunning::Operation long-running operation} can be used to + # track creation of the backup. The + # {::Google::Longrunning::Operation#metadata metadata} field type is + # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupMetadata CreateBackupMetadata}. The + # {::Google::Longrunning::Operation#response response} field type is + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}, if successful. Cancelling the + # returned operation will stop the creation and delete the backup. + # + # @overload create_backup(request, options = nil) + # Pass arguments to `create_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_backup(parent: nil, backup_id: nil, backup: nil) + # Pass arguments to `create_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. This must be one of the clusters in the instance in which this + # table is located. The backup will be stored in this cluster. Values are + # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param backup_id [::String] + # Required. The id of the backup to be created. The `backup_id` along with + # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create + # the full backup name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] + # Required. The backup to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new + # + # # Call the create_backup method. + # result = client.create_backup request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata on a pending or completed Cloud Bigtable Backup. + # + # @overload get_backup(request, options = nil) + # Pass arguments to `get_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_backup(name: nil) + # Pass arguments to `get_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the backup. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new + # + # # Call the get_backup method. + # result = client.get_backup request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + # p result + # + def get_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a pending or completed Cloud Bigtable Backup. + # + # @overload update_backup(request, options = nil) + # Pass arguments to `update_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_backup(backup: nil, update_mask: nil) + # Pass arguments to `update_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] + # Required. The backup to update. `backup.name`, and the fields to be updated + # as specified by `update_mask` are required. Other fields are ignored. + # Update is only supported for the following fields: + # + # * `backup.expire_time`. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. A mask specifying which fields (e.g. `expire_time`) in the + # Backup resource should be updated. This mask is relative to the Backup + # resource, not to the request message. The field mask must always be + # specified; this prevents any future fields from being erased accidentally + # by clients that do not know about them. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new + # + # # Call the update_backup method. + # result = client.update_backup request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + # p result + # + def update_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.backup&.name + header_params["backup.name"] = request.backup.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a pending or completed Cloud Bigtable backup. + # + # @overload delete_backup(request, options = nil) + # Pass arguments to `delete_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_backup(name: nil) + # Pass arguments to `delete_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the backup to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new + # + # # Call the delete_backup method. + # result = client.delete_backup request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Cloud Bigtable backups. Returns both completed and pending + # backups. + # + # @overload list_backups(request, options = nil) + # Pass arguments to `list_backups` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_backups(parent: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_backups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The cluster to list backups from. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list backups for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @param filter [::String] + # A filter expression that filters backups listed in the response. + # The expression must specify the field name, a comparison operator, + # and the value that you want to use for filtering. The value must be a + # string, a number, or a boolean. The comparison operator must be + # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + # roughly synonymous with equality. Filter rules are case insensitive. + # + # The fields eligible for filtering are: + # + # * `name` + # * `source_table` + # * `state` + # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `size_bytes` + # + # To filter on multiple expressions, provide each separate expression within + # parentheses. By default, each expression is an AND expression. However, + # you can include AND, OR, and NOT expressions explicitly. + # + # Some examples of using filters are: + # + # * `name:"exact"` --> The backup's name is the string "exact". + # * `name:howl` --> The backup's name contains the string "howl". + # * `source_table:prod` + # --> The source_table's name contains the string "prod". + # * `state:CREATING` --> The backup is pending creation. + # * `state:READY` --> The backup is fully created and ready for use. + # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + # --> The backup name contains the string "howl" and start_time + # of the backup is before 2018-03-28T14:50:00Z. + # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + # @param order_by [::String] + # An expression for specifying the sort order of the results of the request. + # The string value should specify one or more fields in + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at + # https://aip.dev/132#ordering. + # + # Fields supported are: + # + # * name + # * source_table + # * expire_time + # * start_time + # * end_time + # * size_bytes + # * state + # + # For example, "start_time". The default sorting order is ascending. + # To specify descending order for the field, a suffix " desc" should + # be appended to the field name. For example, "start_time desc". + # Redundant space characters in the syntax are insigificant. + # + # If order_by is empty, results will be sorted by `start_time` in descending + # order starting from the most recently created backup. + # @param page_size [::Integer] + # Number of backups to be returned in the response. If 0 or + # less, defaults to the server's maximum allowed page size. + # @param page_token [::String] + # If non-empty, `page_token` should contain a + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} + # from a previous + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the + # same `parent` and with the same `filter`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new + # + # # Call the list_backups method. + # result = client.list_backups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. + # p item + # end + # + def list_backups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_backups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_backups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_backups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_backups, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new table by restoring from a completed backup. The + # returned table {::Google::Longrunning::Operation long-running operation} can + # be used to track the progress of the operation, and to cancel it. The + # {::Google::Longrunning::Operation#metadata metadata} field type is + # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableMetadata RestoreTableMetadata}. The + # {::Google::Longrunning::Operation#response response} type is + # {::Google::Cloud::Bigtable::Admin::V2::Table Table}, if successful. + # + # @overload restore_table(request, options = nil) + # Pass arguments to `restore_table` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload restore_table(parent: nil, table_id: nil, backup: nil) + # Pass arguments to `restore_table` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the instance in which to create the restored + # table. Values are of the form `projects//instances/`. + # @param table_id [::String] + # Required. The id of the table to create and restore to. This + # table must not already exist. The `table_id` appended to + # `parent` forms the full table name of the form + # `projects//instances//tables/`. + # @param backup [::String] + # Name of the backup from which to restore. Values are of the form + # `projects//instances//clusters//backups/`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new + # + # # Call the restore_table method. + # result = client.restore_table request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def restore_table request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.restore_table.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.restore_table.timeout, + metadata: metadata, + retry_policy: @config.rpcs.restore_table.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Copy a Cloud Bigtable backup to a new backup in the destination cluster + # located in the destination instance and project. + # + # @overload copy_backup(request, options = nil) + # Pass arguments to `copy_backup` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload copy_backup(parent: nil, backup_id: nil, source_backup: nil, expire_time: nil) + # Pass arguments to `copy_backup` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the destination cluster that will contain the backup + # copy. The cluster must already exist. Values are of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @param backup_id [::String] + # Required. The id of the new backup. The `backup_id` along with `parent` + # are combined as \\{parent}/backups/\\{backup_id} to create the full backup + # name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @param source_backup [::String] + # Required. The source backup to be copied from. + # The source backup needs to be in READY state for it to be copied. + # Copying a copied backup is not allowed. + # Once CopyBackup is in progress, the source backup cannot be deleted or + # cleaned up on expiration until CopyBackup is finished. + # Values are of the form: + # `projects//instances//clusters//backups/`. + # @param expire_time [::Google::Protobuf::Timestamp, ::Hash] + # Required. Required. The expiration time of the copied backup with + # microsecond granularity that must be at least 6 hours and at most 30 days + # from the time the request is received. Once the `expire_time` has + # passed, Cloud Bigtable will delete the backup and free the resources used + # by the backup. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new + # + # # Call the copy_backup method. + # result = client.copy_backup request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def copy_backup request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.copy_backup.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.copy_backup.timeout, + metadata: metadata, + retry_policy: @config.rpcs.copy_backup.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :copy_backup, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a Bigtable resource. + # Returns an empty policy if the resource exists but does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on a Bigtable resource. + # Replaces any existing policy. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns permissions that the caller has on the specified Bigtable + # resource. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new schema bundle in the specified table. + # + # @overload create_schema_bundle(request, options = nil) + # Pass arguments to `create_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_schema_bundle(parent: nil, schema_bundle_id: nil, schema_bundle: nil) + # Pass arguments to `create_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this schema bundle will be created. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param schema_bundle_id [::String] + # Required. The unique ID to use for the schema bundle, which will become the + # final component of the schema bundle's resource name. + # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] + # Required. The schema bundle to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new + # + # # Call the create_schema_bundle method. + # result = client.create_schema_bundle request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :create_schema_bundle, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a schema bundle in the specified table. + # + # @overload update_schema_bundle(request, options = nil) + # Pass arguments to `update_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_schema_bundle(schema_bundle: nil, update_mask: nil, ignore_warnings: nil) + # Pass arguments to `update_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] + # Required. The schema bundle to update. + # + # The schema bundle's `name` field is used to identify the schema bundle to + # update. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. + # @param ignore_warnings [::Boolean] + # Optional. If set, ignore the safety checks when updating the Schema Bundle. + # The safety checks are: + # - The new Schema Bundle is backwards compatible with the existing Schema + # Bundle. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new + # + # # Call the update_schema_bundle method. + # result = client.update_schema_bundle request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.schema_bundle&.name + header_params["schema_bundle.name"] = request.schema_bundle.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :update_schema_bundle, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets metadata information about the specified schema bundle. + # + # @overload get_schema_bundle(request, options = nil) + # Pass arguments to `get_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_schema_bundle(name: nil) + # Pass arguments to `get_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the schema bundle to retrieve. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new + # + # # Call the get_schema_bundle method. + # result = client.get_schema_bundle request + # + # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + # p result + # + def get_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :get_schema_bundle, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all schema bundles associated with the specified table. + # + # @overload list_schema_bundles(request, options = nil) + # Pass arguments to `list_schema_bundles` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_schema_bundles(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_schema_bundles` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of schema bundles. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @param page_size [::Integer] + # The maximum number of schema bundles to return. If the value is positive, + # the server may return at most this value. If unspecified, the server will + # return the maximum allowed page size. + # @param page_token [::String] + # A page token, received from a previous `ListSchemaBundles` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListSchemaBundles` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new + # + # # Call the list_schema_bundles method. + # result = client.list_schema_bundles request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + # p item + # end + # + def list_schema_bundles request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_schema_bundles.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_schema_bundles.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_schema_bundles.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :list_schema_bundles, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_schema_bundles, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a schema bundle in the specified table. + # + # @overload delete_schema_bundle(request, options = nil) + # Pass arguments to `delete_schema_bundle` via a request object, either of type + # {::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_schema_bundle(name: nil, etag: nil) + # Pass arguments to `delete_schema_bundle` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The unique name of the schema bundle to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @param etag [::String] + # Optional. The etag of the schema bundle. + # If this is provided, it must match the server's etag. The server + # returns an ABORTED error on a mismatched etag. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/bigtable/admin/v2" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new + # + # # Call the delete_schema_bundle method. + # result = client.delete_schema_bundle request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_schema_bundle request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_schema_bundle.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_schema_bundle.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_schema_bundle.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @bigtable_table_admin_stub.call_rpc :delete_schema_bundle, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the BigtableTableAdmin API. + # + # This class represents the configuration for BigtableTableAdmin, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_table to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_table.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_table.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the BigtableTableAdmin API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_table` + # @return [::Gapic::Config::Method] + # + attr_reader :create_table + ## + # RPC-specific configuration for `create_table_from_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :create_table_from_snapshot + ## + # RPC-specific configuration for `list_tables` + # @return [::Gapic::Config::Method] + # + attr_reader :list_tables + ## + # RPC-specific configuration for `get_table` + # @return [::Gapic::Config::Method] + # + attr_reader :get_table + ## + # RPC-specific configuration for `update_table` + # @return [::Gapic::Config::Method] + # + attr_reader :update_table + ## + # RPC-specific configuration for `delete_table` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_table + ## + # RPC-specific configuration for `undelete_table` + # @return [::Gapic::Config::Method] + # + attr_reader :undelete_table + ## + # RPC-specific configuration for `create_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :create_authorized_view + ## + # RPC-specific configuration for `list_authorized_views` + # @return [::Gapic::Config::Method] + # + attr_reader :list_authorized_views + ## + # RPC-specific configuration for `get_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :get_authorized_view + ## + # RPC-specific configuration for `update_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :update_authorized_view + ## + # RPC-specific configuration for `delete_authorized_view` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_authorized_view + ## + # RPC-specific configuration for `modify_column_families` + # @return [::Gapic::Config::Method] + # + attr_reader :modify_column_families + ## + # RPC-specific configuration for `drop_row_range` + # @return [::Gapic::Config::Method] + # + attr_reader :drop_row_range + ## + # RPC-specific configuration for `generate_consistency_token` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_consistency_token + ## + # RPC-specific configuration for `check_consistency` + # @return [::Gapic::Config::Method] + # + attr_reader :check_consistency + ## + # RPC-specific configuration for `snapshot_table` + # @return [::Gapic::Config::Method] + # + attr_reader :snapshot_table + ## + # RPC-specific configuration for `get_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :get_snapshot + ## + # RPC-specific configuration for `list_snapshots` + # @return [::Gapic::Config::Method] + # + attr_reader :list_snapshots + ## + # RPC-specific configuration for `delete_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_snapshot + ## + # RPC-specific configuration for `create_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :create_backup + ## + # RPC-specific configuration for `get_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :get_backup + ## + # RPC-specific configuration for `update_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :update_backup + ## + # RPC-specific configuration for `delete_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_backup + ## + # RPC-specific configuration for `list_backups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_backups + ## + # RPC-specific configuration for `restore_table` + # @return [::Gapic::Config::Method] + # + attr_reader :restore_table + ## + # RPC-specific configuration for `copy_backup` + # @return [::Gapic::Config::Method] + # + attr_reader :copy_backup + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + ## + # RPC-specific configuration for `create_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :create_schema_bundle + ## + # RPC-specific configuration for `update_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :update_schema_bundle + ## + # RPC-specific configuration for `get_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :get_schema_bundle + ## + # RPC-specific configuration for `list_schema_bundles` + # @return [::Gapic::Config::Method] + # + attr_reader :list_schema_bundles + ## + # RPC-specific configuration for `delete_schema_bundle` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_schema_bundle + + # @private + def initialize parent_rpcs = nil + create_table_config = parent_rpcs.create_table if parent_rpcs.respond_to? :create_table + @create_table = ::Gapic::Config::Method.new create_table_config + create_table_from_snapshot_config = parent_rpcs.create_table_from_snapshot if parent_rpcs.respond_to? :create_table_from_snapshot + @create_table_from_snapshot = ::Gapic::Config::Method.new create_table_from_snapshot_config + list_tables_config = parent_rpcs.list_tables if parent_rpcs.respond_to? :list_tables + @list_tables = ::Gapic::Config::Method.new list_tables_config + get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table + @get_table = ::Gapic::Config::Method.new get_table_config + update_table_config = parent_rpcs.update_table if parent_rpcs.respond_to? :update_table + @update_table = ::Gapic::Config::Method.new update_table_config + delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table + @delete_table = ::Gapic::Config::Method.new delete_table_config + undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table + @undelete_table = ::Gapic::Config::Method.new undelete_table_config + create_authorized_view_config = parent_rpcs.create_authorized_view if parent_rpcs.respond_to? :create_authorized_view + @create_authorized_view = ::Gapic::Config::Method.new create_authorized_view_config + list_authorized_views_config = parent_rpcs.list_authorized_views if parent_rpcs.respond_to? :list_authorized_views + @list_authorized_views = ::Gapic::Config::Method.new list_authorized_views_config + get_authorized_view_config = parent_rpcs.get_authorized_view if parent_rpcs.respond_to? :get_authorized_view + @get_authorized_view = ::Gapic::Config::Method.new get_authorized_view_config + update_authorized_view_config = parent_rpcs.update_authorized_view if parent_rpcs.respond_to? :update_authorized_view + @update_authorized_view = ::Gapic::Config::Method.new update_authorized_view_config + delete_authorized_view_config = parent_rpcs.delete_authorized_view if parent_rpcs.respond_to? :delete_authorized_view + @delete_authorized_view = ::Gapic::Config::Method.new delete_authorized_view_config + modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families + @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config + drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range + @drop_row_range = ::Gapic::Config::Method.new drop_row_range_config + generate_consistency_token_config = parent_rpcs.generate_consistency_token if parent_rpcs.respond_to? :generate_consistency_token + @generate_consistency_token = ::Gapic::Config::Method.new generate_consistency_token_config + check_consistency_config = parent_rpcs.check_consistency if parent_rpcs.respond_to? :check_consistency + @check_consistency = ::Gapic::Config::Method.new check_consistency_config + snapshot_table_config = parent_rpcs.snapshot_table if parent_rpcs.respond_to? :snapshot_table + @snapshot_table = ::Gapic::Config::Method.new snapshot_table_config + get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot + @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config + list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots + @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config + delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot + @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config + create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup + @create_backup = ::Gapic::Config::Method.new create_backup_config + get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup + @get_backup = ::Gapic::Config::Method.new get_backup_config + update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup + @update_backup = ::Gapic::Config::Method.new update_backup_config + delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup + @delete_backup = ::Gapic::Config::Method.new delete_backup_config + list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups + @list_backups = ::Gapic::Config::Method.new list_backups_config + restore_table_config = parent_rpcs.restore_table if parent_rpcs.respond_to? :restore_table + @restore_table = ::Gapic::Config::Method.new restore_table_config + copy_backup_config = parent_rpcs.copy_backup if parent_rpcs.respond_to? :copy_backup + @copy_backup = ::Gapic::Config::Method.new copy_backup_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + create_schema_bundle_config = parent_rpcs.create_schema_bundle if parent_rpcs.respond_to? :create_schema_bundle + @create_schema_bundle = ::Gapic::Config::Method.new create_schema_bundle_config + update_schema_bundle_config = parent_rpcs.update_schema_bundle if parent_rpcs.respond_to? :update_schema_bundle + @update_schema_bundle = ::Gapic::Config::Method.new update_schema_bundle_config + get_schema_bundle_config = parent_rpcs.get_schema_bundle if parent_rpcs.respond_to? :get_schema_bundle + @get_schema_bundle = ::Gapic::Config::Method.new get_schema_bundle_config + list_schema_bundles_config = parent_rpcs.list_schema_bundles if parent_rpcs.respond_to? :list_schema_bundles + @list_schema_bundles = ::Gapic::Config::Method.new list_schema_bundles_config + delete_schema_bundle_config = parent_rpcs.delete_schema_bundle if parent_rpcs.respond_to? :delete_schema_bundle + @delete_schema_bundle = ::Gapic::Config::Method.new delete_schema_bundle_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb new file mode 100644 index 000000000000..b13ab97ad469 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Credentials for the BigtableTableAdmin API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigtable.admin", + "https://www.googleapis.com/auth/bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-bigtable.admin", + "https://www.googleapis.com/auth/cloud-bigtable.admin.table", + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + self.env_vars = [ + "BIGTABLE_CREDENTIALS", + "BIGTABLE_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "BIGTABLE_CREDENTIALS_JSON", + "BIGTABLE_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb new file mode 100644 index 000000000000..ad9957f0f690 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb @@ -0,0 +1,843 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the BigtableTableAdmin Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the BigtableTableAdmin Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb new file mode 100644 index 000000000000..c10bcef1999e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb @@ -0,0 +1,214 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + module BigtableTableAdmin + # Path helper methods for the BigtableTableAdmin API. + module Paths + ## + # Create a fully-qualified AuthorizedView resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # @param authorized_view [String] + # + # @return [::String] + def authorized_view_path project:, instance:, table:, authorized_view: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}/authorizedViews/#{authorized_view}" + end + + ## + # Create a fully-qualified Backup resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # @param backup [String] + # + # @return [::String] + def backup_path project:, instance:, cluster:, backup: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}" + end + + ## + # Create a fully-qualified Cluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # + # @return [::String] + def cluster_path project:, instance:, cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}" + end + + ## + # Create a fully-qualified CryptoKeyVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # @param crypto_key_version [String] + # + # @return [::String] + def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" + end + + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}` + # + # @param project [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/instances/#{instance}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified SchemaBundle resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # @param schema_bundle [String] + # + # @return [::String] + def schema_bundle_path project:, instance:, table:, schema_bundle: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}/schemaBundles/#{schema_bundle}" + end + + ## + # Create a fully-qualified Snapshot resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}` + # + # @param project [String] + # @param instance [String] + # @param cluster [String] + # @param snapshot [String] + # + # @return [::String] + def snapshot_path project:, instance:, cluster:, snapshot: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}" + end + + ## + # Create a fully-qualified Table resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/instances/{instance}/tables/{table}` + # + # @param project [String] + # @param instance [String] + # @param table [String] + # + # @return [::String] + def table_path project:, instance:, table: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" + + "projects/#{project}/instances/#{instance}/tables/#{table}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb new file mode 100644 index 000000000000..b19e81c131f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + VERSION = "0.0.1" + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md new file mode 100644 index 000000000000..2968913b938d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md @@ -0,0 +1,4 @@ +# Cloud Bigtable Admin V2 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..3ab0b096d445 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb @@ -0,0 +1,593 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # + # Note: This feature should not be used in most cases. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb new file mode 100644 index 000000000000..a39e72495e1c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb @@ -0,0 +1,767 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Request message for BigtableInstanceAdmin.CreateInstance. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the project in which to create the new + # instance. Values are of the form `projects/{project}`. + # @!attribute [rw] instance_id + # @return [::String] + # Required. The ID to be used when referring to the new instance within its + # project, e.g., just `myinstance` rather than + # `projects/myproject/instances/myinstance`. + # @!attribute [rw] instance + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # Required. The instance to create. + # Fields marked `OutputOnly` must be left blank. + # @!attribute [rw] clusters + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster}] + # Required. The clusters to be created within the instance, mapped by desired + # cluster ID, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # Fields marked `OutputOnly` must be left blank. + class CreateInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + class ClustersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for BigtableInstanceAdmin.GetInstance. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested instance. Values are of the form + # `projects/{project}/instances/{instance}`. + class GetInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListInstances. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the project for which a list of instances is + # requested. Values are of the form `projects/{project}`. + # @!attribute [rw] page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListInstancesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListInstances. + # @!attribute [rw] instances + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Instance>] + # The list of requested instances. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which Instance information could not be retrieved, + # due to an outage or some other transient condition. + # Instances whose Clusters are all in one of the failed locations + # may be missing from `instances`, and Instances with at least one + # Cluster in a failed location may only have partial information returned. + # Values are of the form `projects//locations/` + # @!attribute [rw] next_page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListInstancesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.PartialUpdateInstance. + # @!attribute [rw] instance + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] + # Required. The Instance which will (partially) replace the current value. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of Instance fields which should be replaced. + # Must be explicitly set. + class PartialUpdateInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteInstance. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the instance to be deleted. + # Values are of the form `projects/{project}/instances/{instance}`. + class DeleteInstanceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateCluster. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the new + # cluster. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] cluster_id + # @return [::String] + # Required. The ID to be used when referring to the new cluster within its + # instance, e.g., just `mycluster` rather than + # `projects/myproject/instances/myinstance/clusters/mycluster`. + # @!attribute [rw] cluster + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # Required. The cluster to be created. + # Fields marked `OutputOnly` must be left blank. + class CreateClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetCluster. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + class GetClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListClusters. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which a list of clusters is + # requested. Values are of the form + # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + # Clusters for all Instances in a project, e.g., + # `projects/myproject/instances/-`. + # @!attribute [rw] page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListClustersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListClusters. + # @!attribute [rw] clusters + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Cluster>] + # The list of requested clusters. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which Cluster information could not be retrieved, + # due to an outage or some other transient condition. + # Clusters from these locations may be missing from `clusters`, + # or may only have partial information returned. + # Values are of the form `projects//locations/` + # @!attribute [rw] next_page_token + # @return [::String] + # DEPRECATED: This field is unused and ignored. + class ListClustersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteCluster. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the cluster to be deleted. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + class DeleteClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateInstance. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest] + # The request that prompted the initiation of this CreateInstance operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateInstanceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateInstance. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest] + # The request that prompted the initiation of this UpdateInstance operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateInstanceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateCluster. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest] + # The request that prompted the initiation of this CreateCluster operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + # @!attribute [rw] tables + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress}] + # Keys: the full `name` of each table that existed in the instance when + # CreateCluster was first called, i.e. + # `projects//instances//tables/
`. Any table added + # to the instance by a later API call will be created in the new cluster by + # that API call, not this one. + # + # Values: information on how much of a table's data has been copied to the + # newly-created cluster so far. + class CreateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Progress info for copying a table's data to the new cluster. + # @!attribute [rw] estimated_size_bytes + # @return [::Integer] + # Estimate of the size of the table to be copied. + # @!attribute [rw] estimated_copied_bytes + # @return [::Integer] + # Estimate of the number of bytes copied so far for this table. + # This will eventually reach 'estimated_size_bytes' unless the table copy + # is CANCELLED. + # @!attribute [rw] state + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress::State] + class TableProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + module State + STATE_UNSPECIFIED = 0 + + # The table has not yet begun copying to the new cluster. + PENDING = 1 + + # The table is actively being copied to the new cluster. + COPYING = 2 + + # The table has been fully copied to the new cluster. + COMPLETED = 3 + + # The table was deleted before it finished copying to the new cluster. + # Note that tables deleted after completion will stay marked as + # COMPLETED, not CANCELLED. + CANCELLED = 4 + end + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress] + class TablesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The metadata for the Operation returned by UpdateCluster. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # The request that prompted the initiation of this UpdateCluster operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by PartialUpdateCluster. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest] + # The original request for PartialUpdateCluster. + class PartialUpdateClusterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.PartialUpdateCluster. + # @!attribute [rw] cluster + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] + # Required. The Cluster which contains the partial updates to be applied, + # subject to the update_mask. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of Cluster fields which should be replaced. + class PartialUpdateClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateAppProfile. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the new app + # profile. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] app_profile_id + # @return [::String] + # Required. The ID to be used when referring to the new app profile within + # its instance, e.g., just `myprofile` rather than + # `projects/myproject/instances/myinstance/appProfiles/myprofile`. + # @!attribute [rw] app_profile + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # Required. The app profile to be created. + # Fields marked `OutputOnly` will be ignored. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # If true, ignore safety checks when creating the app profile. + class CreateAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetAppProfile. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested app profile. Values are of the + # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + class GetAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListAppProfiles. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which a list of app profiles + # is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + # e.g., `projects/myproject/instances/-`. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListAppProfilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListAppProfiles. + # @!attribute [rw] app_profiles + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] + # The list of requested app profiles. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all app profiles could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + # @!attribute [rw] failed_locations + # @return [::Array<::String>] + # Locations from which AppProfile information could not be retrieved, + # due to an outage or some other transient condition. + # AppProfiles from these locations may be missing from `app_profiles`. + # Values are of the form `projects//locations/` + class ListAppProfilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateAppProfile. + # @!attribute [rw] app_profile + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] + # Required. The app profile which will (partially) replace the current value. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The subset of app profile fields which should be replaced. + # If unset, all fields will be replaced. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # If true, ignore safety checks when updating the app profile. + class UpdateAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteAppProfile. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the app profile to be deleted. Values are of + # the form + # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Required. If true, ignore safety checks when deleting the app profile. + class DeleteAppProfileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateAppProfile. + class UpdateAppProfileMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListHotTablets. + # @!attribute [rw] parent + # @return [::String] + # Required. The cluster name to list hot tablets. + # Value is in the following form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The start time to list hot tablets. The hot tablets in the response will + # have start times between the requested start time and end time. Start time + # defaults to Now if it is unset, and end time defaults to Now - 24 hours if + # it is unset. The start time should be less than the end time, and the + # maximum allowed time range between start time and end time is 48 hours. + # Start time and end time should have values between Now and Now - 14 days. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # The end time to list hot tablets. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size that is empty or zero lets the server choose the number of + # items to return. A page_size which is strictly positive will return at most + # that many items. A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls do not need a + # page_size field. If a page_size is set in subsequent calls, it must match + # the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListHotTabletsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListHotTablets. + # @!attribute [rw] hot_tablets + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] + # List of hot tablets in the tables of the requested cluster that fall + # within the requested time range. Hot tablets are ordered by node cpu usage + # percent. If there are multiple hot tablets that correspond to the same + # tablet within a 15-minute interval, only the hot tablet with the highest + # node cpu usage will be included in the response. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all hot tablets could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListHotTabletsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateLogicalView. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent instance where this logical view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @!attribute [rw] logical_view_id + # @return [::String] + # Required. The ID to use for the logical view, which will become the final + # component of the logical view's resource name. + # @!attribute [rw] logical_view + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # Required. The logical view to create. + class CreateLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateLogicalView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest] + # The request that prompted the initiation of this CreateLogicalView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateLogicalViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetLogicalView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested logical view. Values are of the + # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + class GetLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListLogicalViews. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which the list of logical + # views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of logical views to return. The service may + # return fewer than this value + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListLogicalViews` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListLogicalViews` must + # match the call that provided the page token. + class ListLogicalViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListLogicalViews. + # @!attribute [rw] logical_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] + # The list of requested logical views. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListLogicalViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateLogicalView. + # @!attribute [rw] logical_view + # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] + # Required. The logical view to update. + # + # The logical view's `name` field is used to identify the view to update. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateLogicalView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest] + # The request that prompted the initiation of this UpdateLogicalView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation was started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateLogicalViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteLogicalView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the logical view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the logical view. + # If an etag is provided and does not match the current etag of the + # logical view, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteLogicalViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.CreateMaterializedView. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent instance where this materialized view will be created. + # Format: `projects/{project}/instances/{instance}`. + # @!attribute [rw] materialized_view_id + # @return [::String] + # Required. The ID to use for the materialized view, which will become the + # final component of the materialized view's resource name. + # @!attribute [rw] materialized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # Required. The materialized view to create. + class CreateMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateMaterializedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest] + # The request that prompted the initiation of this CreateMaterializedView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateMaterializedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.GetMaterializedView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested materialized view. Values are of + # the form + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + class GetMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.ListMaterializedViews. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which the list of + # materialized views is requested. Values are of the form + # `projects/{project}/instances/{instance}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of materialized views to return. The service + # may return fewer than this value + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListMaterializedViews` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListMaterializedViews` + # must match the call that provided the page token. + class ListMaterializedViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BigtableInstanceAdmin.ListMaterializedViews. + # @!attribute [rw] materialized_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] + # The list of requested materialized views. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListMaterializedViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.UpdateMaterializedView. + # @!attribute [rw] materialized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] + # Required. The materialized view to update. + # + # The materialized view's `name` field is used to identify the view to + # update. Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + class UpdateMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by UpdateMaterializedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest] + # The request that prompted the initiation of this UpdateMaterializedView + # operation. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation was started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateMaterializedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BigtableInstanceAdmin.DeleteMaterializedView. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the materialized view to be deleted. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the materialized view. + # If an etag is provided and does not match the current etag of the + # materialized view, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteMaterializedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb new file mode 100644 index 000000000000..cde156ec6152 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb @@ -0,0 +1,1167 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the instance in which to create the restored + # table. Values are of the form `projects//instances/`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The id of the table to create and restore to. This + # table must not already exist. The `table_id` appended to + # `parent` forms the full table name of the form + # `projects//instances//tables/`. + # @!attribute [rw] backup + # @return [::String] + # Name of the backup from which to restore. Values are of the form + # `projects//instances//clusters//backups/`. + class RestoreTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the long-running operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. + # @!attribute [rw] name + # @return [::String] + # Name of the table being created and restored to. + # @!attribute [rw] source_type + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] + # The type of the restore source. + # @!attribute [rw] backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # @!attribute [rw] optimize_table_operation_name + # @return [::String] + # If exists, the name of the long-running operation that will be used to + # track the post-restore optimization process to optimize the performance of + # the restored table. The metadata type of the long-running operation is + # [OptimizeRestoreTableMetadata][]. The response type is + # {::Google::Protobuf::Empty Empty}. This long-running operation may be + # automatically created by the system if applicable after the + # RestoreTable long-running operation completes successfully. This operation + # may not be created if the table is already optimized or the restore was + # not successful. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable} + # operation. + class RestoreTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the long-running operation used to track the progress + # of optimizations performed on a newly restored table. This long-running + # operation is automatically created by the system after the successful + # completion of a table restore, and cannot be cancelled. + # @!attribute [rw] name + # @return [::String] + # Name of the restored table being optimized. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the post-restore optimizations. + class OptimizeRestoredTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table google.bigtable.admin.v2.BigtableTableAdmin.CreateTable} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # Maximum 50 characters. + # @!attribute [rw] table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Required. The Table to create. + # @!attribute [rw] initial_splits + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>] + # The optional list of row keys that will be used to initially split the + # table into several tablets (tablets are similar to HBase regions). + # Given two split keys, `s1` and `s2`, three tablets will be created, + # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + # + # Example: + # + # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + # `"other", "zz"]` + # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + # * Key assignment: + # - Tablet 1 `[, apple) => {"a"}.` + # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + # - Tablet 4 `[customer_2, other) => {"customer_2"}.` + # - Tablet 5 `[other, ) => {"other", "zz"}.` + class CreateTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # An initial split point for a newly created table. + # @!attribute [rw] key + # @return [::String] + # Row key to use as an initial tablet boundary. + class Split + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance in which to create the table. + # Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] table_id + # @return [::String] + # Required. The name by which the new table should be referred to within the + # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + # @!attribute [rw] source_snapshot + # @return [::String] + # Required. The unique name of the snapshot from which to restore the table. + # The snapshot and the table must be in the same instance. Values are of the + # form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class CreateTableFromSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table on which to drop a range of rows. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] row_key_prefix + # @return [::String] + # Delete all rows that start with this row key prefix. Prefix cannot be + # zero length. + # + # Note: The following fields are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delete_all_data_from_table + # @return [::Boolean] + # Delete all rows in the table. Setting this to false is a no-op. + # + # Note: The following fields are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class DropRowRangeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the instance for which tables should be + # listed. Values are of the form `projects/{project}/instances/{instance}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned tables' fields. + # NAME_ONLY view (default) and REPLICATION_VIEW are supported. + # @!attribute [rw] page_size + # @return [::Integer] + # Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListTablesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} + # @!attribute [rw] tables + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Table>] + # The tables present in the requested instance. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all tables could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListTablesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table google.bigtable.admin.v2.BigtableTableAdmin.GetTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested table. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] + # The view to be applied to the returned table's fields. + # Defaults to `SCHEMA_VIEW` if unspecified. + class GetTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. + # @!attribute [rw] table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Required. The table to update. + # The table's `name` field is used to identify the table to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to update. + # A mask specifying which fields (e.g. `change_stream_config`) in the `table` + # field should be updated. This mask is relative to the `table` field, not to + # the request message. The wildcard (*) path is currently not supported. + # Currently UpdateTable is only supported for the following fields: + # + # * `change_stream_config` + # * `change_stream_config.retention_period` + # * `deletion_protection` + # * `row_key_schema` + # + # If `column_families` is set in `update_mask`, it will return an + # UNIMPLEMENTED error. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore safety checks when updating the table. + class UpdateTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. + # @!attribute [rw] name + # @return [::String] + # The name of the table being updated. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class DeleteTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to be restored. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class UndeleteTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}. + # @!attribute [rw] name + # @return [::String] + # The name of the table being restored. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was cancelled. + class UndeleteTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table whose families should be modified. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] modifications + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>] + # Required. Modifications to be atomically applied to the specified table's + # families. Entries are applied in order, meaning that earlier modifications + # can be masked by later ones (in the case of repeated updates to the same + # family, for example). + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore safety checks when modifying the column families. + class ModifyColumnFamiliesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A create, update, or delete of a particular column family. + # @!attribute [rw] id + # @return [::String] + # The ID of the column family to be modified. + # @!attribute [rw] create + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + # Create a new column family with the specified schema, or fail if + # one already exists with the given ID. + # + # Note: The following fields are mutually exclusive: `create`, `update`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] update + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + # Update an existing column family to the specified schema, or fail + # if no column family exists with the given ID. + # + # Note: The following fields are mutually exclusive: `update`, `create`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] drop + # @return [::Boolean] + # Drop (delete) the column family with the given ID, or fail if no such + # family exists. + # + # Note: The following fields are mutually exclusive: `drop`, `create`, `update`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` + # mod should be updated, ignored for other modification types. If unset or + # empty, we treat it as updating `gc_rule` to be backward compatible. + class Modification + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the Table for which to create a consistency + # token. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + class GenerateConsistencyTokenRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} + # @!attribute [rw] consistency_token + # @return [::String] + # The generated consistency token. + class GenerateConsistencyTokenResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the Table for which to check replication + # consistency. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] consistency_token + # @return [::String] + # Required. The token created using GenerateConsistencyToken for the Table. + # @!attribute [rw] standard_read_remote_writes + # @return [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites] + # Checks that reads using an app profile with `StandardIsolation` can + # see all writes committed before the token was created, even if the + # read and write target different clusters. + # + # Note: The following fields are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_boost_read_local_writes + # @return [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites] + # Checks that reads using an app profile with `DataBoostIsolationReadOnly` + # can see all writes committed before the token was created, but only if + # the read and write target the same cluster. + # + # Note: The following fields are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class CheckConsistencyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Checks that all writes before the consistency token was generated are + # replicated in every cluster and readable. + class StandardReadRemoteWrites + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Checks that all writes before the consistency token was generated in the same + # cluster are readable by Databoost. + class DataBoostReadLocalWrites + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} + # @!attribute [rw] consistent + # @return [::Boolean] + # True only if the token is consistent. A token is consistent if replication + # has caught up with the restrictions specified in the request. + class CheckConsistencyResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the table to have the snapshot taken. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] cluster + # @return [::String] + # Required. The name of the cluster where the snapshot will be created in. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] snapshot_id + # @return [::String] + # Required. The ID by which the new snapshot should be referred to within the + # parent cluster, e.g., `mysnapshot` of the form: + # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + # @!attribute [rw] ttl + # @return [::Google::Protobuf::Duration] + # The amount of time that the new snapshot can stay active after it is + # created. Once 'ttl' expires, the snapshot will get deleted. The maximum + # amount of time a snapshot can stay active is 7 days. If 'ttl' is not + # specified, the default value of 24 hours will be used. + # @!attribute [rw] description + # @return [::String] + # Description of the snapshot. + class SnapshotTableRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class GetSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the cluster for which snapshots should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of snapshots to return per page. + # CURRENTLY UNIMPLEMENTED AND IGNORED. + # @!attribute [rw] page_token + # @return [::String] + # The value of `next_page_token` returned by a previous call. + class ListSnapshotsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] snapshots + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] + # The snapshots present in the requested cluster. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all snapshots could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListSnapshotsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot} + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the snapshot to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + class DeleteSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by SnapshotTable. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest] + # The request that prompted the initiation of this SnapshotTable operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class SnapshotTableMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateTableFromSnapshot. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest] + # The request that prompted the initiation of this CreateTableFromSnapshot + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateTableFromSnapshotMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. + # @!attribute [rw] parent + # @return [::String] + # Required. This must be one of the clusters in the instance in which this + # table is located. The backup will be stored in this cluster. Values are + # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] backup_id + # @return [::String] + # Required. The id of the backup to be created. The `backup_id` along with + # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create + # the full backup name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @!attribute [rw] backup + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # Required. The backup to create. + class CreateBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. + # @!attribute [rw] name + # @return [::String] + # The name of the backup being created. + # @!attribute [rw] source_table + # @return [::String] + # The name of the table the backup is created from. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was cancelled. + class CreateBackupMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup UpdateBackup}. + # @!attribute [rw] backup + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] + # Required. The backup to update. `backup.name`, and the fields to be updated + # as specified by `update_mask` are required. Other fields are ignored. + # Update is only supported for the following fields: + # + # * `backup.expire_time`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. A mask specifying which fields (e.g. `expire_time`) in the + # Backup resource should be updated. This mask is relative to the Backup + # resource, not to the request message. The field mask must always be + # specified; this prevents any future fields from being erased accidentally + # by clients that do not know about them. + class UpdateBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup GetBackup}. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the backup. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + class GetBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup DeleteBackup}. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the backup to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + class DeleteBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. + # @!attribute [rw] parent + # @return [::String] + # Required. The cluster to list backups from. Values are of the + # form `projects/{project}/instances/{instance}/clusters/{cluster}`. + # Use `{cluster} = '-'` to list backups for all clusters in an instance, + # e.g., `projects/{project}/instances/{instance}/clusters/-`. + # @!attribute [rw] filter + # @return [::String] + # A filter expression that filters backups listed in the response. + # The expression must specify the field name, a comparison operator, + # and the value that you want to use for filtering. The value must be a + # string, a number, or a boolean. The comparison operator must be + # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + # roughly synonymous with equality. Filter rules are case insensitive. + # + # The fields eligible for filtering are: + # + # * `name` + # * `source_table` + # * `state` + # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + # * `size_bytes` + # + # To filter on multiple expressions, provide each separate expression within + # parentheses. By default, each expression is an AND expression. However, + # you can include AND, OR, and NOT expressions explicitly. + # + # Some examples of using filters are: + # + # * `name:"exact"` --> The backup's name is the string "exact". + # * `name:howl` --> The backup's name contains the string "howl". + # * `source_table:prod` + # --> The source_table's name contains the string "prod". + # * `state:CREATING` --> The backup is pending creation. + # * `state:READY` --> The backup is fully created and ready for use. + # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + # --> The backup name contains the string "howl" and start_time + # of the backup is before 2018-03-28T14:50:00Z. + # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + # @!attribute [rw] order_by + # @return [::String] + # An expression for specifying the sort order of the results of the request. + # The string value should specify one or more fields in + # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at + # https://aip.dev/132#ordering. + # + # Fields supported are: + # + # * name + # * source_table + # * expire_time + # * start_time + # * end_time + # * size_bytes + # * state + # + # For example, "start_time". The default sorting order is ascending. + # To specify descending order for the field, a suffix " desc" should + # be appended to the field name. For example, "start_time desc". + # Redundant space characters in the syntax are insigificant. + # + # If order_by is empty, results will be sorted by `start_time` in descending + # order starting from the most recently created backup. + # @!attribute [rw] page_size + # @return [::Integer] + # Number of backups to be returned in the response. If 0 or + # less, defaults to the server's maximum allowed page size. + # @!attribute [rw] page_token + # @return [::String] + # If non-empty, `page_token` should contain a + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} + # from a previous + # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the + # same `parent` and with the same `filter`. + class ListBackupsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. + # @!attribute [rw] backups + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Backup>] + # The list of matching backups. + # @!attribute [rw] next_page_token + # @return [::String] + # `next_page_token` can be sent in a subsequent + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups} call + # to fetch more of the matching backups. + class ListBackupsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the destination cluster that will contain the backup + # copy. The cluster must already exist. Values are of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] backup_id + # @return [::String] + # Required. The id of the new backup. The `backup_id` along with `parent` + # are combined as \\{parent}/backups/\\{backup_id} to create the full backup + # name, of the form: + # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + # This string must be between 1 and 50 characters in length and match the + # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + # @!attribute [rw] source_backup + # @return [::String] + # Required. The source backup to be copied from. + # The source backup needs to be in READY state for it to be copied. + # Copying a copied backup is not allowed. + # Once CopyBackup is in progress, the source backup cannot be deleted or + # cleaned up on expiration until CopyBackup is finished. + # Values are of the form: + # `projects//instances//clusters//backups/`. + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # Required. Required. The expiration time of the copied backup with + # microsecond granularity that must be at least 6 hours and at most 30 days + # from the time the request is received. Once the `expire_time` has + # passed, Cloud Bigtable will delete the backup and free the resources used + # by the backup. + class CopyBackupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata type for the google.longrunning.Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. + # @!attribute [rw] name + # @return [::String] + # The name of the backup being created through the copy operation. + # Values are of the form + # `projects//instances//clusters//backups/`. + # @!attribute [rw] source_backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # Information about the source backup that is being copied from. + # @!attribute [rw] progress + # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] + # The progress of the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup} + # operation. + class CopyBackupMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view CreateAuthorizedView} + # @!attribute [rw] parent + # @return [::String] + # Required. This is the name of the table the AuthorizedView belongs to. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] authorized_view_id + # @return [::String] + # Required. The id of the AuthorizedView to create. This AuthorizedView must + # not already exist. The `authorized_view_id` appended to `parent` forms the + # full AuthorizedView name of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + # @!attribute [rw] authorized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # Required. The AuthorizedView to create. + class CreateAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by CreateAuthorizedView. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest] + # The request that prompted the initiation of this CreateAuthorizedView + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class CreateAuthorizedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} + # @!attribute [rw] parent + # @return [::String] + # Required. The unique name of the table for which AuthorizedViews should be + # listed. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of results per page. + # + # A page_size of zero lets the server choose the number of items to return. + # A page_size which is strictly positive will return at most that many items. + # A negative page_size will cause an error. + # + # Following the first request, subsequent paginated calls are not required + # to pass a page_size. If a page_size is set in subsequent calls, it must + # match the page_size given in the first request. + # @!attribute [rw] page_token + # @return [::String] + # Optional. The value of `next_page_token` returned by a previous call. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedViews' + # fields. Default to NAME_ONLY. + class ListAuthorizedViewsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} + # @!attribute [rw] authorized_views + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] + # The AuthorizedViews present in the requested table. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if not all tables could be returned in a single response. + # Pass this value to `page_token` in another request to get the next + # page of results. + class ListAuthorizedViewsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the requested AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] + # Optional. The resource_view to be applied to the returned AuthorizedView's + # fields. Default to BASIC. + class GetAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. + # @!attribute [rw] authorized_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] + # Required. The AuthorizedView to update. The `name` in `authorized_view` is + # used to identify the AuthorizedView. AuthorizedView name must in this + # format: + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + # A mask specifying which fields in the AuthorizedView resource should be + # updated. This mask is relative to the AuthorizedView resource, not to the + # request message. A field will be overwritten if it is in the mask. If + # empty, all fields set in the request will be overwritten. A special value + # `*` means to overwrite all fields (including fields not set in the + # request). + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If true, ignore the safety checks when updating the + # AuthorizedView. + class UpdateAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for the google.longrunning.Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. + # @!attribute [rw] original_request + # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest] + # The request that prompted the initiation of this UpdateAuthorizedView + # operation. + # @!attribute [rw] request_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the original request was received. + # @!attribute [rw] finish_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the operation failed or was completed successfully. + class UpdateAuthorizedViewMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView} + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the AuthorizedView to be deleted. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + # @!attribute [rw] etag + # @return [::String] + # Optional. The current etag of the AuthorizedView. + # If an etag is provided and does not match the current etag of the + # AuthorizedView, deletion will be blocked and an ABORTED error will be + # returned. + class DeleteAuthorizedViewRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this schema bundle will be created. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # Required. The unique ID to use for the schema bundle, which will become the + # final component of the schema bundle's resource name. + # @!attribute [rw] schema_bundle + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # Required. The schema bundle to create. + class CreateSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class CreateSchemaBundleMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. + # @!attribute [rw] schema_bundle + # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] + # Required. The schema bundle to update. + # + # The schema bundle's `name` field is used to identify the schema bundle to + # update. Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. + # @!attribute [rw] ignore_warnings + # @return [::Boolean] + # Optional. If set, ignore the safety checks when updating the Schema Bundle. + # The safety checks are: + # - The new Schema Bundle is backwards compatible with the existing Schema + # Bundle. + class UpdateSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The metadata for the Operation returned by + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time at which this operation started. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation finished or was canceled. + class UpdateSchemaBundleMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle GetSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the schema bundle to retrieve. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + class GetSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of schema bundles. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}`. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of schema bundles to return. If the value is positive, + # the server may return at most this value. If unspecified, the server will + # return the maximum allowed page size. + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListSchemaBundles` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListSchemaBundles` must + # match the call that provided the page token. + class ListSchemaBundlesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. + # @!attribute [rw] schema_bundles + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] + # The schema bundles from the specified table. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListSchemaBundlesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle DeleteSchemaBundle}. + # @!attribute [rw] name + # @return [::String] + # Required. The unique name of the schema bundle to delete. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag of the schema bundle. + # If this is provided, it must match the server's etag. The server + # returns an ABORTED error on a mismatched etag. + class DeleteSchemaBundleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb new file mode 100644 index 000000000000..09fe845b5e8c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Encapsulates progress related information for a Cloud Bigtable long + # running operation. + # @!attribute [rw] progress_percent + # @return [::Integer] + # Percent completion of the operation. + # Values are between 0 and 100 inclusive. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Time the request was received. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # If set, the time at which this operation failed or was completed + # successfully. + class OperationProgress + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Storage media types for persisting Bigtable data. + module StorageType + # The user did not specify a storage type. + STORAGE_TYPE_UNSPECIFIED = 0 + + # Flash (SSD) storage should be used. + SSD = 1 + + # Magnetic drive (HDD) storage should be used. + HDD = 2 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb new file mode 100644 index 000000000000..d9c14a8aa662 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb @@ -0,0 +1,546 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # A collection of Bigtable {::Google::Cloud::Bigtable::Admin::V2::Table Tables} and + # the resources that serve them. + # All tables in an instance are served from all + # {::Google::Cloud::Bigtable::Admin::V2::Cluster Clusters} in the instance. + # @!attribute [rw] name + # @return [::String] + # The unique name of the instance. Values are of the form + # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + # @!attribute [rw] display_name + # @return [::String] + # Required. The descriptive name for this instance as it appears in UIs. + # Can be changed at any time, but should be kept globally unique + # to avoid confusion. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::State] + # Output only. The current state of the instance. + # @!attribute [rw] type + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] + # The type of the instance. Defaults to `PRODUCTION`. + # @!attribute [rw] edition + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Edition] + # Optional. The edition of the instance. See + # {::Google::Cloud::Bigtable::Admin::V2::Instance::Edition Edition} for details. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Labels are a flexible and lightweight mechanism for organizing cloud + # resources into groups that reflect a customer's organizational needs and + # deployment strategies. They can be used to filter resources and aggregate + # metrics. + # + # * Label keys must be between 1 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + # * Label values must be between 0 and 63 characters long and must conform to + # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + # * No more than 64 labels can be associated with a given resource. + # * Keys and values must both be under 128 bytes. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. A commit timestamp representing when this Instance was + # created. For instances created before this field was added (August 2021), + # this value is `seconds: 0, nanos: 1`. + # @!attribute [r] satisfies_pzs + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [r] satisfies_pzi + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [rw] tags + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Input only. Immutable. Tag keys/values directly bound to this + # resource. For example: + # - "123/environment": "production", + # - "123/costCenter": "marketing" + # + # Tags and Labels (above) are both used to bind metadata to resources, with + # different use-cases. See + # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + # in-depth overview on the difference between tags and labels. + class Instance + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TagsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of an instance. + module State + # The state of the instance could not be determined. + STATE_NOT_KNOWN = 0 + + # The instance has been successfully created and can serve requests + # to its tables. + READY = 1 + + # The instance is currently being created, and may be destroyed + # if the creation process encounters an error. + CREATING = 2 + end + + # The type of the instance. + module Type + # The type of the instance is unspecified. If set when creating an + # instance, a `PRODUCTION` instance will be created. If set when updating + # an instance, the type will be left unchanged. + TYPE_UNSPECIFIED = 0 + + # An instance meant for production use. `serve_nodes` must be set + # on the cluster. + PRODUCTION = 1 + + # DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces + # a higher minimum node count than DEVELOPMENT. + DEVELOPMENT = 2 + end + + # Possible editions of an instance. + # + # An edition is a specific tier of Cloud Bigtable. Each edition is tailored + # to different customer needs. Higher tiers offer more features and better + # performance. + module Edition + # The edition is unspecified. This is treated as `ENTERPRISE`. + EDITION_UNSPECIFIED = 0 + + # The Enterprise edition. This is the default offering that is designed to + # meet the needs of most enterprise workloads. + ENTERPRISE = 1 + + # The Enterprise Plus edition. This is a premium tier that is designed for + # demanding, multi-tenant workloads requiring the highest levels of + # performance, scale, and global availability. + # + # The nodes in the Enterprise Plus tier come at a higher cost than the + # Enterprise tier. Any Enterprise Plus features must be disabled before + # downgrading to Enterprise. + ENTERPRISE_PLUS = 2 + end + end + + # The Autoscaling targets for a Cluster. These determine the recommended nodes. + # @!attribute [rw] cpu_utilization_percent + # @return [::Integer] + # The cpu utilization that the Autoscaler should be trying to achieve. + # This number is on a scale from 0 (no utilization) to + # 100 (total utilization), and is limited between 10 and 80, otherwise it + # will return INVALID_ARGUMENT error. + # @!attribute [rw] storage_utilization_gib_per_node + # @return [::Integer] + # The storage utilization that the Autoscaler should be trying to achieve. + # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, + # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + # it will be treated as if it were set to the default value: 2560 for SSD, + # 8192 for HDD. + class AutoscalingTargets + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Limits for the number of nodes a Cluster can autoscale up/down to. + # @!attribute [rw] min_serve_nodes + # @return [::Integer] + # Required. Minimum number of nodes to scale down to. + # @!attribute [rw] max_serve_nodes + # @return [::Integer] + # Required. Maximum number of nodes to scale up to. + class AutoscalingLimits + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resizable group of nodes in a particular cloud location, capable + # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent + # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}. + # @!attribute [rw] name + # @return [::String] + # The unique name of the cluster. Values are of the form + # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + # @!attribute [rw] location + # @return [::String] + # Immutable. The location where this cluster's nodes and storage reside. For + # best performance, clients should be located as close as possible to this + # cluster. Currently only zones are supported, so values should be of the + # form `projects/{project}/locations/{zone}`. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::State] + # Output only. The current state of the cluster. + # @!attribute [rw] serve_nodes + # @return [::Integer] + # The number of nodes in the cluster. If no value is set, + # Cloud Bigtable automatically allocates nodes based on your data footprint + # and optimized for 50% storage utilization. + # @!attribute [rw] node_scaling_factor + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] + # Immutable. The node scaling factor of this cluster. + # @!attribute [rw] cluster_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig] + # Configuration for this cluster. + # @!attribute [rw] default_storage_type + # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType] + # Immutable. The type of storage used by this cluster to serve its + # parent instance's tables, unless explicitly overridden. + # @!attribute [rw] encryption_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig] + # Immutable. The encryption configuration for CMEK-protected clusters. + class Cluster + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Autoscaling config for a cluster. + # @!attribute [rw] autoscaling_limits + # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits] + # Required. Autoscaling limits for this cluster. + # @!attribute [rw] autoscaling_targets + # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets] + # Required. Autoscaling targets for this cluster. + class ClusterAutoscalingConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for a cluster. + # @!attribute [rw] cluster_autoscaling_config + # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig] + # Autoscaling configuration for this cluster. + class ClusterConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected + # cluster. + # @!attribute [rw] kms_key_name + # @return [::String] + # Describes the Cloud KMS encryption key that will be used to protect the + # destination Bigtable cluster. The requirements for this key are: + # 1) The Cloud Bigtable service account associated with the project that + # contains this cluster must be granted the + # `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + # 2) Only regional keys can be used and the region of the CMEK key must + # match the region of the cluster. + # Values are of the form + # `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + class EncryptionConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible states of a cluster. + module State + # The state of the cluster could not be determined. + STATE_NOT_KNOWN = 0 + + # The cluster has been successfully created and is ready to serve requests. + READY = 1 + + # The cluster is currently being created, and may be destroyed + # if the creation process encounters an error. + # A cluster may not be able to serve requests while being created. + CREATING = 2 + + # The cluster is currently being resized, and may revert to its previous + # node count if the process encounters an error. + # A cluster is still capable of serving requests while being resized, + # but may exhibit performance as if its number of allocated nodes is + # between the starting and requested states. + RESIZING = 3 + + # The cluster has no backing nodes. The data (tables) still + # exist, but no operations can be performed on the cluster. + DISABLED = 4 + end + + # Possible node scaling factors of the clusters. Node scaling delivers better + # latency and more throughput by removing node boundaries. + module NodeScalingFactor + # No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. + NODE_SCALING_FACTOR_UNSPECIFIED = 0 + + # The cluster is running with a scaling factor of 1. + NODE_SCALING_FACTOR_1X = 1 + + # The cluster is running with a scaling factor of 2. + # All node count values must be in increments of 2 with this scaling factor + # enabled, otherwise an INVALID_ARGUMENT error will be returned. + NODE_SCALING_FACTOR_2X = 2 + end + end + + # A configuration object describing how Cloud Bigtable should treat traffic + # from a particular end user application. + # @!attribute [rw] name + # @return [::String] + # The unique name of the app profile. Values are of the form + # `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # @!attribute [rw] etag + # @return [::String] + # Strongly validated etag for optimistic concurrency control. Preserve the + # value returned from `GetAppProfile` when calling `UpdateAppProfile` to + # fail the request if there has been a modification in the mean time. The + # `update_mask` of the request need not include `etag` for this protection + # to apply. + # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + # [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + # details. + # @!attribute [rw] description + # @return [::String] + # Long form description of the use case for this AppProfile. + # @!attribute [rw] multi_cluster_routing_use_any + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny] + # Use a multi-cluster routing policy. + # + # Note: The following fields are mutually exclusive: `multi_cluster_routing_use_any`, `single_cluster_routing`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] single_cluster_routing + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting] + # Use a single-cluster routing policy. + # + # Note: The following fields are mutually exclusive: `single_cluster_routing`, `multi_cluster_routing_use_any`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] priority + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] + # This field has been deprecated in favor of `standard_isolation.priority`. + # If you set this field, `standard_isolation.priority` will be set instead. + # + # The priority of requests sent using this app profile. + # + # Note: The following fields are mutually exclusive: `priority`, `standard_isolation`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] standard_isolation + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::StandardIsolation] + # The standard options used for isolating this app profile's traffic from + # other use cases. + # + # Note: The following fields are mutually exclusive: `standard_isolation`, `priority`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_boost_isolation_read_only + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly] + # Specifies that this app profile is intended for read-only usage via the + # Data Boost feature. + # + # Note: The following fields are mutually exclusive: `data_boost_isolation_read_only`, `priority`, `standard_isolation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class AppProfile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Read/write requests are routed to the nearest cluster in the instance, and + # will fail over to the nearest cluster that is available in the event of + # transient errors or delays. Clusters in a region are considered + # equidistant. Choosing this option sacrifices read-your-writes consistency + # to improve availability. + # @!attribute [rw] cluster_ids + # @return [::Array<::String>] + # The set of clusters to route to. The order is ignored; clusters will be + # tried in order of distance. If left empty, all clusters are eligible. + # @!attribute [rw] row_affinity + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity] + # Row affinity sticky routing based on the row key of the request. + # Requests that span multiple rows are routed non-deterministically. + class MultiClusterRoutingUseAny + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # If enabled, Bigtable will route the request based on the row key of the + # request, rather than randomly. Instead, each row key will be assigned + # to a cluster, and will stick to that cluster. If clusters are added or + # removed, then this may affect which row keys stick to which clusters. + # To avoid this, users can use a cluster group to specify which clusters + # are to be used. In this case, new clusters that are not a part of the + # cluster group will not be routed to, and routing will be unaffected by + # the new cluster. Moreover, clusters specified in the cluster group cannot + # be deleted unless removed from the cluster group. + class RowAffinity + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Unconditionally routes all read/write requests to a specific cluster. + # This option preserves read-your-writes consistency but does not improve + # availability. + # @!attribute [rw] cluster_id + # @return [::String] + # The cluster to which read/write requests should be routed. + # @!attribute [rw] allow_transactional_writes + # @return [::Boolean] + # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + # allowed by this app profile. It is unsafe to send these requests to + # the same table/row/column in multiple clusters. + class SingleClusterRouting + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Standard options for isolating this app profile's traffic from other use + # cases. + # @!attribute [rw] priority + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] + # The priority of requests sent using this app profile. + class StandardIsolation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data Boost is a serverless compute capability that lets you run + # high-throughput read jobs and queries on your Bigtable data, without + # impacting the performance of the clusters that handle your application + # traffic. Data Boost supports read-only use cases with single-cluster + # routing. + # @!attribute [rw] compute_billing_owner + # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner] + # The Compute Billing Owner for this Data Boost App Profile. + class DataBoostIsolationReadOnly + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Compute Billing Owner specifies how usage should be accounted when using + # Data Boost. Compute Billing Owner also configures which Cloud Project is + # charged for relevant quota. + module ComputeBillingOwner + # Unspecified value. + COMPUTE_BILLING_OWNER_UNSPECIFIED = 0 + + # The host Cloud Project containing the targeted Bigtable Instance / + # Table pays for compute. + HOST_PAYS = 1 + end + end + + # Possible priorities for an app profile. Note that higher priority writes + # can sometimes queue behind lower priority writes to the same tablet, as + # writes must be strictly sequenced in the durability log. + module Priority + # Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. + PRIORITY_UNSPECIFIED = 0 + + PRIORITY_LOW = 1 + + PRIORITY_MEDIUM = 2 + + PRIORITY_HIGH = 3 + end + end + + # A tablet is a defined by a start and end key and is explained in + # https://cloud.google.com/bigtable/docs/overview#architecture and + # https://cloud.google.com/bigtable/docs/performance#optimization. + # A Hot tablet is a tablet that exhibits high average cpu usage during the time + # interval from start time to end time. + # @!attribute [rw] name + # @return [::String] + # The unique name of the hot tablet. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. + # @!attribute [rw] table_name + # @return [::String] + # Name of the table that contains the tablet. Values are of the form + # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The start time of the hot tablet. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The end time of the hot tablet. + # @!attribute [rw] start_key + # @return [::String] + # Tablet Start Key (inclusive). + # @!attribute [rw] end_key + # @return [::String] + # Tablet End Key (inclusive). + # @!attribute [r] node_cpu_usage_percent + # @return [::Float] + # Output only. The average CPU usage spent by a node on this tablet over the + # start_time to end_time time range. The percentage is the amount of CPU used + # by the node to serve the tablet, from 0% (tablet was not interacted with) + # to 100% (the node spent all cycles serving the hot tablet). + class HotTablet + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A SQL logical view object that can be referenced in SQL queries. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name of the logical view. + # Format: + # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + # @!attribute [rw] query + # @return [::String] + # Required. The logical view's select query. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this logical view. + # This may be sent on update requests to ensure that the client has an + # up-to-date value before proceeding. The server returns an ABORTED error on + # a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Optional. Set to true to make the LogicalView protected against deletion. + class LogicalView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A materialized view object that can be referenced in SQL queries. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name of the materialized view. + # Format: + # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + # @!attribute [rw] query + # @return [::String] + # Required. Immutable. The materialized view's select query. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this materialized view. + # This may be sent on update requests to ensure that the client has an + # up-to-date value before proceeding. The server returns an ABORTED error on + # a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the MaterializedView protected against deletion. + class MaterializedView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb new file mode 100644 index 000000000000..a0aaeed8b974 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb @@ -0,0 +1,741 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # Information about a table restore. + # @!attribute [rw] source_type + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] + # The type of the restore source. + # @!attribute [rw] backup_info + # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] + # Information about the backup used to restore the table. The backup + # may no longer exist. + class RestoreInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Change stream configuration. + # @!attribute [rw] retention_period + # @return [::Google::Protobuf::Duration] + # How long the change stream should be retained. Change stream data older + # than the retention period will not be returned when reading the change + # stream from the table. + # Values must be at least 1 day and at most 7 days, and will be truncated to + # microsecond granularity. + class ChangeStreamConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A collection of user data indexed by row, column, and timestamp. + # Each table is served using the resources of its parent cluster. + # @!attribute [rw] name + # @return [::String] + # The unique name of the table. Values are of the form + # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + # @!attribute [r] cluster_states + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState}] + # Output only. Map from cluster ID to per-cluster table state. + # If it could not be determined whether or not the table has data in a + # particular cluster (for example, if its zone is unavailable), then + # there will be an entry for the cluster with UNKNOWN `replication_status`. + # Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` + # @!attribute [rw] column_families + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::ColumnFamily}] + # The column families configured for this table, mapped by column family ID. + # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + # @!attribute [rw] granularity + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::TimestampGranularity] + # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + # in this table. Timestamps not matching the granularity will be rejected. If + # unspecified at creation time, the value will be set to `MILLIS`. Views: + # `SCHEMA_VIEW`, `FULL`. + # @!attribute [r] restore_info + # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreInfo] + # Output only. If this table was restored from another data source (e.g. a + # backup), this field will be populated with information about the restore. + # @!attribute [rw] change_stream_config + # @return [::Google::Cloud::Bigtable::Admin::V2::ChangeStreamConfig] + # If specified, enable the change stream on this table. + # Otherwise, the change stream is disabled and the change stream is not + # retained. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the table protected against data loss. i.e. deleting + # the following resources through Admin APIs are prohibited: + # + # * The table. + # * The column families in the table. + # * The instance containing the table. + # + # Note one can still delete the data stored in the table through Data APIs. + # @!attribute [rw] automated_backup_policy + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::AutomatedBackupPolicy] + # If specified, automated backups are enabled for this table. + # Otherwise, automated backups are disabled. + # @!attribute [rw] tiered_storage_config + # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageConfig] + # Rules to specify what data is stored in each storage tier. + # Different tiers store data differently, providing different trade-offs + # between cost and performance. Different parts of a table can be stored + # separately on different tiers. + # If a config is specified, tiered storage is enabled for this table. + # Otherwise, tiered storage is disabled. + # Only SSD instances can configure tiered storage. + # @!attribute [rw] row_key_schema + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] + # The row key schema for this table. The schema is used to decode the raw row + # key bytes into a structured format. The order of field declarations in this + # schema is important, as it reflects how the raw row key bytes are + # structured. Currently, this only affects how the key is read via a + # GoogleSQL query from the ExecuteQuery API. + # + # For a SQL query, the _key column is still read as raw bytes. But queries + # can reference the key fields by name, which will be decoded from _key using + # provided type and encoding. Queries that reference key fields will fail if + # they encounter an invalid row key. + # + # For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + # following schema: + # { + # fields { + # field_name: "id" + # type { string { encoding: utf8_bytes \\{} } } + # } + # fields { + # field_name: "date" + # type { string { encoding: utf8_bytes \\{} } } + # } + # fields { + # field_name: "product_code" + # type { int64 { encoding: big_endian_bytes \\{} } } + # } + # encoding { delimited_bytes { delimiter: "#" } } + # } + # + # The decoded key parts would be: + # id = "some_id", date = "2024-04-30", product_code = 1245427 + # The query "SELECT _key, product_code FROM table" will return two columns: + # /------------------------------------------------------\ + # | _key | product_code | + # | --------------------------------------|--------------| + # | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + # \------------------------------------------------------/ + # + # The schema has the following invariants: + # (1) The decoded field values are order-preserved. For read, the field + # values will be decoded in sorted mode from the raw bytes. + # (2) Every field in the schema must specify a non-empty name. + # (3) Every field must specify a type with an associated encoding. The type + # is limited to scalar types only: Array, Map, Aggregate, and Struct are not + # allowed. + # (4) The field names must not collide with existing column family + # names and reserved keywords "_key" and "_timestamp". + # + # The following update operations are allowed for row_key_schema: + # - Update from an empty schema to a new schema. + # - Remove the existing schema. This operation requires setting the + # `ignore_warnings` flag to `true`, since it might be a backward + # incompatible change. Without the flag, the update request will fail with + # an INVALID_ARGUMENT error. + # Any other row key schema update operation (e.g. update existing schema + # columns names or types) is currently unsupported. + class Table + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The state of a table's data in a particular cluster. + # @!attribute [r] replication_state + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState::ReplicationState] + # Output only. The state of replication for the table in this cluster. + # @!attribute [r] encryption_info + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo>] + # Output only. The encryption information for the table in this cluster. + # If the encryption key protecting this resource is customer managed, then + # its version can be rotated in Cloud Key Management Service (Cloud KMS). + # The primary version of the key and its status will be reflected here when + # changes propagate from Cloud KMS. + class ClusterState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Table replication states. + module ReplicationState + # The replication state of the table is unknown in this cluster. + STATE_NOT_KNOWN = 0 + + # The cluster was recently created, and the table must finish copying + # over pre-existing data from other clusters before it can begin + # receiving live replication updates and serving Data API requests. + INITIALIZING = 1 + + # The table is temporarily unable to serve Data API requests from this + # cluster due to planned internal maintenance. + PLANNED_MAINTENANCE = 2 + + # The table is temporarily unable to serve Data API requests from this + # cluster due to unplanned or emergency maintenance. + UNPLANNED_MAINTENANCE = 3 + + # The table can serve Data API requests from this cluster. Depending on + # replication delay, reads may not immediately reflect the state of the + # table in other clusters. + READY = 4 + + # The table is fully created and ready for use after a restore, and is + # being optimized for performance. When optimizations are complete, the + # table will transition to `READY` state. + READY_OPTIMIZING = 5 + end + end + + # Defines an automated backup policy for a table + # @!attribute [rw] retention_period + # @return [::Google::Protobuf::Duration] + # Required. How long the automated backups should be retained. Values must + # be at least 3 days and at most 90 days. + # @!attribute [rw] frequency + # @return [::Google::Protobuf::Duration] + # How frequently automated backups should occur. The only supported value + # at this time is 24 hours. An undefined frequency is treated as 24 hours. + # @!attribute [rw] locations + # @return [::Array<::String>] + # Optional. A list of Cloud Bigtable zones where automated backups are + # allowed to be created. If empty, automated backups will be created in all + # zones of the instance. Locations are in the format + # `projects/{project}/locations/{zone}`. + # This field can only set for tables in Enterprise Plus instances. + class AutomatedBackupPolicy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState] + class ClusterStatesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] + class ColumnFamiliesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Possible timestamp granularities to use when keeping multiple versions + # of data in a table. + module TimestampGranularity + # The user did not specify a granularity. Should not be returned. + # When specified during table creation, MILLIS will be used. + TIMESTAMP_GRANULARITY_UNSPECIFIED = 0 + + # The table keeps data versioned at a granularity of 1ms. + MILLIS = 1 + end + + # Defines a view over a table's fields. + module View + # Uses the default view for each method as documented in its request. + VIEW_UNSPECIFIED = 0 + + # Only populates `name`. + NAME_ONLY = 1 + + # Only populates `name` and fields related to the table's schema. + SCHEMA_VIEW = 2 + + # Only populates `name` and fields related to the table's replication + # state. + REPLICATION_VIEW = 3 + + # Only populates `name` and fields related to the table's encryption state. + ENCRYPTION_VIEW = 5 + + # Populates all fields. + FULL = 4 + end + end + + # AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users + # can configure access to each Authorized View independently from the table and + # use the existing Data APIs to access the subset of data. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of this AuthorizedView. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + # @!attribute [rw] subset_view + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::SubsetView] + # An AuthorizedView permitting access to an explicit subset of a Table. + # @!attribute [rw] etag + # @return [::String] + # The etag for this AuthorizedView. + # If this is provided on update, it must match the server's etag. The server + # returns ABORTED error on a mismatched etag. + # @!attribute [rw] deletion_protection + # @return [::Boolean] + # Set to true to make the AuthorizedView protected against deletion. + # The parent Table and containing Instance cannot be deleted if an + # AuthorizedView has this bit set. + class AuthorizedView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Subsets of a column family that are included in this AuthorizedView. + # @!attribute [rw] qualifiers + # @return [::Array<::String>] + # Individual exact column qualifiers to be included in the AuthorizedView. + # @!attribute [rw] qualifier_prefixes + # @return [::Array<::String>] + # Prefixes for qualifiers to be included in the AuthorizedView. Every + # qualifier starting with one of these prefixes is included in the + # AuthorizedView. To provide access to all qualifiers, include the empty + # string as a prefix + # (""). + class FamilySubsets + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a simple AuthorizedView that is a subset of the underlying Table. + # @!attribute [rw] row_prefixes + # @return [::Array<::String>] + # Row prefixes to be included in the AuthorizedView. + # To provide access to all rows, include the empty string as a prefix (""). + # @!attribute [rw] family_subsets + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets}] + # Map from column family name to the columns in this family to be included + # in the AuthorizedView. + class SubsetView + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets] + class FamilySubsetsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Defines a subset of an AuthorizedView's fields. + module ResponseView + # Uses the default view for each method as documented in the request. + RESPONSE_VIEW_UNSPECIFIED = 0 + + # Only populates `name`. + NAME_ONLY = 1 + + # Only populates the AuthorizedView's basic metadata. This includes: + # name, deletion_protection, etag. + BASIC = 2 + + # Populates every fields. + FULL = 3 + end + end + + # A set of columns within a table which share a common configuration. + # @!attribute [rw] gc_rule + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule] + # Garbage collection rule specified as a protobuf. + # Must serialize to at most 500 bytes. + # + # NOTE: Garbage collection executes opportunistically in the background, and + # so it's possible for reads to return a cell even if it matches the active + # GC expression for its family. + # @!attribute [rw] value_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of data stored in each of this family's cell values, including its + # full encoding. If omitted, the family only serves raw untyped bytes. + # + # For now, only the `Aggregate` type is supported. + # + # `Aggregate` can only be set at family creation and is immutable afterwards. + # + # + # If `value_type` is `Aggregate`, written data must be compatible with: + # * `value_type.input_type` for `AddInput` mutations + class ColumnFamily + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rule for determining which cells to delete during garbage collection. + # @!attribute [rw] max_num_versions + # @return [::Integer] + # Delete all cells in a column except the most recent N. + # + # Note: The following fields are mutually exclusive: `max_num_versions`, `max_age`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] max_age + # @return [::Google::Protobuf::Duration] + # Delete cells in a column older than the given age. + # Values must be at least one millisecond, and will be truncated to + # microsecond granularity. + # + # Note: The following fields are mutually exclusive: `max_age`, `max_num_versions`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] intersection + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Intersection] + # Delete cells that would be deleted by every nested rule. + # + # Note: The following fields are mutually exclusive: `intersection`, `max_num_versions`, `max_age`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] union + # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Union] + # Delete cells that would be deleted by any nested rule. + # + # Note: The following fields are mutually exclusive: `union`, `max_num_versions`, `max_age`, `intersection`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class GcRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A GcRule which deletes cells matching all of the given rules. + # @!attribute [rw] rules + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] + # Only delete cells which would be deleted by every element of `rules`. + class Intersection + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A GcRule which deletes cells matching any of the given rules. + # @!attribute [rw] rules + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] + # Delete cells which would be deleted by any element of `rules`. + class Union + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Encryption information for a given resource. + # If this resource is protected with customer managed encryption, the in-use + # Cloud Key Management Service (Cloud KMS) key version is specified along with + # its status. + # @!attribute [r] encryption_type + # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo::EncryptionType] + # Output only. The type of encryption used to protect this resource. + # @!attribute [r] encryption_status + # @return [::Google::Rpc::Status] + # Output only. The status of encrypt/decrypt calls on underlying data for + # this resource. Regardless of status, the existing data is always encrypted + # at rest. + # @!attribute [r] kms_key_version + # @return [::String] + # Output only. The version of the Cloud KMS key specified in the parent + # cluster that is in use for the data underlying this table. + class EncryptionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible encryption types for a resource. + module EncryptionType + # Encryption type was not specified, though data at rest remains encrypted. + ENCRYPTION_TYPE_UNSPECIFIED = 0 + + # The data backing this resource is encrypted at rest with a key that is + # fully managed by Google. No key version or status will be populated. + # This is the default state. + GOOGLE_DEFAULT_ENCRYPTION = 1 + + # The data backing this resource is encrypted at rest with a key that is + # managed by the customer. + # The in-use version of the key and its status are populated for + # CMEK-protected tables. + # CMEK-protected backups are pinned to the key version that was in use at + # the time the backup was taken. This key version is populated but its + # status is not tracked and is reported as `UNKNOWN`. + CUSTOMER_MANAGED_ENCRYPTION = 2 + end + end + + # A snapshot of a table at a particular time. A snapshot can be used as a + # checkpoint for data restoration or a data source for a new table. + # + # Note: This is a private alpha release of Cloud Bigtable snapshots. This + # feature is not currently available to most Cloud Bigtable customers. This + # feature might be changed in backward-incompatible ways and is not recommended + # for production use. It is not subject to any SLA or deprecation policy. + # @!attribute [rw] name + # @return [::String] + # The unique name of the snapshot. + # Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + # @!attribute [r] source_table + # @return [::Google::Cloud::Bigtable::Admin::V2::Table] + # Output only. The source table at the time the snapshot was taken. + # @!attribute [r] data_size_bytes + # @return [::Integer] + # Output only. The size of the data in the source table at the time the + # snapshot was taken. In some cases, this value may be computed + # asynchronously via a background process and a placeholder of 0 will be used + # in the meantime. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time when the snapshot is created. + # @!attribute [rw] delete_time + # @return [::Google::Protobuf::Timestamp] + # The time when the snapshot will be deleted. The maximum amount of time a + # snapshot can stay active is 365 days. If 'ttl' is not specified, + # the default maximum of 365 days will be used. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot::State] + # Output only. The current state of the snapshot. + # @!attribute [rw] description + # @return [::String] + # Description of the snapshot. + class Snapshot + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible states of a snapshot. + module State + # The state of the snapshot could not be determined. + STATE_NOT_KNOWN = 0 + + # The snapshot has been successfully created and can serve all requests. + READY = 1 + + # The snapshot is currently being created, and may be destroyed if the + # creation process encounters an error. A snapshot may not be restored to a + # table while it is being created. + CREATING = 2 + end + end + + # A backup of a Cloud Bigtable table. + # @!attribute [rw] name + # @return [::String] + # A globally unique identifier for the backup which cannot be + # changed. Values are of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}/ + # backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + # The final segment of the name must be between 1 and 50 characters + # in length. + # + # The backup is stored in the cluster identified by the prefix of the backup + # name of the form + # `projects/{project}/instances/{instance}/clusters/{cluster}`. + # @!attribute [rw] source_table + # @return [::String] + # Required. Immutable. Name of the table from which this backup was created. + # This needs to be in the same instance as the backup. Values are of the form + # `projects/{project}/instances/{instance}/tables/{source_table}`. + # @!attribute [r] source_backup + # @return [::String] + # Output only. Name of the backup from which this backup was copied. If a + # backup is not created by copying a backup, this field will be empty. Values + # are of the form: + # projects//instances//clusters//backups/ + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # Required. The expiration time of the backup. + # When creating a backup or updating its `expire_time`, the value must be + # greater than the backup creation time by: + # - At least 6 hours + # - At most 90 days + # + # Once the `expire_time` has passed, Cloud Bigtable will delete the backup. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. `start_time` is the time that the backup was started + # (i.e. approximately the time the + # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup} + # request is received). The row data in this backup will be no older than + # this timestamp. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. `end_time` is the time that the backup was finished. The row + # data in the backup will be no newer than this timestamp. + # @!attribute [r] size_bytes + # @return [::Integer] + # Output only. Size of the backup in bytes. + # @!attribute [r] state + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State] + # Output only. The current state of the backup. + # @!attribute [r] encryption_info + # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo] + # Output only. The encryption information for the backup. + # @!attribute [rw] backup_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType] + # Indicates the backup type of the backup. + # @!attribute [rw] hot_to_standard_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the hot backup will be converted to a standard backup. + # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the + # hot backup to a standard backup. This value must be greater than the backup + # creation time by: + # - At least 24 hours + # + # This field only applies for hot backups. When creating or updating a + # standard backup, attempting to set this field will fail the request. + class Backup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the current state of the backup. + module State + # Not specified. + STATE_UNSPECIFIED = 0 + + # The pending backup is still being created. Operations on the + # backup may fail with `FAILED_PRECONDITION` in this state. + CREATING = 1 + + # The backup is complete and ready for use. + READY = 2 + end + + # The type of the backup. + module BackupType + # Not specified. + BACKUP_TYPE_UNSPECIFIED = 0 + + # The default type for Cloud Bigtable managed backups. Supported for + # backups created in both HDD and SSD instances. Requires optimization when + # restored to a table in an SSD instance. + STANDARD = 1 + + # A backup type with faster restore to SSD performance. Only supported for + # backups created in SSD instances. A new SSD table restored from a hot + # backup reaches production performance more quickly than a standard + # backup. + HOT = 2 + end + end + + # Information about a backup. + # @!attribute [r] backup + # @return [::String] + # Output only. Name of the backup. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time that the backup was started. Row data in the backup + # will be no older than this timestamp. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. This time that the backup was finished. Row data in the + # backup will be no newer than this timestamp. + # @!attribute [r] source_table + # @return [::String] + # Output only. Name of the table the backup was created from. + # @!attribute [r] source_backup + # @return [::String] + # Output only. Name of the backup from which this backup was copied. If a + # backup is not created by copying a backup, this field will be empty. Values + # are of the form: + # projects//instances//clusters//backups/ + class BackupInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Config for tiered storage. + # A valid config must have a valid TieredStorageRule. Otherwise the whole + # TieredStorageConfig must be unset. + # By default all data is stored in the SSD tier (only SSD instances can + # configure tiered storage). + # @!attribute [rw] infrequent_access + # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageRule] + # Rule to specify what data is stored in the infrequent access(IA) tier. + # The IA tier allows storing more data per node with reduced performance. + class TieredStorageConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rule to specify what data is stored in a storage tier. + # @!attribute [rw] include_if_older_than + # @return [::Google::Protobuf::Duration] + # Include cells older than the given age. + # For the infrequent access tier, this value must be at least 30 days. + class TieredStorageRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a protobuf schema. + # @!attribute [rw] proto_descriptors + # @return [::String] + # Required. Contains a protobuf-serialized + # [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + # which could include multiple proto files. + # To generate it, [install](https://grpc.io/docs/protoc-installation/) and + # run `protoc` with + # `--include_imports` and `--descriptor_set_out`. For example, to generate + # for moon/shot/app.proto, run + # ``` + # $protoc --proto_path=/app_path --proto_path=/lib_path \ + # --include_imports \ + # --descriptor_set_out=descriptors.pb \ + # moon/shot/app.proto + # ``` + # For more details, see protobuffer [self + # description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + class ProtoSchema + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A named collection of related schemas. + # @!attribute [rw] name + # @return [::String] + # Identifier. The unique name identifying this schema bundle. + # Values are of the form + # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + # @!attribute [rw] proto_schema + # @return [::Google::Cloud::Bigtable::Admin::V2::ProtoSchema] + # Schema for Protobufs. + # @!attribute [rw] etag + # @return [::String] + # Optional. The etag for this schema bundle. + # This may be sent on update and delete requests to ensure the + # client has an up-to-date value before proceeding. The server + # returns an ABORTED error on a mismatched etag. + class SchemaBundle + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the type of the restore source. + module RestoreSourceType + # No restore associated. + RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 + + # A backup was used as the source of the restore. + BACKUP = 1 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb new file mode 100644 index 000000000000..8a598f02b9ff --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb @@ -0,0 +1,575 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Bigtable + module Admin + module V2 + # `Type` represents the type of data that is written to, read from, or stored + # in Bigtable. It is heavily based on the GoogleSQL standard to help maintain + # familiarity and consistency across products and features. + # + # For compatibility with Bigtable's existing untyped APIs, each `Type` includes + # an `Encoding` which describes how to convert to or from the underlying data. + # + # Each encoding can operate in one of two modes: + # + # - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` + # if and only if `X <= Y`. This is useful anywhere sort order is important, + # for example when encoding keys. + # - Distinct: In this mode, Bigtable guarantees that if `X != Y` then + # `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For + # example, both "\\{'foo': '1', 'bar': '2'}" and "\\{'bar': '2', 'foo': '1'}" + # are valid encodings of the same JSON value. + # + # The API clearly documents which mode is used wherever an encoding can be + # configured. Each encoding also documents which values are supported in which + # modes. For example, when encoding INT64 as a numeric STRING, negative numbers + # cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but + # `STRING("-00001") > STRING("00001")`. + # @!attribute [rw] bytes_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] + # Bytes + # + # Note: The following fields are mutually exclusive: `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] string_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String] + # String + # + # Note: The following fields are mutually exclusive: `string_type`, `bytes_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] int64_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64] + # Int64 + # + # Note: The following fields are mutually exclusive: `int64_type`, `bytes_type`, `string_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float32_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float32] + # Float32 + # + # Note: The following fields are mutually exclusive: `float32_type`, `bytes_type`, `string_type`, `int64_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float64_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float64] + # Float64 + # + # Note: The following fields are mutually exclusive: `float64_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bool] + # Bool + # + # Note: The following fields are mutually exclusive: `bool_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] timestamp_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp] + # Timestamp + # + # Note: The following fields are mutually exclusive: `timestamp_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] date_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Date] + # Date + # + # Note: The following fields are mutually exclusive: `date_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] aggregate_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate] + # Aggregate + # + # Note: The following fields are mutually exclusive: `aggregate_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] struct_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] + # Struct + # + # Note: The following fields are mutually exclusive: `struct_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] array_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Array] + # Array + # + # Note: The following fields are mutually exclusive: `array_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] map_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Map] + # Map + # + # Note: The following fields are mutually exclusive: `map_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] proto_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Proto] + # Proto + # + # Note: The following fields are mutually exclusive: `proto_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] enum_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Enum] + # Enum + # + # Note: The following fields are mutually exclusive: `enum_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Type + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Bytes + # Values of type `Bytes` are stored in `Value.bytes_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding] + # The encoding to use when converting to or from lower level types. + class Bytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] raw + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding::Raw] + # Use `Raw` encoding. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Leaves the value as-is. + # + # Sorted mode: all values are supported. + # + # Distinct mode: all values are supported. + class Raw + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # String + # Values of type `String` are stored in `Value.string_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding] + # The encoding to use when converting to or from lower level types. + class String + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] utf8_raw + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Raw] + # Deprecated: if set, converts to an empty `utf8_bytes`. + # + # Note: The following fields are mutually exclusive: `utf8_raw`, `utf8_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] utf8_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Bytes] + # Use `Utf8Bytes` encoding. + # + # Note: The following fields are mutually exclusive: `utf8_bytes`, `utf8_raw`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Deprecated: prefer the equivalent `Utf8Bytes`. + # @deprecated This message is deprecated and may be removed in the next major version update. + class Utf8Raw + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UTF-8 encoding. + # + # Sorted mode: + # - All values are supported. + # - Code point order is preserved. + # + # Distinct mode: all values are supported. + # + # Compatible with: + # + # - BigQuery `TEXT` encoding + # - HBase `Bytes.toBytes` + # - Java `String#getBytes(StandardCharsets.UTF_8)` + class Utf8Bytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # Int64 + # Values of type `Int64` are stored in `Value.int_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] + # The encoding to use when converting to or from lower level types. + class Int64 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] big_endian_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::BigEndianBytes] + # Use `BigEndianBytes` encoding. + # + # Note: The following fields are mutually exclusive: `big_endian_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ordered_code_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::OrderedCodeBytes] + # Use `OrderedCodeBytes` encoding. + # + # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `big_endian_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Encodes the value as an 8-byte big-endian two's complement value. + # + # Sorted mode: non-negative values are supported. + # + # Distinct mode: all values are supported. + # + # Compatible with: + # + # - BigQuery `BINARY` encoding + # - HBase `Bytes.toBytes` + # - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` + # @!attribute [rw] bytes_type + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] + # Deprecated: ignored if set. + class BigEndianBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Encodes the value in a variable length binary format of up to 10 bytes. + # Values that are closer to zero use fewer bytes. + # + # Sorted mode: all values are supported. + # + # Distinct mode: all values are supported. + class OrderedCodeBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # bool + # Values of type `Bool` are stored in `Value.bool_value`. + class Bool + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Float32 + # Values of type `Float32` are stored in `Value.float_value`. + class Float32 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Float64 + # Values of type `Float64` are stored in `Value.float_value`. + class Float64 + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Timestamp + # Values of type `Timestamp` are stored in `Value.timestamp_value`. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp::Encoding] + # The encoding to use when converting to or from lower level types. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rules used to convert to or from lower level types. + # @!attribute [rw] unix_micros_int64 + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] + # Encodes the number of microseconds since the Unix epoch using the + # given `Int64` encoding. Values must be microsecond-aligned. + # + # Compatible with: + # + # - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Date + # Values of type `Date` are stored in `Value.date_value`. + class Date + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A structured data value, consisting of fields which map to dynamically + # typed values. + # Values of type `Struct` are stored in `Value.array_value` where entries are + # in the same order and number as `field_types`. + # @!attribute [rw] fields + # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Field>] + # The names and types of the fields in this struct. + # @!attribute [rw] encoding + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding] + # The encoding to use when converting to or from lower level types. + class Struct + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A struct field and its type. + # @!attribute [rw] field_name + # @return [::String] + # The field name (optional). Fields without a `field_name` are considered + # anonymous and cannot be referenced by name. + # @!attribute [rw] type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of values in this field. + class Field + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Rules used to convert to or from lower level types. + # @!attribute [rw] singleton + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::Singleton] + # Use `Singleton` encoding. + # + # Note: The following fields are mutually exclusive: `singleton`, `delimited_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delimited_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::DelimitedBytes] + # Use `DelimitedBytes` encoding. + # + # Note: The following fields are mutually exclusive: `delimited_bytes`, `singleton`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ordered_code_bytes + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::OrderedCodeBytes] + # User `OrderedCodeBytes` encoding. + # + # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `singleton`, `delimited_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Encoding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Uses the encoding of `fields[0].type` as-is. + # Only valid if `fields.size == 1`. + class Singleton + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Fields are encoded independently and concatenated with a configurable + # `delimiter` in between. + # + # A struct with no fields defined is encoded as a single `delimiter`. + # + # Sorted mode: + # + # - Fields are encoded in sorted mode. + # - Encoded field values must not contain any bytes <= `delimiter[0]` + # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + # + # Distinct mode: + # + # - Fields are encoded in distinct mode. + # - Encoded field values must not contain `delimiter[0]`. + # @!attribute [rw] delimiter + # @return [::String] + # Byte sequence used to delimit concatenated fields. The delimiter must + # contain at least 1 character and at most 50 characters. + class DelimitedBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Fields are encoded independently and concatenated with the fixed byte + # pair \\{0x00, 0x01} in between. + # + # Any null (0x00) byte in an encoded field is replaced by the fixed byte + # pair \\{0x00, 0xFF}. + # + # Fields that encode to the empty string "" have special handling: + # + # - If *every* field encodes to "", or if the STRUCT has no fields + # defined, then the STRUCT is encoded as the fixed byte pair + # \\{0x00, 0x00}. + # - Otherwise, the STRUCT only encodes until the last non-empty field, + # omitting any trailing empty fields. Any empty fields that aren't + # omitted are replaced with the fixed byte pair \\{0x00, 0x00}. + # + # Examples: + # + # - STRUCT() -> "\00\00" + # - STRUCT("") -> "\00\00" + # - STRUCT("", "") -> "\00\00" + # - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" + # - STRUCT("A", "") -> "A" + # - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" + # - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" + # + # + # Since null bytes are always escaped, this encoding can cause size + # blowup for encodings like `Int64.BigEndianBytes` that are likely to + # produce many such bytes. + # + # Sorted mode: + # + # - Fields are encoded in sorted mode. + # - All values supported by the field encodings are allowed + # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + # + # Distinct mode: + # + # - Fields are encoded in distinct mode. + # - All values supported by the field encodings are allowed. + class OrderedCodeBytes + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + + # A protobuf message type. + # Values of type `Proto` are stored in `Value.bytes_value`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # The ID of the schema bundle that this proto is defined in. + # @!attribute [rw] message_name + # @return [::String] + # The fully qualified name of the protobuf message, including package. In + # the format of "foo.bar.Message". + class Proto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A protobuf enum type. + # Values of type `Enum` are stored in `Value.int_value`. + # @!attribute [rw] schema_bundle_id + # @return [::String] + # The ID of the schema bundle that this enum is defined in. + # @!attribute [rw] enum_name + # @return [::String] + # The fully qualified name of the protobuf enum message, including package. + # In the format of "foo.bar.EnumMessage". + class Enum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # An ordered list of elements of a given type. + # Values of type `Array` are stored in `Value.array_value`. + # @!attribute [rw] element_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of the elements in the array. This must not be `Array`. + class Array + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A mapping of keys to values of a given type. + # Values of type `Map` are stored in a `Value.array_value` where each entry + # is another `Value.array_value` with two elements (the key and the value, + # in that order). + # Normally encoded Map values won't have repeated keys, however, clients are + # expected to handle the case in which they do. If the same key appears + # multiple times, the _last_ value takes precedence. + # @!attribute [rw] key_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of a map key. + # Only `Bytes`, `String`, and `Int64` are allowed as key types. + # @!attribute [rw] value_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # The type of the values in a map. + class Map + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A value that combines incremental updates into a summarized value. + # + # Data is never directly written or read using type `Aggregate`. Writes will + # provide either the `input_type` or `state_type`, and reads will always + # return the `state_type` . + # @!attribute [rw] input_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # Type of the inputs that are accumulated by this `Aggregate`, which must + # specify a full encoding. + # Use `AddInput` mutations to accumulate new inputs. + # @!attribute [r] state_type + # @return [::Google::Cloud::Bigtable::Admin::V2::Type] + # Output only. Type that holds the internal accumulator state for the + # `Aggregate`. This is a function of the `input_type` and `aggregator` + # chosen, and will always specify a full encoding. + # @!attribute [rw] sum + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Sum] + # Sum aggregator. + # + # Note: The following fields are mutually exclusive: `sum`, `hllpp_unique_count`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] hllpp_unique_count + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount] + # HyperLogLogPlusPlusUniqueCount aggregator. + # + # Note: The following fields are mutually exclusive: `hllpp_unique_count`, `sum`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] max + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Max] + # Max aggregator. + # + # Note: The following fields are mutually exclusive: `max`, `sum`, `hllpp_unique_count`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] min + # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Min] + # Min aggregator. + # + # Note: The following fields are mutually exclusive: `min`, `sum`, `hllpp_unique_count`, `max`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Aggregate + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Computes the sum of the input values. + # Allowed input: `Int64` + # State: same as input + class Sum + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes the max of the input values. + # Allowed input: `Int64` + # State: same as input + class Max + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes the min of the input values. + # Allowed input: `Int64` + # State: same as input + class Min + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Computes an approximate unique count over the input values. When using + # raw data as input, be careful to use a consistent encoding. Otherwise + # the same value encoded differently could count more than once, or two + # distinct values could count as identical. + # Input: Any, or omit for Raw + # State: TBD + # Special state conversions: `Int64` (the unique count estimate) + class HyperLogLogPlusPlusUniqueCount + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb new file mode 100644 index 000000000000..5445c77f8258 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb @@ -0,0 +1,87 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # Request message for `SetIamPolicy` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] policy + # @return [::Google::Iam::V1::Policy] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + class SetIamPolicyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `GetIamPolicy` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] options + # @return [::Google::Iam::V1::GetPolicyOptions] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + class GetIamPolicyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `TestIamPermissions` method. + # @!attribute [rw] resource + # @return [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @!attribute [rw] permissions + # @return [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + class TestIamPermissionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `TestIamPermissions` method. + # @!attribute [rw] permissions + # @return [::Array<::String>] + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + class TestIamPermissionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb new file mode 100644 index 000000000000..60713d995b86 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # Encapsulates settings provided to GetIamPolicy. + # @!attribute [rw] requested_policy_version + # @return [::Integer] + # Optional. The maximum policy version that will be used to format the + # policy. + # + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # + # Requests for policies with any conditional role bindings must specify + # version 3. Policies with no conditional role bindings may specify any valid + # value or leave the field unset. + # + # The policy in the response might use the policy version that you specified, + # or it might use a lower policy version. For example, if you specify version + # 3, but the policy has no conditional role bindings, the response uses + # version 1. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + class GetPolicyOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb new file mode 100644 index 000000000000..999575b797df --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb @@ -0,0 +1,426 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Iam + module V1 + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # + # + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members`, or principals, to a single `role`. Principals can be user + # accounts, service accounts, Google groups, and domains (such as G Suite). A + # `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. + # + # For some types of Google Cloud resources, a `binding` can also specify a + # `condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # + # **JSON example:** + # + # ``` + # { + # "bindings": [ + # { + # "role": "roles/resourcemanager.organizationAdmin", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" + # ] + # }, + # { + # "role": "roles/resourcemanager.organizationViewer", + # "members": [ + # "user:eve@example.com" + # ], + # "condition": { + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # } + # } + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 + # } + # ``` + # + # **YAML example:** + # + # ``` + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin + # - members: + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # etag: BwWWja0YfJA= + # version: 3 + # ``` + # + # For a description of IAM and its features, see the + # [IAM documentation](https://cloud.google.com/iam/docs/). + # @!attribute [rw] version + # @return [::Integer] + # Specifies the format of the policy. + # + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # @!attribute [rw] bindings + # @return [::Array<::Google::Iam::V1::Binding>] + # Associates a list of `members`, or principals, with a `role`. Optionally, + # may specify a `condition` that determines how and when the `bindings` are + # applied. Each of the `bindings` must contain at least one principal. + # + # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + # of these principals can be Google groups. Each occurrence of a principal + # counts towards these limits. For example, if the `bindings` grant 50 + # different roles to `user:alice@example.com`, and not to any other + # principal, then you can add another 1,450 principals to the `bindings` in + # the `Policy`. + # @!attribute [rw] audit_configs + # @return [::Array<::Google::Iam::V1::AuditConfig>] + # Specifies cloud audit logging configuration for this policy. + # @!attribute [rw] etag + # @return [::String] + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + class Policy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Associates `members`, or principals, with a `role`. + # @!attribute [rw] role + # @return [::String] + # Role that is assigned to the list of `members`, or principals. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # @!attribute [rw] members + # @return [::Array<::String>] + # Specifies the principals requesting access for a Google Cloud resource. + # `members` can have the following values: + # + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # + # * `user:{emailid}`: An email address that represents a specific Google + # account. For example, `alice@example.com` . + # + # + # * `serviceAccount:{emailid}`: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # + # * `group:{emailid}`: An email address that represents a Google group. + # For example, `admins@example.com`. + # + # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:{emailid}` and the recovered user + # retains the role in the binding. + # + # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:{emailid}` and the undeleted service account retains the + # role in the binding. + # + # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:{emailid}` and the + # recovered group retains the role in the binding. + # + # + # * `domain:{domain}`: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # @!attribute [rw] condition + # @return [::Google::Type::Expr] + # The condition that is associated with this binding. + # + # If the condition evaluates to `true`, then this binding applies to the + # current request. + # + # If the condition evaluates to `false`, then this binding does not apply to + # the current request. However, a different role binding might grant the same + # role to one or more of the principals in this binding. + # + # To learn which resources support conditions in their IAM policies, see the + # [IAM + # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + class Binding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # + # Example Policy with multiple AuditConfigs: + # + # { + # "audit_configs": [ + # { + # "service": "allServices", + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # }, + # { + # "log_type": "DATA_WRITE" + # }, + # { + # "log_type": "ADMIN_READ" + # } + # ] + # }, + # { + # "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ" + # }, + # { + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:aliya@example.com" + # ] + # } + # ] + # } + # ] + # } + # + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts `jose@example.com` from DATA_READ logging, and + # `aliya@example.com` from DATA_WRITE logging. + # @!attribute [rw] service + # @return [::String] + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # @!attribute [rw] audit_log_configs + # @return [::Array<::Google::Iam::V1::AuditLogConfig>] + # The configuration for logging of each type of permission. + class AuditConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Provides the configuration for logging a type of permissions. + # Example: + # + # { + # "audit_log_configs": [ + # { + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # }, + # { + # "log_type": "DATA_WRITE" + # } + # ] + # } + # + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # jose@example.com from DATA_READ logging. + # @!attribute [rw] log_type + # @return [::Google::Iam::V1::AuditLogConfig::LogType] + # The log type that this config enables. + # @!attribute [rw] exempted_members + # @return [::Array<::String>] + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of + # [Binding.members][google.iam.v1.Binding.members]. + class AuditLogConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The list of valid permission types for which logging can be configured. + # Admin writes are always logged, and are not configurable. + module LogType + # Default case. Should never be this. + LOG_TYPE_UNSPECIFIED = 0 + + # Admin reads. Example: CloudIAM getIamPolicy + ADMIN_READ = 1 + + # Data writes. Example: CloudSQL Users create + DATA_WRITE = 2 + + # Data reads. Example: CloudSQL Users list + DATA_READ = 3 + end + end + + # The difference delta between two policies. + # @!attribute [rw] binding_deltas + # @return [::Array<::Google::Iam::V1::BindingDelta>] + # The delta for Bindings between two policies. + # @!attribute [rw] audit_config_deltas + # @return [::Array<::Google::Iam::V1::AuditConfigDelta>] + # The delta for AuditConfigs between two policies. + class PolicyDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # One delta entry for Binding. Each individual change (only one member in each + # entry) to a binding will be a separate entry. + # @!attribute [rw] action + # @return [::Google::Iam::V1::BindingDelta::Action] + # The action that was performed on a Binding. + # Required + # @!attribute [rw] role + # @return [::String] + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Required + # @!attribute [rw] member + # @return [::String] + # A single identity requesting access for a Google Cloud resource. + # Follows the same format of Binding.members. + # Required + # @!attribute [rw] condition + # @return [::Google::Type::Expr] + # The condition that is associated with this binding. + class BindingDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of action performed on a Binding in a policy. + module Action + # Unspecified. + ACTION_UNSPECIFIED = 0 + + # Addition of a Binding. + ADD = 1 + + # Removal of a Binding. + REMOVE = 2 + end + end + + # One delta entry for AuditConfig. Each individual change (only one + # exempted_member in each entry) to a AuditConfig will be a separate entry. + # @!attribute [rw] action + # @return [::Google::Iam::V1::AuditConfigDelta::Action] + # The action that was performed on an audit configuration in a policy. + # Required + # @!attribute [rw] service + # @return [::String] + # Specifies a service that was configured for Cloud Audit Logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Required + # @!attribute [rw] exempted_member + # @return [::String] + # A single identity that is exempted from "data access" audit + # logging for the `service` specified above. + # Follows the same format of Binding.members. + # @!attribute [rw] log_type + # @return [::String] + # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + # enabled, and cannot be configured. + # Required + class AuditConfigDelta + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of action performed on an audit configuration in a policy. + module Action + # Unspecified. + ACTION_UNSPECIFIED = 0 + + # Addition of an audit configuration. + ADD = 1 + + # Removal of an audit configuration. + REMOVE = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb new file mode 100644 index 000000000000..7a757f512165 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb @@ -0,0 +1,191 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Longrunning + # This resource represents a long-running operation that is the result of a + # network API call. + # @!attribute [rw] name + # @return [::String] + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/{unique_id}`. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Any] + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # @!attribute [rw] done + # @return [::Boolean] + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # @!attribute [rw] error + # @return [::Google::Rpc::Status] + # The error result of the operation in case of failure or cancellation. + # + # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] response + # @return [::Google::Protobuf::Any] + # The normal, successful response of the operation. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # + # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Operation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.GetOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource. + class GetOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.ListOperations. + # @!attribute [rw] name + # @return [::String] + # The name of the operation's parent resource. + # @!attribute [rw] filter + # @return [::String] + # The standard list filter. + # @!attribute [rw] page_size + # @return [::Integer] + # The standard list page size. + # @!attribute [rw] page_token + # @return [::String] + # The standard list page token. + # @!attribute [rw] return_partial_success + # @return [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + class ListOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for + # Operations.ListOperations. + # @!attribute [rw] operations + # @return [::Array<::Google::Longrunning::Operation>] + # A list of operations that matches the specified filter in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # The standard List next-page token. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Unreachable resources. Populated when the request sets + # `ListOperationsRequest.return_partial_success` and reads across + # collections e.g. when attempting to list all resources across all supported + # locations. + class ListOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.CancelOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be cancelled. + class CancelOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.DeleteOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be deleted. + class DeleteOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.WaitOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to wait on. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + class WaitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A message representing the message types used by a long-running operation. + # + # Example: + # + # rpc Export(ExportRequest) returns (google.longrunning.Operation) { + # option (google.longrunning.operation_info) = { + # response_type: "ExportResponse" + # metadata_type: "ExportMetadata" + # }; + # } + # @!attribute [rw] response_type + # @return [::String] + # Required. The message name of the primary return type for this + # long-running operation. + # This type will be used to deserialize the LRO's response. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + # @!attribute [rw] metadata_type + # @return [::String] + # Required. The message name of the metadata type for this long-running + # operation. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + class OperationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb new file mode 100644 index 000000000000..53e7733b6592 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # + # Example (Comparison): + # + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # + # Example (Equality): + # + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # + # Example (Logic): + # + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # + # Example (Data Manipulation): + # + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # @!attribute [rw] expression + # @return [::String] + # Textual representation of an expression in Common Expression Language + # syntax. + # @!attribute [rw] title + # @return [::String] + # Optional. Title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # @!attribute [rw] description + # @return [::String] + # Optional. Description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # @!attribute [rw] location + # @return [::String] + # Optional. String indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + class Expr + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile new file mode 100644 index 000000000000..f88d2bf31b17 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-bigtable-admin-v2", path: "../" +else + gem "google-cloud-bigtable-admin-v2" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb new file mode 100644 index 000000000000..60b0e44dae42 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile. +# +def create_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new + + # Call the create_app_profile method. + result = client.create_app_profile request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb new file mode 100644 index 000000000000..1923dfa3b593 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster. +# +def create_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new + + # Call the create_cluster method. + result = client.create_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb new file mode 100644 index 000000000000..9bfb53227c80 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance. +# +def create_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new + + # Call the create_instance method. + result = client.create_instance request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb new file mode 100644 index 000000000000..7523e3a3df7f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view. +# +def create_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new + + # Call the create_logical_view method. + result = client.create_logical_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb new file mode 100644 index 000000000000..99be7f04ca20 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view. +# +def create_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new + + # Call the create_materialized_view method. + result = client.create_materialized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb new file mode 100644 index 000000000000..be07699500ed --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile. +# +def delete_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new + + # Call the delete_app_profile method. + result = client.delete_app_profile request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb new file mode 100644 index 000000000000..ad008ded7e08 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster. +# +def delete_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new + + # Call the delete_cluster method. + result = client.delete_cluster request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb new file mode 100644 index 000000000000..f161dc0445dd --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance. +# +def delete_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new + + # Call the delete_instance method. + result = client.delete_instance request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb new file mode 100644 index 000000000000..f486e799a373 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view. +# +def delete_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new + + # Call the delete_logical_view method. + result = client.delete_logical_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb new file mode 100644 index 000000000000..1e869b43c09d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view. +# +def delete_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new + + # Call the delete_materialized_view method. + result = client.delete_materialized_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb new file mode 100644 index 000000000000..a6b51fecf7b8 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile. +# +def get_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new + + # Call the get_app_profile method. + result = client.get_app_profile request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb new file mode 100644 index 000000000000..e3a302d2fe21 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster. +# +def get_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new + + # Call the get_cluster method. + result = client.get_cluster request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb new file mode 100644 index 000000000000..69ab829b07a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_iam_policy call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb new file mode 100644 index 000000000000..ccd0595fe780 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance. +# +def get_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new + + # Call the get_instance method. + result = client.get_instance request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb new file mode 100644 index 000000000000..adfe7a736595 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view. +# +def get_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new + + # Call the get_logical_view method. + result = client.get_logical_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb new file mode 100644 index 000000000000..6233ab496c0f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view. +# +def get_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new + + # Call the get_materialized_view method. + result = client.get_materialized_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb new file mode 100644 index 000000000000..57b0097b3518 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_app_profiles call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles. +# +def list_app_profiles + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new + + # Call the list_app_profiles method. + result = client.list_app_profiles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb new file mode 100644 index 000000000000..8545983eb3a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_clusters call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters. +# +def list_clusters + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new + + # Call the list_clusters method. + result = client.list_clusters request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb new file mode 100644 index 000000000000..5090d8624697 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets. +# +def list_hot_tablets + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new + + # Call the list_hot_tablets method. + result = client.list_hot_tablets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb new file mode 100644 index 000000000000..a4038642c51f --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_instances call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances. +# +def list_instances + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new + + # Call the list_instances method. + result = client.list_instances request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb new file mode 100644 index 000000000000..09e85d564f89 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_logical_views call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views. +# +def list_logical_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new + + # Call the list_logical_views method. + result = client.list_logical_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb new file mode 100644 index 000000000000..37d40ffb913e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_materialized_views call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views. +# +def list_materialized_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new + + # Call the list_materialized_views method. + result = client.list_materialized_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb new file mode 100644 index 000000000000..3923f7ae400d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster. +# +def partial_update_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new + + # Call the partial_update_cluster method. + result = client.partial_update_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb new file mode 100644 index 000000000000..1630801fd676 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the partial_update_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance. +# +def partial_update_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new + + # Call the partial_update_instance method. + result = client.partial_update_instance request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb new file mode 100644 index 000000000000..834fab5b6899 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the set_iam_policy call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb new file mode 100644 index 000000000000..1e00c002ab00 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb new file mode 100644 index 000000000000..30f88f2bf050 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_app_profile call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile. +# +def update_app_profile + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new + + # Call the update_app_profile method. + result = client.update_app_profile request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb new file mode 100644 index 000000000000..da1c506529be --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_cluster call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster. +# +def update_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::Cluster.new + + # Call the update_cluster method. + result = client.update_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb new file mode 100644 index 000000000000..2aeb910c78ba --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_instance call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance. +# +def update_instance + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::Instance.new + + # Call the update_instance method. + result = client.update_instance request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. + p result +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb new file mode 100644 index 000000000000..1cb0d166a85e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_logical_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view. +# +def update_logical_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new + + # Call the update_logical_view method. + result = client.update_logical_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb new file mode 100644 index 000000000000..da78d73ca450 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_materialized_view call in the BigtableInstanceAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view. +# +def update_materialized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new + + # Call the update_materialized_view method. + result = client.update_materialized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb new file mode 100644 index 000000000000..56bd26ccebc2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the check_consistency call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency. +# +def check_consistency + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new + + # Call the check_consistency method. + result = client.check_consistency request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb new file mode 100644 index 000000000000..32e9e991b2e0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the copy_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup. +# +def copy_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new + + # Call the copy_backup method. + result = client.copy_backup request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb new file mode 100644 index 000000000000..93ca1b05050a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view. +# +def create_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new + + # Call the create_authorized_view method. + result = client.create_authorized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb new file mode 100644 index 000000000000..bbd26b8f605e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup. +# +def create_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new + + # Call the create_backup method. + result = client.create_backup request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb new file mode 100644 index 000000000000..3cf630415459 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle. +# +def create_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new + + # Call the create_schema_bundle method. + result = client.create_schema_bundle request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb new file mode 100644 index 000000000000..8d98a8471082 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table. +# +def create_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new + + # Call the create_table method. + result = client.create_table request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb new file mode 100644 index 000000000000..3cf2e7283166 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot. +# +def create_table_from_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new + + # Call the create_table_from_snapshot method. + result = client.create_table_from_snapshot request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb new file mode 100644 index 000000000000..c5937706f326 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view. +# +def delete_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new + + # Call the delete_authorized_view method. + result = client.delete_authorized_view request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb new file mode 100644 index 000000000000..d710addca48c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup. +# +def delete_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new + + # Call the delete_backup method. + result = client.delete_backup request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb new file mode 100644 index 000000000000..3b07c8b887f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle. +# +def delete_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new + + # Call the delete_schema_bundle method. + result = client.delete_schema_bundle request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb new file mode 100644 index 000000000000..c7ab27d40147 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot. +# +def delete_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new + + # Call the delete_snapshot method. + result = client.delete_snapshot request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb new file mode 100644 index 000000000000..315ff9367627 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the delete_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table. +# +def delete_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new + + # Call the delete_table method. + result = client.delete_table request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb new file mode 100644 index 000000000000..2b6cd7d2303a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the drop_row_range call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range. +# +def drop_row_range + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new + + # Call the drop_row_range method. + result = client.drop_row_range request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb new file mode 100644 index 000000000000..88734d55318b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the generate_consistency_token call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token. +# +def generate_consistency_token + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new + + # Call the generate_consistency_token method. + result = client.generate_consistency_token request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb new file mode 100644 index 000000000000..79ae8f10cc46 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view. +# +def get_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new + + # Call the get_authorized_view method. + result = client.get_authorized_view request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb new file mode 100644 index 000000000000..6c0f68dd6078 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup. +# +def get_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new + + # Call the get_backup method. + result = client.get_backup request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb new file mode 100644 index 000000000000..33969bfecb74 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_iam_policy call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb new file mode 100644 index 000000000000..108356d532d0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle. +# +def get_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new + + # Call the get_schema_bundle method. + result = client.get_schema_bundle request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb new file mode 100644 index 000000000000..da9903b816ee --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_snapshot call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot. +# +def get_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new + + # Call the get_snapshot method. + result = client.get_snapshot request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb new file mode 100644 index 000000000000..de73a71a944b --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the get_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table. +# +def get_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new + + # Call the get_table method. + result = client.get_table request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb new file mode 100644 index 000000000000..975edad00358 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_authorized_views call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views. +# +def list_authorized_views + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new + + # Call the list_authorized_views method. + result = client.list_authorized_views request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb new file mode 100644 index 000000000000..113b0761aba0 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_backups call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups. +# +def list_backups + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new + + # Call the list_backups method. + result = client.list_backups request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb new file mode 100644 index 000000000000..03b8c6193c5a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_schema_bundles call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles. +# +def list_schema_bundles + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new + + # Call the list_schema_bundles method. + result = client.list_schema_bundles request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb new file mode 100644 index 000000000000..1c34195822a7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_snapshots call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots. +# +def list_snapshots + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new + + # Call the list_snapshots method. + result = client.list_snapshots request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb new file mode 100644 index 000000000000..3c482ff03261 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the list_tables call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables. +# +def list_tables + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new + + # Call the list_tables method. + result = client.list_tables request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. + p item + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb new file mode 100644 index 000000000000..e711d7477c88 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the modify_column_families call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families. +# +def modify_column_families + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new + + # Call the modify_column_families method. + result = client.modify_column_families request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb new file mode 100644 index 000000000000..3c28d6009330 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the restore_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table. +# +def restore_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new + + # Call the restore_table method. + result = client.restore_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb new file mode 100644 index 000000000000..ff5fff58358d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the set_iam_policy call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb new file mode 100644 index 000000000000..4d171700843e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the snapshot_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table. +# +def snapshot_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new + + # Call the snapshot_table method. + result = client.snapshot_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb new file mode 100644 index 000000000000..abe2e3451d02 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the test_iam_permissions call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb new file mode 100644 index 000000000000..00c9558cd83c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the undelete_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table. +# +def undelete_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new + + # Call the undelete_table method. + result = client.undelete_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb new file mode 100644 index 000000000000..383be6ce0938 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_authorized_view call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view. +# +def update_authorized_view + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new + + # Call the update_authorized_view method. + result = client.update_authorized_view request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb new file mode 100644 index 000000000000..32aa9d456b3a --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_backup call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup. +# +def update_backup + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new + + # Call the update_backup method. + result = client.update_backup request + + # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. + p result +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb new file mode 100644 index 000000000000..c33e873f5e7d --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_schema_bundle call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle. +# +def update_schema_bundle + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new + + # Call the update_schema_bundle method. + result = client.update_schema_bundle request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb new file mode 100644 index 000000000000..d49e5c04deca --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] +require "google/cloud/bigtable/admin/v2" + +## +# Snippet for the update_table call in the BigtableTableAdmin service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table. +# +def update_table + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new + + # Call the update_table method. + result = client.update_table request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json new file mode 100644 index 000000000000..307c646525b1 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json @@ -0,0 +1,2655 @@ +{ + "client_library": { + "name": "google-cloud-bigtable-admin-v2", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.bigtable.admin.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", + "title": "Snippet for the create_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance.", + "file": "bigtable_instance_admin/create_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", + "title": "Snippet for the get_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance.", + "file": "bigtable_instance_admin/get_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", + "title": "Snippet for the list_instances call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances.", + "file": "bigtable_instance_admin/list_instances.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_instances", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListInstances", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", + "title": "Snippet for the update_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance.", + "file": "bigtable_instance_admin/update_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", + "title": "Snippet for the partial_update_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance.", + "file": "bigtable_instance_admin/partial_update_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "partial_update_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "PartialUpdateInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", + "title": "Snippet for the delete_instance call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance.", + "file": "bigtable_instance_admin/delete_instance.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_instance", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteInstance", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", + "title": "Snippet for the create_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster.", + "file": "bigtable_instance_admin/create_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", + "title": "Snippet for the get_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster.", + "file": "bigtable_instance_admin/get_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", + "title": "Snippet for the list_clusters call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters.", + "file": "bigtable_instance_admin/list_clusters.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_clusters", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListClusters", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", + "title": "Snippet for the update_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster.", + "file": "bigtable_instance_admin/update_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", + "title": "Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster.", + "file": "bigtable_instance_admin/partial_update_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "partial_update_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "PartialUpdateCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", + "title": "Snippet for the delete_cluster call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster.", + "file": "bigtable_instance_admin/delete_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_cluster", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteCluster", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", + "title": "Snippet for the create_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile.", + "file": "bigtable_instance_admin/create_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", + "title": "Snippet for the get_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile.", + "file": "bigtable_instance_admin/get_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", + "title": "Snippet for the list_app_profiles call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles.", + "file": "bigtable_instance_admin/list_app_profiles.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_app_profiles", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListAppProfiles", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", + "title": "Snippet for the update_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile.", + "file": "bigtable_instance_admin/update_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", + "title": "Snippet for the delete_app_profile call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile.", + "file": "bigtable_instance_admin/delete_app_profile.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_app_profile", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteAppProfile", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy.", + "file": "bigtable_instance_admin/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy.", + "file": "bigtable_instance_admin/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions.", + "file": "bigtable_instance_admin/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", + "title": "Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets.", + "file": "bigtable_instance_admin/list_hot_tablets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_hot_tablets", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListHotTablets", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync", + "title": "Snippet for the create_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view.", + "file": "bigtable_instance_admin/create_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync", + "title": "Snippet for the get_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view.", + "file": "bigtable_instance_admin/get_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::LogicalView", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync", + "title": "Snippet for the list_logical_views call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views.", + "file": "bigtable_instance_admin/list_logical_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_logical_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListLogicalViews", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync", + "title": "Snippet for the update_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view.", + "file": "bigtable_instance_admin/update_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync", + "title": "Snippet for the delete_logical_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view.", + "file": "bigtable_instance_admin/delete_logical_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_logical_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteLogicalView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync", + "title": "Snippet for the create_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view.", + "file": "bigtable_instance_admin/create_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "CreateMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync", + "title": "Snippet for the get_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view.", + "file": "bigtable_instance_admin/get_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::MaterializedView", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "GetMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync", + "title": "Snippet for the list_materialized_views call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views.", + "file": "bigtable_instance_admin/list_materialized_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_materialized_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "ListMaterializedViews", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync", + "title": "Snippet for the update_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view.", + "file": "bigtable_instance_admin/update_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "UpdateMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync", + "title": "Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view.", + "file": "bigtable_instance_admin/delete_materialized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_materialized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableInstanceAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" + }, + "method": { + "short_name": "DeleteMaterializedView", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", + "service": { + "short_name": "BigtableInstanceAdmin", + "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", + "title": "Snippet for the create_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table.", + "file": "bigtable_table_admin/create_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", + "title": "Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot.", + "file": "bigtable_table_admin/create_table_from_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_table_from_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateTableFromSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", + "title": "Snippet for the list_tables call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables.", + "file": "bigtable_table_admin/list_tables.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_tables", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListTables", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", + "title": "Snippet for the get_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table.", + "file": "bigtable_table_admin/get_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", + "title": "Snippet for the update_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table.", + "file": "bigtable_table_admin/update_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", + "title": "Snippet for the delete_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table.", + "file": "bigtable_table_admin/delete_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", + "title": "Snippet for the undelete_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table.", + "file": "bigtable_table_admin/undelete_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "undelete_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UndeleteTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", + "title": "Snippet for the create_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view.", + "file": "bigtable_table_admin/create_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", + "title": "Snippet for the list_authorized_views call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views.", + "file": "bigtable_table_admin/list_authorized_views.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_authorized_views", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListAuthorizedViews", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", + "title": "Snippet for the get_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view.", + "file": "bigtable_table_admin/get_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::AuthorizedView", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", + "title": "Snippet for the update_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view.", + "file": "bigtable_table_admin/update_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", + "title": "Snippet for the delete_authorized_view call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view.", + "file": "bigtable_table_admin/delete_authorized_view.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_authorized_view", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteAuthorizedView", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", + "title": "Snippet for the modify_column_families call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families.", + "file": "bigtable_table_admin/modify_column_families.rb", + "language": "RUBY", + "client_method": { + "short_name": "modify_column_families", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ModifyColumnFamilies", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", + "title": "Snippet for the drop_row_range call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range.", + "file": "bigtable_table_admin/drop_row_range.rb", + "language": "RUBY", + "client_method": { + "short_name": "drop_row_range", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DropRowRange", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", + "title": "Snippet for the generate_consistency_token call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token.", + "file": "bigtable_table_admin/generate_consistency_token.rb", + "language": "RUBY", + "client_method": { + "short_name": "generate_consistency_token", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GenerateConsistencyToken", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", + "title": "Snippet for the check_consistency call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency.", + "file": "bigtable_table_admin/check_consistency.rb", + "language": "RUBY", + "client_method": { + "short_name": "check_consistency", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CheckConsistency", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", + "title": "Snippet for the snapshot_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table.", + "file": "bigtable_table_admin/snapshot_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "snapshot_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "SnapshotTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", + "title": "Snippet for the get_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot.", + "file": "bigtable_table_admin/get_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Snapshot", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", + "title": "Snippet for the list_snapshots call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots.", + "file": "bigtable_table_admin/list_snapshots.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_snapshots", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListSnapshots", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", + "title": "Snippet for the delete_snapshot call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot.", + "file": "bigtable_table_admin/delete_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_snapshot", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteSnapshot", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", + "title": "Snippet for the create_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup.", + "file": "bigtable_table_admin/create_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", + "title": "Snippet for the get_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup.", + "file": "bigtable_table_admin/get_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", + "title": "Snippet for the update_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup.", + "file": "bigtable_table_admin/update_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", + "title": "Snippet for the delete_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup.", + "file": "bigtable_table_admin/delete_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", + "title": "Snippet for the list_backups call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups.", + "file": "bigtable_table_admin/list_backups.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_backups", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListBackups", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", + "title": "Snippet for the restore_table call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table.", + "file": "bigtable_table_admin/restore_table.rb", + "language": "RUBY", + "client_method": { + "short_name": "restore_table", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "RestoreTable", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", + "title": "Snippet for the copy_backup call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup.", + "file": "bigtable_table_admin/copy_backup.rb", + "language": "RUBY", + "client_method": { + "short_name": "copy_backup", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CopyBackup", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy.", + "file": "bigtable_table_admin/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy.", + "file": "bigtable_table_admin/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions.", + "file": "bigtable_table_admin/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync", + "title": "Snippet for the create_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle.", + "file": "bigtable_table_admin/create_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "CreateSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync", + "title": "Snippet for the update_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle.", + "file": "bigtable_table_admin/update_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "UpdateSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync", + "title": "Snippet for the get_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle.", + "file": "bigtable_table_admin/get_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::SchemaBundle", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "GetSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync", + "title": "Snippet for the list_schema_bundles call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles.", + "file": "bigtable_table_admin/list_schema_bundles.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_schema_bundles", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "ListSchemaBundles", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync", + "title": "Snippet for the delete_schema_bundle call in the BigtableTableAdmin service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle.", + "file": "bigtable_table_admin/delete_schema_bundle.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_schema_bundle", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "BigtableTableAdmin::Client", + "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" + }, + "method": { + "short_name": "DeleteSchemaBundle", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", + "service": { + "short_name": "BigtableTableAdmin", + "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb new file mode 100644 index 000000000000..d7820c4ab5a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" +require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb new file mode 100644 index 000000000000..2454f9a7005c --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb @@ -0,0 +1,139 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_app_profile_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.app_profile_path project: "value0", instance: "value1", app_profile: "value2" + assert_equal "projects/value0/instances/value1/appProfiles/value2", path + end + end + + def test_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" + assert_equal "projects/value0/instances/value1/clusters/value2", path + end + end + + def test_crypto_key_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path + end + end + + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", instance: "value1" + assert_equal "projects/value0/instances/value1", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_logical_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.logical_view_path project: "value0", instance: "value1", logical_view: "value2" + assert_equal "projects/value0/instances/value1/logicalViews/value2", path + end + end + + def test_materialized_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.materialized_view_path project: "value0", instance: "value1", materialized_view: "value2" + assert_equal "projects/value0/instances/value1/materializedViews/value2", path + end + end + + def test_project_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.project_path project: "value0" + assert_equal "projects/value0", path + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb new file mode 100644 index 000000000000..72716ecb7974 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb @@ -0,0 +1,2095 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_instance_admin_pb" +require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_instance + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + instance_id = "hello world" + instance = {} + clusters = {} + + create_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["instance_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] + assert_equal({}, request["clusters"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_instance parent: parent, instance_id: instance_id, instance: instance, clusters: clusters do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_instance ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_instance(::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_instance_client_stub.call_rpc_count + end + end + + def test_get_instance + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_instance({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_instance name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_instance ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_instance({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_instance(::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_instance_client_stub.call_rpc_count + end + end + + def test_list_instances + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_token = "hello world" + + list_instances_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_instances, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_instances_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_instances({ parent: parent, page_token: page_token }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_instances parent: parent, page_token: page_token do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_instances ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_instances({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_instances(::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_instances_client_stub.call_rpc_count + end + end + + def test_update_instance + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + display_name = "hello world" + state = :STATE_NOT_KNOWN + type = :TYPE_UNSPECIFIED + edition = :EDITION_UNSPECIFIED + labels = {} + create_time = {} + satisfies_pzs = true + satisfies_pzi = true + tags = {} + + update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Instance, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["display_name"] + assert_equal :STATE_NOT_KNOWN, request["state"] + assert_equal :TYPE_UNSPECIFIED, request["type"] + assert_equal :EDITION_UNSPECIFIED, request["edition"] + assert_equal({}, request["labels"].to_h) + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] + assert_equal true, request["satisfies_pzs"] + assert request.has_satisfies_pzs? + assert_equal true, request["satisfies_pzi"] + assert request.has_satisfies_pzi? + assert_equal({}, request["tags"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_instance({ name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_instance name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_instance({ name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_instance_client_stub.call_rpc_count + end + end + + def test_partial_update_instance + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + instance = {} + update_mask = {} + + partial_update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :partial_update_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, partial_update_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.partial_update_instance({ instance: instance, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.partial_update_instance instance: instance, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.partial_update_instance ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.partial_update_instance({ instance: instance, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.partial_update_instance(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, partial_update_instance_client_stub.call_rpc_count + end + end + + def test_delete_instance + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_instance, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_instance_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_instance({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_instance name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_instance ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_instance({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_instance(::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_instance_client_stub.call_rpc_count + end + end + + def test_create_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + cluster_id = "hello world" + cluster = {} + + create_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["cluster_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_cluster parent: parent, cluster_id: cluster_id, cluster: cluster do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_cluster ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_cluster(::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_cluster_client_stub.call_rpc_count + end + end + + def test_get_cluster + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Cluster.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_cluster ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_cluster(::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_cluster_client_stub.call_rpc_count + end + end + + def test_list_clusters + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_token = "hello world" + + list_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_clusters, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_clusters_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_clusters({ parent: parent, page_token: page_token }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_clusters parent: parent, page_token: page_token do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_clusters ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_clusters({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_clusters(::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_clusters_client_stub.call_rpc_count + end + end + + def test_update_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + location = "hello world" + state = :STATE_NOT_KNOWN + serve_nodes = 42 + node_scaling_factor = :NODE_SCALING_FACTOR_UNSPECIFIED + cluster_config = {} + default_storage_type = :STORAGE_TYPE_UNSPECIFIED + encryption_config = {} + + update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Cluster, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["location"] + assert_equal :STATE_NOT_KNOWN, request["state"] + assert_equal 42, request["serve_nodes"] + assert_equal :NODE_SCALING_FACTOR_UNSPECIFIED, request["node_scaling_factor"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig), request["cluster_config"] + assert_equal :cluster_config, request.config + assert_equal :STORAGE_TYPE_UNSPECIFIED, request["default_storage_type"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig), request["encryption_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_cluster name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_cluster ::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_cluster(::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_cluster_client_stub.call_rpc_count + end + end + + def test_partial_update_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + cluster = {} + update_mask = {} + + partial_update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :partial_update_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, partial_update_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.partial_update_cluster cluster: cluster, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.partial_update_cluster ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.partial_update_cluster(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, partial_update_cluster_client_stub.call_rpc_count + end + end + + def test_delete_cluster + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_cluster, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_cluster_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_cluster ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_cluster(::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_cluster_client_stub.call_rpc_count + end + end + + def test_create_app_profile + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + app_profile_id = "hello world" + app_profile = {} + ignore_warnings = true + + create_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["app_profile_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_app_profile parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_app_profile ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_app_profile(::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_app_profile_client_stub.call_rpc_count + end + end + + def test_get_app_profile + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_app_profile({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_app_profile name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_app_profile ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_app_profile({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_app_profile(::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_app_profile_client_stub.call_rpc_count + end + end + + def test_list_app_profiles + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_app_profiles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_app_profiles, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_app_profiles_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_app_profiles parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_app_profiles ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_app_profiles(::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_app_profiles_client_stub.call_rpc_count + end + end + + def test_update_app_profile + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + app_profile = {} + update_mask = {} + ignore_warnings = true + + update_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_app_profile app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_app_profile ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_app_profile(::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_app_profile_client_stub.call_rpc_count + end + end + + def test_delete_app_profile + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + ignore_warnings = true + + delete_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_app_profile, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_app_profile_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_app_profile name: name, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_app_profile ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_app_profile(::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_app_profile_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_list_hot_tablets + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + start_time = {} + end_time = {} + page_size = 42 + page_token = "hello world" + + list_hot_tablets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_hot_tablets, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_hot_tablets_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_hot_tablets parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_hot_tablets ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_hot_tablets(::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_hot_tablets_client_stub.call_rpc_count + end + end + + def test_create_logical_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + logical_view_id = "hello world" + logical_view = {} + + create_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["logical_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_logical_view parent: parent, logical_view_id: logical_view_id, logical_view: logical_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_logical_view ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_logical_view(::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_logical_view_client_stub.call_rpc_count + end + end + + def test_get_logical_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::LogicalView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_logical_view({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_logical_view name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_logical_view ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_logical_view({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_logical_view(::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_logical_view_client_stub.call_rpc_count + end + end + + def test_list_logical_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_logical_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_logical_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_logical_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_logical_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_logical_views ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_logical_views(::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_logical_views_client_stub.call_rpc_count + end + end + + def test_update_logical_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + logical_view = {} + update_mask = {} + + update_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_logical_view logical_view: logical_view, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_logical_view ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_logical_view(::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_logical_view_client_stub.call_rpc_count + end + end + + def test_delete_logical_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_logical_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_logical_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_logical_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_logical_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_logical_view ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_logical_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_logical_view(::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_logical_view_client_stub.call_rpc_count + end + end + + def test_create_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + materialized_view_id = "hello world" + materialized_view = {} + + create_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["materialized_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_materialized_view parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_materialized_view ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_materialized_view(::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_materialized_view_client_stub.call_rpc_count + end + end + + def test_get_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::MaterializedView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_materialized_view({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_materialized_view name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_materialized_view ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_materialized_view({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_materialized_view(::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_materialized_view_client_stub.call_rpc_count + end + end + + def test_list_materialized_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_materialized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_materialized_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_materialized_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_materialized_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_materialized_views ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_materialized_views(::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_materialized_views_client_stub.call_rpc_count + end + end + + def test_update_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + materialized_view = {} + update_mask = {} + + update_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_materialized_view materialized_view: materialized_view, update_mask: update_mask do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_materialized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_materialized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_materialized_view_client_stub.call_rpc_count + end + end + + def test_delete_materialized_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_materialized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_materialized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_materialized_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_materialized_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_materialized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_materialized_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_materialized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_materialized_view_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb new file mode 100644 index 000000000000..b4858530f9ca --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_table_admin_pb" +require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb new file mode 100644 index 000000000000..f660e3430c6e --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb @@ -0,0 +1,151 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_authorized_view_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.authorized_view_path project: "value0", instance: "value1", table: "value2", authorized_view: "value3" + assert_equal "projects/value0/instances/value1/tables/value2/authorizedViews/value3", path + end + end + + def test_backup_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.backup_path project: "value0", instance: "value1", cluster: "value2", backup: "value3" + assert_equal "projects/value0/instances/value1/clusters/value2/backups/value3", path + end + end + + def test_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" + assert_equal "projects/value0/instances/value1/clusters/value2", path + end + end + + def test_crypto_key_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path + end + end + + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", instance: "value1" + assert_equal "projects/value0/instances/value1", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_schema_bundle_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.schema_bundle_path project: "value0", instance: "value1", table: "value2", schema_bundle: "value3" + assert_equal "projects/value0/instances/value1/tables/value2/schemaBundles/value3", path + end + end + + def test_snapshot_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.snapshot_path project: "value0", instance: "value1", cluster: "value2", snapshot: "value3" + assert_equal "projects/value0/instances/value1/clusters/value2/snapshots/value3", path + end + end + + def test_table_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.table_path project: "value0", instance: "value1", table: "value2" + assert_equal "projects/value0/instances/value1/tables/value2", path + end + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb new file mode 100644 index 000000000000..44ea7cd17fc5 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb @@ -0,0 +1,2339 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/bigtable/admin/v2/bigtable_table_admin_pb" +require "google/cloud/bigtable/admin/v2/bigtable_table_admin" + +class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_table + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + table = {} + initial_splits = [{}] + + create_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, request["initial_splits"].first + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_table parent: parent, table_id: table_id, table: table, initial_splits: initial_splits do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_table ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_table(::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_table_client_stub.call_rpc_count + end + end + + def test_create_table_from_snapshot + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + source_snapshot = "hello world" + + create_table_from_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_table_from_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal "hello world", request["source_snapshot"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_table_from_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_table_from_snapshot parent: parent, table_id: table_id, source_snapshot: source_snapshot do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_table_from_snapshot ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_table_from_snapshot(::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_table_from_snapshot_client_stub.call_rpc_count + end + end + + def test_list_tables + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + view = :VIEW_UNSPECIFIED + page_size = 42 + page_token = "hello world" + + list_tables_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_tables, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, request + assert_equal "hello world", request["parent"] + assert_equal :VIEW_UNSPECIFIED, request["view"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_tables_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_tables parent: parent, view: view, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_tables ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_tables(::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_tables_client_stub.call_rpc_count + end + end + + def test_get_table + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + view = :VIEW_UNSPECIFIED + + get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, request + assert_equal "hello world", request["name"] + assert_equal :VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_table({ name: name, view: view }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_table name: name, view: view do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_table ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_table({ name: name, view: view }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_table(::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_table_client_stub.call_rpc_count + end + end + + def test_update_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + table = {} + update_mask = {} + ignore_warnings = true + + update_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_table table: table, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_table ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_table(::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_table_client_stub.call_rpc_count + end + end + + def test_delete_table + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_table({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_table name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_table ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_table({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_table(::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_table_client_stub.call_rpc_count + end + end + + def test_undelete_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + undelete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :undelete_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, undelete_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.undelete_table({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.undelete_table name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.undelete_table ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.undelete_table({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.undelete_table(::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, undelete_table_client_stub.call_rpc_count + end + end + + def test_create_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + authorized_view_id = "hello world" + authorized_view = {} + + create_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["authorized_view_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_authorized_view parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_authorized_view ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_authorized_view(::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_authorized_view_client_stub.call_rpc_count + end + end + + def test_list_authorized_views + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + view = :RESPONSE_VIEW_UNSPECIFIED + + list_authorized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_authorized_views, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_authorized_views_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_authorized_views parent: parent, page_size: page_size, page_token: page_token, view: view do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_authorized_views ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_authorized_views(::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_authorized_views_client_stub.call_rpc_count + end + end + + def test_get_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + view = :RESPONSE_VIEW_UNSPECIFIED + + get_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_authorized_view({ name: name, view: view }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_authorized_view name: name, view: view do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_authorized_view ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_authorized_view({ name: name, view: view }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_authorized_view(::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_authorized_view_client_stub.call_rpc_count + end + end + + def test_update_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + authorized_view = {} + update_mask = {} + ignore_warnings = true + + update_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_authorized_view authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_authorized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_authorized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_authorized_view_client_stub.call_rpc_count + end + end + + def test_delete_authorized_view + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_authorized_view, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_authorized_view_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_authorized_view({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_authorized_view name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_authorized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_authorized_view({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_authorized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_authorized_view_client_stub.call_rpc_count + end + end + + def test_modify_column_families + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + modifications = [{}] + ignore_warnings = true + + modify_column_families_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :modify_column_families, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, request + assert_equal "hello world", request["name"] + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, request["modifications"].first + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, modify_column_families_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.modify_column_families name: name, modifications: modifications, ignore_warnings: ignore_warnings do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.modify_column_families ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.modify_column_families(::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, modify_column_families_client_stub.call_rpc_count + end + end + + def test_drop_row_range + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + row_key_prefix = "hello world" + + drop_row_range_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :drop_row_range, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["row_key_prefix"] + assert_equal :row_key_prefix, request.target + refute_nil options + end + + Gapic::ServiceStub.stub :new, drop_row_range_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.drop_row_range name: name, row_key_prefix: row_key_prefix do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.drop_row_range ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.drop_row_range(::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, drop_row_range_client_stub.call_rpc_count + end + end + + def test_generate_consistency_token + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + generate_consistency_token_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :generate_consistency_token, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, generate_consistency_token_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.generate_consistency_token({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.generate_consistency_token name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.generate_consistency_token ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.generate_consistency_token({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.generate_consistency_token(::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, generate_consistency_token_client_stub.call_rpc_count + end + end + + def test_check_consistency + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + consistency_token = "hello world" + standard_read_remote_writes = {} + + check_consistency_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :check_consistency, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["consistency_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites), request["standard_read_remote_writes"] + assert_equal :standard_read_remote_writes, request.mode + refute_nil options + end + + Gapic::ServiceStub.stub :new, check_consistency_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.check_consistency name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.check_consistency ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.check_consistency(::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, check_consistency_client_stub.call_rpc_count + end + end + + def test_snapshot_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + cluster = "hello world" + snapshot_id = "hello world" + ttl = {} + description = "hello world" + + snapshot_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :snapshot_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["cluster"] + assert_equal "hello world", request["snapshot_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] + assert_equal "hello world", request["description"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, snapshot_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.snapshot_table name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.snapshot_table ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.snapshot_table(::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, snapshot_table_client_stub.call_rpc_count + end + end + + def test_get_snapshot + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Snapshot.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_snapshot({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_snapshot name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_snapshot ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_snapshot({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_snapshot(::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_snapshot_client_stub.call_rpc_count + end + end + + def test_list_snapshots + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_snapshots, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_snapshots_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_snapshots parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_snapshots ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_snapshots(::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_snapshots_client_stub.call_rpc_count + end + end + + def test_delete_snapshot + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_snapshot, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_snapshot({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_snapshot name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_snapshot ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_snapshot({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_snapshot(::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_snapshot_client_stub.call_rpc_count + end + end + + def test_create_backup + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + backup_id = "hello world" + backup = {} + + create_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["backup_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_backup parent: parent, backup_id: backup_id, backup: backup do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_backup ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_backup(::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_backup_client_stub.call_rpc_count + end + end + + def test_get_backup + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_backup({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_backup name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_backup ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_backup({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_backup(::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_backup_client_stub.call_rpc_count + end + end + + def test_update_backup + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + backup = {} + update_mask = {} + + update_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_backup({ backup: backup, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_backup backup: backup, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_backup ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_backup({ backup: backup, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_backup(::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_backup_client_stub.call_rpc_count + end + end + + def test_delete_backup + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_backup({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_backup name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_backup ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_backup({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_backup(::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_backup_client_stub.call_rpc_count + end + end + + def test_list_backups + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + order_by = "hello world" + page_size = 42 + page_token = "hello world" + + list_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_backups, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_backups_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_backups parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_backups ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_backups(::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_backups_client_stub.call_rpc_count + end + end + + def test_restore_table + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + table_id = "hello world" + backup = "hello world" + + restore_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :restore_table, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["table_id"] + assert_equal "hello world", request["backup"] + assert_equal :backup, request.source + refute_nil options + end + + Gapic::ServiceStub.stub :new, restore_table_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.restore_table({ parent: parent, table_id: table_id, backup: backup }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.restore_table parent: parent, table_id: table_id, backup: backup do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.restore_table ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.restore_table({ parent: parent, table_id: table_id, backup: backup }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.restore_table(::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, restore_table_client_stub.call_rpc_count + end + end + + def test_copy_backup + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + backup_id = "hello world" + source_backup = "hello world" + expire_time = {} + + copy_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :copy_backup, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["backup_id"] + assert_equal "hello world", request["source_backup"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["expire_time"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, copy_backup_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.copy_backup parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.copy_backup ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.copy_backup(::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, copy_backup_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_create_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + schema_bundle_id = "hello world" + schema_bundle = {} + + create_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["schema_bundle_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_schema_bundle parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_schema_bundle_client_stub.call_rpc_count + end + end + + def test_update_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + schema_bundle = {} + update_mask = {} + ignore_warnings = true + + update_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal true, request["ignore_warnings"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_schema_bundle schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_schema_bundle_client_stub.call_rpc_count + end + end + + def test_get_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_schema_bundle({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_schema_bundle name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_schema_bundle({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_schema_bundle_client_stub.call_rpc_count + end + end + + def test_list_schema_bundles + # Create GRPC objects. + grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_schema_bundles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_schema_bundles, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_schema_bundles_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_schema_bundles parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_schema_bundles ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_schema_bundles(::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_schema_bundles_client_stub.call_rpc_count + end + end + + def test_delete_schema_bundle + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + + delete_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_schema_bundle, name + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_schema_bundle_client_stub do + # Create client + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_schema_bundle({ name: name, etag: etag }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_schema_bundle name: name, etag: etag do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_schema_bundle({ name: name, etag: etag }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_schema_bundle_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From 6ebe039f8855b3ad9edcbdd81ab9ffaee0c6abd5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 15 Apr 2026 17:05:33 +0000 Subject: [PATCH 8/8] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/bigtable/admin/v2/instance_pb.rb | 3 +- .../v2/bigtable_instance_admin/client.rb | 5 +- .../google/bigtable/admin/v2/instance.rb | 27 + .../admin/v2/bigtable_instance_admin_test.rb | 12 +- .../google-cloud-bigtable-admin-v2/.gitignore | 22 - .../.repo-metadata.json | 18 - .../.rubocop.yml | 33 - .../google-cloud-bigtable-admin-v2/.toys.rb | 28 - .../google-cloud-bigtable-admin-v2/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../CHANGELOG.md | 2 - .../google-cloud-bigtable-admin-v2/Gemfile | 14 - .../google-cloud-bigtable-admin-v2/LICENSE.md | 201 - .../google-cloud-bigtable-admin-v2/README.md | 154 - .../google-cloud-bigtable-admin-v2/Rakefile | 169 - .../gapic_metadata.json | 357 -- .../google-cloud-bigtable-admin-v2.gemspec | 29 - .../lib/google-cloud-bigtable-admin-v2.rb | 21 - .../admin/v2/bigtable_instance_admin_pb.rb | 78 - .../v2/bigtable_instance_admin_services_pb.rb | 142 - .../admin/v2/bigtable_table_admin_pb.rb | 91 - .../v2/bigtable_table_admin_services_pb.rb | 182 - .../lib/google/bigtable/admin/v2/common_pb.rb | 26 - .../google/bigtable/admin/v2/instance_pb.rb | 50 - .../lib/google/bigtable/admin/v2/table_pb.rb | 58 - .../lib/google/bigtable/admin/v2/types_pb.rb | 57 - .../lib/google/cloud/bigtable/admin/v2.rb | 43 - .../admin/v2/bigtable_instance_admin.rb | 54 - .../v2/bigtable_instance_admin/client.rb | 3713 -------------- .../v2/bigtable_instance_admin/credentials.rb | 59 - .../v2/bigtable_instance_admin/operations.rb | 843 ---- .../admin/v2/bigtable_instance_admin/paths.rb | 180 - .../bigtable/admin/v2/bigtable_table_admin.rb | 56 - .../admin/v2/bigtable_table_admin/client.rb | 4266 ----------------- .../v2/bigtable_table_admin/credentials.rb | 58 - .../v2/bigtable_table_admin/operations.rb | 843 ---- .../admin/v2/bigtable_table_admin/paths.rb | 214 - .../google/cloud/bigtable/admin/v2/version.rb | 30 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 593 --- .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../admin/v2/bigtable_instance_admin.rb | 767 --- .../bigtable/admin/v2/bigtable_table_admin.rb | 1167 ----- .../google/bigtable/admin/v2/common.rb | 58 - .../google/bigtable/admin/v2/instance.rb | 546 --- .../google/bigtable/admin/v2/table.rb | 741 --- .../google/bigtable/admin/v2/types.rb | 575 --- .../proto_docs/google/iam/v1/iam_policy.rb | 87 - .../proto_docs/google/iam/v1/options.rb | 50 - .../proto_docs/google/iam/v1/policy.rb | 426 -- .../google/longrunning/operations.rb | 191 - .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/rpc/status.rb | 48 - .../proto_docs/google/type/expr.rb | 75 - .../snippets/Gemfile | 32 - .../create_app_profile.rb | 47 - .../bigtable_instance_admin/create_cluster.rb | 54 - .../create_instance.rb | 54 - .../create_logical_view.rb | 54 - .../create_materialized_view.rb | 54 - .../delete_app_profile.rb | 47 - .../bigtable_instance_admin/delete_cluster.rb | 47 - .../delete_instance.rb | 47 - .../delete_logical_view.rb | 47 - .../delete_materialized_view.rb | 47 - .../get_app_profile.rb | 47 - .../bigtable_instance_admin/get_cluster.rb | 47 - .../bigtable_instance_admin/get_iam_policy.rb | 47 - .../bigtable_instance_admin/get_instance.rb | 47 - .../get_logical_view.rb | 47 - .../get_materialized_view.rb | 47 - .../list_app_profiles.rb | 51 - .../bigtable_instance_admin/list_clusters.rb | 47 - .../list_hot_tablets.rb | 51 - .../bigtable_instance_admin/list_instances.rb | 47 - .../list_logical_views.rb | 51 - .../list_materialized_views.rb | 51 - .../partial_update_cluster.rb | 54 - .../partial_update_instance.rb | 54 - .../bigtable_instance_admin/set_iam_policy.rb | 47 - .../test_iam_permissions.rb | 47 - .../update_app_profile.rb | 54 - .../bigtable_instance_admin/update_cluster.rb | 54 - .../update_instance.rb | 47 - .../update_logical_view.rb | 54 - .../update_materialized_view.rb | 54 - .../bigtable_table_admin/check_consistency.rb | 47 - .../bigtable_table_admin/copy_backup.rb | 54 - .../create_authorized_view.rb | 54 - .../bigtable_table_admin/create_backup.rb | 54 - .../create_schema_bundle.rb | 54 - .../bigtable_table_admin/create_table.rb | 47 - .../create_table_from_snapshot.rb | 54 - .../delete_authorized_view.rb | 47 - .../bigtable_table_admin/delete_backup.rb | 47 - .../delete_schema_bundle.rb | 47 - .../bigtable_table_admin/delete_snapshot.rb | 47 - .../bigtable_table_admin/delete_table.rb | 47 - .../bigtable_table_admin/drop_row_range.rb | 47 - .../generate_consistency_token.rb | 47 - .../get_authorized_view.rb | 47 - .../bigtable_table_admin/get_backup.rb | 47 - .../bigtable_table_admin/get_iam_policy.rb | 47 - .../bigtable_table_admin/get_schema_bundle.rb | 47 - .../bigtable_table_admin/get_snapshot.rb | 47 - .../bigtable_table_admin/get_table.rb | 47 - .../list_authorized_views.rb | 51 - .../bigtable_table_admin/list_backups.rb | 51 - .../list_schema_bundles.rb | 51 - .../bigtable_table_admin/list_snapshots.rb | 51 - .../bigtable_table_admin/list_tables.rb | 51 - .../modify_column_families.rb | 47 - .../bigtable_table_admin/restore_table.rb | 54 - .../bigtable_table_admin/set_iam_policy.rb | 47 - .../bigtable_table_admin/snapshot_table.rb | 54 - .../test_iam_permissions.rb | 47 - .../bigtable_table_admin/undelete_table.rb | 54 - .../update_authorized_view.rb | 54 - .../bigtable_table_admin/update_backup.rb | 47 - .../update_schema_bundle.rb | 54 - .../bigtable_table_admin/update_table.rb | 54 - ...pet_metadata_google.bigtable.admin.v2.json | 2655 ---------- ...bigtable_instance_admin_operations_test.rb | 400 -- .../v2/bigtable_instance_admin_paths_test.rb | 139 - .../admin/v2/bigtable_instance_admin_test.rb | 2095 -------- .../bigtable_table_admin_operations_test.rb | 400 -- .../v2/bigtable_table_admin_paths_test.rb | 151 - .../admin/v2/bigtable_table_admin_test.rb | 2339 --------- .../test/helper.rb | 26 - 135 files changed, 40 insertions(+), 30098 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/README.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/common_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb delete mode 100644 owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb diff --git a/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb b/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb index cc2af99645f5..55b59636b799 100644 --- a/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb +++ b/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/instance_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n\'google/bigtable/admin/v2/instance.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x87\x06\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x05state\x18\x03 \x01(\x0e\x32(.google.bigtable.admin.v2.Instance.StateB\x03\xe0\x41\x03\x12\x35\n\x04type\x18\x04 \x01(\x0e\x32\'.google.bigtable.admin.v2.Instance.Type\x12>\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" +descriptor_data = "\n\'google/bigtable/admin/v2/instance.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x92\x07\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x05state\x18\x03 \x01(\x0e\x32(.google.bigtable.admin.v2.Instance.StateB\x03\xe0\x41\x03\x12\x35\n\x04type\x18\x04 \x01(\x0e\x32\'.google.bigtable.admin.v2.Instance.Type\x12@\n\x07\x65\x64ition\x18\x0e \x01(\x0e\x32*.google.bigtable.admin.v2.Instance.EditionB\x03\xe0\x41\x01\x12>\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02\"G\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x0e\n\nENTERPRISE\x10\x01\x12\x13\n\x0f\x45NTERPRISE_PLUS\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -23,6 +23,7 @@ module V2 Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule + Instance::Edition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Edition").enummodule AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass diff --git a/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb index 23a9940bcf3f..9d1b7e0d46ba 100644 --- a/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +++ b/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb @@ -581,7 +581,7 @@ def list_instances request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload update_instance(name: nil, display_name: nil, type: nil, labels: nil, tags: nil) + # @overload update_instance(name: nil, display_name: nil, type: nil, edition: nil, labels: nil, tags: nil) # Pass arguments to `update_instance` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -595,6 +595,9 @@ def list_instances request, options = nil # to avoid confusion. # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] # The type of the instance. Defaults to `PRODUCTION`. + # @param edition [::Google::Cloud::Bigtable::Admin::V2::Instance::Edition] + # Optional. The edition of the instance. See + # {::Google::Cloud::Bigtable::Admin::V2::Instance::Edition Edition} for details. # @param labels [::Hash{::String => ::String}] # Labels are a flexible and lightweight mechanism for organizing cloud # resources into groups that reflect a customer's organizational needs and diff --git a/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb index 52630a3d0755..9a675ede11de 100644 --- a/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb +++ b/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb @@ -41,6 +41,10 @@ module V2 # @!attribute [rw] type # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] # The type of the instance. Defaults to `PRODUCTION`. + # @!attribute [rw] edition + # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Edition] + # Optional. The edition of the instance. See + # {::Google::Cloud::Bigtable::Admin::V2::Instance::Edition Edition} for details. # @!attribute [rw] labels # @return [::Google::Protobuf::Map{::String => ::String}] # Labels are a flexible and lightweight mechanism for organizing cloud @@ -127,6 +131,29 @@ module Type # a higher minimum node count than DEVELOPMENT. DEVELOPMENT = 2 end + + # Possible editions of an instance. + # + # An edition is a specific tier of Cloud Bigtable. Each edition is tailored + # to different customer needs. Higher tiers offer more features and better + # performance. + module Edition + # The edition is unspecified. This is treated as `ENTERPRISE`. + EDITION_UNSPECIFIED = 0 + + # The Enterprise edition. This is the default offering that is designed to + # meet the needs of most enterprise workloads. + ENTERPRISE = 1 + + # The Enterprise Plus edition. This is a premium tier that is designed for + # demanding, multi-tenant workloads requiring the highest levels of + # performance, scale, and global availability. + # + # The nodes in the Enterprise Plus tier come at a higher cost than the + # Enterprise tier. Any Enterprise Plus features must be disabled before + # downgrading to Enterprise. + ENTERPRISE_PLUS = 2 + end end # The Autoscaling targets for a Cluster. These determine the recommended nodes. diff --git a/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb index b2ea03071bdf..13cb036bd799 100644 --- a/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb +++ b/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb @@ -262,6 +262,7 @@ def test_update_instance display_name = "hello world" state = :STATE_NOT_KNOWN type = :TYPE_UNSPECIFIED + edition = :EDITION_UNSPECIFIED labels = {} create_time = {} satisfies_pzs = true @@ -275,6 +276,7 @@ def test_update_instance assert_equal "hello world", request["display_name"] assert_equal :STATE_NOT_KNOWN, request["state"] assert_equal :TYPE_UNSPECIFIED, request["type"] + assert_equal :EDITION_UNSPECIFIED, request["edition"] assert_equal({}, request["labels"].to_h) assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] assert_equal true, request["satisfies_pzs"] @@ -292,31 +294,31 @@ def test_update_instance end # Use hash object - client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| + client.update_instance({ name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use named arguments - client.update_instance name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| + client.update_instance name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object - client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| + client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use hash object with options - client.update_instance({ name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| + client.update_instance({ name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object with options - client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| + client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore b/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json deleted file mode 100644 index b1afcd60adc1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.repo-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "api_id": "bigtableadmin.googleapis.com", - "api_shortname": "bigtableadmin", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest", - "distribution_name": "google-cloud-bigtable-admin-v2", - "is_cloud": true, - "language": "ruby", - "name": "bigtableadmin", - "name_pretty": "Cloud Bigtable Admin V2 API", - "product_documentation": "https://cloud.google.com/bigtable", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details.", - "ruby-cloud-env-prefix": "BIGTABLE", - "ruby-cloud-product-url": "https://cloud.google.com/bigtable", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml b/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml deleted file mode 100644 index 8b307e35af07..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-bigtable-admin-v2.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-bigtable-admin-v2.rb" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts b/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts deleted file mode 100644 index 73aed5753bd5..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Cloud Bigtable Admin V2 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md deleted file mode 100644 index 1bb27d1cc834..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-bigtable-admin-v2 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-bigtable-admin-v2 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/bigtable/admin/v2" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/bigtable/admin/v2" - -::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-bigtable-admin-v2 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/bigtable/admin/v2" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md deleted file mode 100644 index 7fe6da059f1e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Cloud Bigtable Admin V2 API - -Administer your Cloud Bigtable tables and instances. - -Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Cloud Bigtable Admin V2 API. Most users should consider using -the main client gem, -[google-cloud-bigtable](https://rubygems.org/gems/google-cloud-bigtable). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-bigtable-admin-v2 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/bigtableadmin.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/bigtable/admin/v2" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new -request = ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new # (request fields as keyword arguments...) -response = client.create_instance request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigtable-admin-v2/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/bigtable) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/bigtable/admin/v2" -require "logger" - -client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-bigtable`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-bigtable-admin-v2`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-bigtable`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-bigtable-admin-v2`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile b/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile deleted file mode 100644 index 485278a34b9d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-bigtable-admin-v2 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["BIGTABLE_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["BIGTABLE_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["BIGTABLE_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or BIGTABLE_TEST_PROJECT=test123 BIGTABLE_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" - ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["BIGTABLE_PROJECT"] = project - ENV["BIGTABLE_TEST_PROJECT"] = project - ENV["BIGTABLE_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-bigtable-admin-v2 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-bigtable-admin-v2 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-bigtable-admin-v2 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-bigtable-admin-v2" - header "google-cloud-bigtable-admin-v2 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-bigtable-admin-v2 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-bigtable-admin-v2 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-bigtable-admin-v2 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-bigtable-admin-v2 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json deleted file mode 100644 index 2370ce3ced54..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/gapic_metadata.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.bigtable.admin.v2", - "libraryPackage": "::Google::Cloud::Bigtable::Admin::V2", - "services": { - "BigtableInstanceAdmin": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client", - "rpcs": { - "CreateInstance": { - "methods": [ - "create_instance" - ] - }, - "GetInstance": { - "methods": [ - "get_instance" - ] - }, - "ListInstances": { - "methods": [ - "list_instances" - ] - }, - "UpdateInstance": { - "methods": [ - "update_instance" - ] - }, - "PartialUpdateInstance": { - "methods": [ - "partial_update_instance" - ] - }, - "DeleteInstance": { - "methods": [ - "delete_instance" - ] - }, - "CreateCluster": { - "methods": [ - "create_cluster" - ] - }, - "GetCluster": { - "methods": [ - "get_cluster" - ] - }, - "ListClusters": { - "methods": [ - "list_clusters" - ] - }, - "UpdateCluster": { - "methods": [ - "update_cluster" - ] - }, - "PartialUpdateCluster": { - "methods": [ - "partial_update_cluster" - ] - }, - "DeleteCluster": { - "methods": [ - "delete_cluster" - ] - }, - "CreateAppProfile": { - "methods": [ - "create_app_profile" - ] - }, - "GetAppProfile": { - "methods": [ - "get_app_profile" - ] - }, - "ListAppProfiles": { - "methods": [ - "list_app_profiles" - ] - }, - "UpdateAppProfile": { - "methods": [ - "update_app_profile" - ] - }, - "DeleteAppProfile": { - "methods": [ - "delete_app_profile" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - }, - "ListHotTablets": { - "methods": [ - "list_hot_tablets" - ] - }, - "CreateLogicalView": { - "methods": [ - "create_logical_view" - ] - }, - "GetLogicalView": { - "methods": [ - "get_logical_view" - ] - }, - "ListLogicalViews": { - "methods": [ - "list_logical_views" - ] - }, - "UpdateLogicalView": { - "methods": [ - "update_logical_view" - ] - }, - "DeleteLogicalView": { - "methods": [ - "delete_logical_view" - ] - }, - "CreateMaterializedView": { - "methods": [ - "create_materialized_view" - ] - }, - "GetMaterializedView": { - "methods": [ - "get_materialized_view" - ] - }, - "ListMaterializedViews": { - "methods": [ - "list_materialized_views" - ] - }, - "UpdateMaterializedView": { - "methods": [ - "update_materialized_view" - ] - }, - "DeleteMaterializedView": { - "methods": [ - "delete_materialized_view" - ] - } - } - } - } - }, - "BigtableTableAdmin": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client", - "rpcs": { - "CreateTable": { - "methods": [ - "create_table" - ] - }, - "CreateTableFromSnapshot": { - "methods": [ - "create_table_from_snapshot" - ] - }, - "ListTables": { - "methods": [ - "list_tables" - ] - }, - "GetTable": { - "methods": [ - "get_table" - ] - }, - "UpdateTable": { - "methods": [ - "update_table" - ] - }, - "DeleteTable": { - "methods": [ - "delete_table" - ] - }, - "UndeleteTable": { - "methods": [ - "undelete_table" - ] - }, - "CreateAuthorizedView": { - "methods": [ - "create_authorized_view" - ] - }, - "ListAuthorizedViews": { - "methods": [ - "list_authorized_views" - ] - }, - "GetAuthorizedView": { - "methods": [ - "get_authorized_view" - ] - }, - "UpdateAuthorizedView": { - "methods": [ - "update_authorized_view" - ] - }, - "DeleteAuthorizedView": { - "methods": [ - "delete_authorized_view" - ] - }, - "ModifyColumnFamilies": { - "methods": [ - "modify_column_families" - ] - }, - "DropRowRange": { - "methods": [ - "drop_row_range" - ] - }, - "GenerateConsistencyToken": { - "methods": [ - "generate_consistency_token" - ] - }, - "CheckConsistency": { - "methods": [ - "check_consistency" - ] - }, - "SnapshotTable": { - "methods": [ - "snapshot_table" - ] - }, - "GetSnapshot": { - "methods": [ - "get_snapshot" - ] - }, - "ListSnapshots": { - "methods": [ - "list_snapshots" - ] - }, - "DeleteSnapshot": { - "methods": [ - "delete_snapshot" - ] - }, - "CreateBackup": { - "methods": [ - "create_backup" - ] - }, - "GetBackup": { - "methods": [ - "get_backup" - ] - }, - "UpdateBackup": { - "methods": [ - "update_backup" - ] - }, - "DeleteBackup": { - "methods": [ - "delete_backup" - ] - }, - "ListBackups": { - "methods": [ - "list_backups" - ] - }, - "RestoreTable": { - "methods": [ - "restore_table" - ] - }, - "CopyBackup": { - "methods": [ - "copy_backup" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - }, - "CreateSchemaBundle": { - "methods": [ - "create_schema_bundle" - ] - }, - "UpdateSchemaBundle": { - "methods": [ - "update_schema_bundle" - ] - }, - "GetSchemaBundle": { - "methods": [ - "get_schema_bundle" - ] - }, - "ListSchemaBundles": { - "methods": [ - "list_schema_bundles" - ] - }, - "DeleteSchemaBundle": { - "methods": [ - "delete_schema_bundle" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec b/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec deleted file mode 100644 index d15e999177a9..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/google-cloud-bigtable-admin-v2.gemspec +++ /dev/null @@ -1,29 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/bigtable/admin/v2/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-bigtable-admin-v2" - gem.version = Google::Cloud::Bigtable::Admin::V2::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads. Note that google-cloud-bigtable-admin-v2 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-bigtable instead. See the readme for more details." - gem.summary = "Administer your Cloud Bigtable tables and instances." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "grpc-google-iam-v1", "~> 1.11" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb deleted file mode 100644 index 0c7aa4cc6208..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google-cloud-bigtable-admin-v2.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/bigtable/admin/v2" diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb deleted file mode 100644 index ada921bfd341..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +++ /dev/null @@ -1,78 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/bigtable_instance_admin.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/instance_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdb\x02\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12T\n\x08\x63lusters\x18\x04 \x03(\x0b\x32=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xe0\x41\x02\x1aR\n\rClustersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster:\x02\x38\x01\"Q\n\x12GetInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"o\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x81\x01\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Instance\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cPartialUpdateInstanceRequest\x12\x39\n\x08instance\x18\x01 \x01(\x0b\x32\".google.bigtable.admin.v2.InstanceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"T\n\x15\x44\x65leteInstanceRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\"\xa7\x01\n\x14\x43reateClusterRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07\x63luster\x18\x03 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\"O\n\x11GetClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"h\n\x13ListClustersRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x12\n\npage_token\x18\x02 \x01(\t\"~\n\x14ListClustersResponse\x12\x33\n\x08\x63lusters\x18\x01 \x03(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x18\n\x10\x66\x61iled_locations\x18\x02 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"R\n\x14\x44\x65leteClusterRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\"\xc6\x01\n\x16\x43reateInstanceMetadata\x12I\n\x10original_request\x18\x01 \x01(\x0b\x32/.google.bigtable.admin.v2.CreateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xcd\x01\n\x16UpdateInstanceMetadata\x12P\n\x10original_request\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xfb\x04\n\x15\x43reateClusterMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.CreateClusterRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x06tables\x18\x04 \x03(\x0b\x32;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1a\xf9\x01\n\rTableProgress\x12\x1c\n\x14\x65stimated_size_bytes\x18\x02 \x01(\x03\x12\x1e\n\x16\x65stimated_copied_bytes\x18\x03 \x01(\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32\x43.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07\x43OPYING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1al\n\x0bTablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x02\x38\x01\"\xb7\x01\n\x15UpdateClusterMetadata\x12;\n\x10original_request\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.Cluster\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd2\x01\n\x1cPartialUpdateClusterMetadata\x12\x30\n\x0crequest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x10original_request\x18\x03 \x01(\x0b\x32\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8c\x01\n\x1bPartialUpdateClusterRequest\x12\x37\n\x07\x63luster\x18\x01 \x01(\x0b\x32!.google.bigtable.admin.v2.ClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xce\x01\n\x17\x43reateAppProfileRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1b\n\x0e\x61pp_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0b\x61pp_profile\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x04 \x01(\x08\"U\n\x14GetAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\"~\n\x16ListAppProfilesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x88\x01\n\x17ListAppProfilesResponse\x12:\n\x0c\x61pp_profiles\x18\x01 \x03(\x0b\x32$.google.bigtable.admin.v2.AppProfile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10\x66\x61iled_locations\x18\x03 \x03(\t\"\xa8\x01\n\x17UpdateAppProfileRequest\x12>\n\x0b\x61pp_profile\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.AppProfileB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x17\n\x0fignore_warnings\x18\x03 \x01(\x08\"v\n\x17\x44\x65leteAppProfileRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'bigtableadmin.googleapis.com/AppProfile\x12\x1c\n\x0fignore_warnings\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\xda\x01\n\x15ListHotTabletsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"k\n\x16ListHotTabletsResponse\x12\x38\n\x0bhot_tablets\x18\x01 \x03(\x0b\x32#.google.bigtable.admin.v2.HotTablet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\x18\x43reateLogicalViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x1c\n\x0flogical_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0clogical_view\x18\x03 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\"\xc7\x01\n\x19\x43reateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x15GetLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\"\x8c\x01\n\x17ListLogicalViewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"q\n\x18ListLogicalViewsResponse\x12<\n\rlogical_views\x18\x01 \x03(\x0b\x32%.google.bigtable.admin.v2.LogicalView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x92\x01\n\x18UpdateLogicalViewRequest\x12@\n\x0clogical_view\x18\x01 \x01(\x0b\x32%.google.bigtable.admin.v2.LogicalViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xc7\x01\n\x19UpdateLogicalViewMetadata\x12L\n\x10original_request\x18\x01 \x01(\x0b\x32\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"m\n\x18\x44\x65leteLogicalViewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(bigtableadmin.googleapis.com/LogicalView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xcd\x01\n\x1d\x43reateMaterializedViewRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12!\n\x14materialized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11materialized_view\x18\x03 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\"\xd1\x01\n\x1e\x43reateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1aGetMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\n\x1cListMaterializedViewsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\x1dListMaterializedViewsResponse\x12\x46\n\x12materialized_views\x18\x01 \x03(\x0b\x32*.google.bigtable.admin.v2.MaterializedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa1\x01\n\x1dUpdateMaterializedViewRequest\x12J\n\x11materialized_view\x18\x01 \x01(\x0b\x32*.google.bigtable.admin.v2.MaterializedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xd1\x01\n\x1eUpdateMaterializedViewMetadata\x12Q\n\x10original_request\x18\x01 \x01(\x0b\x32\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1d\x44\x65leteMaterializedViewRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-bigtableadmin.googleapis.com/MaterializedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xe6\x36\n\x15\x42igtableInstanceAdmin\x12\xda\x01\n\x0e\x43reateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16\x43reateInstanceMetadata\xda\x41$parent,instance_id,instance,clusters\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x12\x36.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08Instance\x12\x16UpdateInstanceMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8b\x01\n\x0e\x44\x65leteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xdc\x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41 \n\x07\x43luster\x12\x15\x43reateClusterMetadata\xda\x41\x19parent,cluster_id,cluster\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/instances/*}/clusters:\x07\x63luster\x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xca\x41 \n\x07\x43luster\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x02\x31\x1a,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\x12\x35.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\'\n\x07\x43luster\x12\x1cPartialUpdateClusterMetadata\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07\x63luster\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\x10\x43reateAppProfile\x12\x31.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"h\xda\x41!parent,app_profile_id,app_profile\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\x61pp_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xb8\x01\n\x0fListAppProfiles\x12\x30.google.bigtable.admin.v2.ListAppProfilesRequest\x1a\x31.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xfa\x01\n\x10UpdateAppProfile\x12\x31.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\x93\x01\xca\x41&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\xda\x41\x17\x61pp_profile,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0b\x61pp_profile\x12\xb4\x01\n\x10\x44\x65leteAppProfile\x12\x31.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\xda\x41\x14name,ignore_warnings\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xaa\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xde\x01\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xb1\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xe5\x01\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xcc\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xe8\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xfc\x01\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\xde\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xbf\x01\n\x0eListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a\x30.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\n\x11\x43reateLogicalView\x12\x32.google.bigtable.admin.v2.CreateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41(\n\x0bLogicalView\x12\x19\x43reateLogicalViewMetadata\xda\x41#parent,logical_view,logical_view_id\x82\xd3\xe4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0clogical_view\x12\xa9\x01\n\x0eGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1a%.google.bigtable.admin.v2.LogicalView\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xbc\x01\n\x10ListLogicalViews\x12\x31.google.bigtable.admin.v2.ListLogicalViewsRequest\x1a\x32.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\n\x11UpdateLogicalView\x12\x32.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41(\n\x0bLogicalView\x12\x19UpdateLogicalViewMetadata\xda\x41\x18logical_view,update_mask\x82\xd3\xe4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0clogical_view\x12\xa0\x01\n\x11\x44\x65leteLogicalView\x12\x32.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xa8\x02\n\x16\x43reateMaterializedView\x12\x37.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\xca\x41\x32\n\x10MaterializedView\x12\x1e\x43reateMaterializedViewMetadata\xda\x41-parent,materialized_view,materialized_view_id\x82\xd3\xe4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xbd\x01\n\x13GetMaterializedView\x12\x34.google.bigtable.admin.v2.GetMaterializedViewRequest\x1a*.google.bigtable.admin.v2.MaterializedView\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xd0\x01\n\x15ListMaterializedViews\x12\x36.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1a\x37.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/instances/*}/materializedViews\x12\xaa\x02\n\x16UpdateMaterializedView\x12\x37.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x32\n\x10MaterializedView\x12\x1eUpdateMaterializedViewMetadata\xda\x41\x1dmaterialized_view,update_mask\x82\xd3\xe4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xaf\x01\n\x16\x44\x65leteMaterializedView\x12\x37.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1a\x9a\x03\xca\x41\x1c\x62igtableadmin.googleapis.com\xd2\x41\xf7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xdd\x01\n\x1c\x63om.google.bigtable.admin.v2B\x1a\x42igtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass - GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass - ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass - ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass - PartialUpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass - DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass - CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass - GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass - ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass - ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass - DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass - CreateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass - UpdateInstanceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass - CreateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass - CreateClusterMetadata::TableProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress").msgclass - CreateClusterMetadata::TableProgress::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State").enummodule - UpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass - PartialUpdateClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterMetadata").msgclass - PartialUpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateClusterRequest").msgclass - CreateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass - GetAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass - ListAppProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass - ListAppProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass - UpdateAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass - DeleteAppProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass - UpdateAppProfileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass - ListHotTabletsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsRequest").msgclass - ListHotTabletsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListHotTabletsResponse").msgclass - CreateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewRequest").msgclass - CreateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateLogicalViewMetadata").msgclass - GetLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetLogicalViewRequest").msgclass - ListLogicalViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsRequest").msgclass - ListLogicalViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListLogicalViewsResponse").msgclass - UpdateLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewRequest").msgclass - UpdateLogicalViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateLogicalViewMetadata").msgclass - DeleteLogicalViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteLogicalViewRequest").msgclass - CreateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewRequest").msgclass - CreateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateMaterializedViewMetadata").msgclass - GetMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetMaterializedViewRequest").msgclass - ListMaterializedViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsRequest").msgclass - ListMaterializedViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListMaterializedViewsResponse").msgclass - UpdateMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewRequest").msgclass - UpdateMaterializedViewMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateMaterializedViewMetadata").msgclass - DeleteMaterializedViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteMaterializedViewRequest").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb deleted file mode 100644 index 5719dfcb7960..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +++ /dev/null @@ -1,142 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2' -# Original file comments: -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/bigtable/admin/v2/bigtable_instance_admin_pb' - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin' - - # Create an instance within a project. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation - # Gets information about an instance. - rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance - # Lists information about instances in a project. - rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse - # Updates an instance within a project. This method updates only the display - # name and type for an Instance. To update other Instance properties, such as - # labels, use PartialUpdateInstance. - rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance - # Partially updates an instance within a project. This method can modify all - # fields of an Instance and is the preferred way to update an Instance. - rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation - # Delete an instance from a project. - rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty - # Creates a cluster within an instance. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation - # Gets information about a cluster. - rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster - # Lists information about clusters in an instance. - rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse - # Updates a cluster within an instance. - # - # Note that UpdateCluster does not support updating - # cluster_config.cluster_autoscaling_config. In order to update it, you - # must use PartialUpdateCluster. - rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation - # Partially updates a cluster within a project. This method is the preferred - # way to update a Cluster. - # - # To enable and update autoscaling, set - # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - # are ignored. Note that an update cannot simultaneously set serve_nodes to - # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - # also specify both in the update_mask. - # - # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - # and explicitly set a serve_node count via the update_mask. - rpc :PartialUpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Google::Longrunning::Operation - # Deletes a cluster from an instance. - rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty - # Creates an app profile within an instance. - rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile - # Gets information about an app profile. - rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile - # Lists information about app profiles in an instance. - rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse - # Updates an app profile within an instance. - rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation - # Deletes an app profile from an instance. - rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty - # Gets the access control policy for an instance resource. Returns an empty - # policy if an instance exists but does not have a policy set. - rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy - # Sets the access control policy on an instance resource. Replaces any - # existing policy. - rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy - # Returns permissions that the caller has on the specified instance resource. - rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse - # Lists hot tablets in a cluster, within the time range provided. Hot - # tablets are ordered based on CPU usage. - rpc :ListHotTablets, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse - # Creates a logical view within an instance. - rpc :CreateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Google::Longrunning::Operation - # Gets information about a logical view. - rpc :GetLogicalView, ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Google::Cloud::Bigtable::Admin::V2::LogicalView - # Lists information about logical views in an instance. - rpc :ListLogicalViews, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse - # Updates a logical view within an instance. - rpc :UpdateLogicalView, ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Google::Longrunning::Operation - # Deletes a logical view from an instance. - rpc :DeleteLogicalView, ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Google::Protobuf::Empty - # Creates a materialized view within an instance. - rpc :CreateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Google::Longrunning::Operation - # Gets information about a materialized view. - rpc :GetMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Google::Cloud::Bigtable::Admin::V2::MaterializedView - # Lists information about materialized views in an instance. - rpc :ListMaterializedViews, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse - # Updates a materialized view within an instance. - rpc :UpdateMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Google::Longrunning::Operation - # Deletes a materialized view from an instance. - rpc :DeleteMaterializedView, ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Google::Protobuf::Empty - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb deleted file mode 100644 index 52a9ea2d2e01..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +++ /dev/null @@ -1,91 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/bigtable_table_admin.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/common_pb' -require 'google/bigtable/admin/v2/table_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x13RestoreTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x98\x02\n\x14RestoreTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bsource_type\x18\x02 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\n\x1doptimize_table_operation_name\x18\x04 \x01(\t\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgressB\r\n\x0bsource_info\"l\n\x1dOptimizeRestoredTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x08progress\x18\x02 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\n\x12\x43reateTableRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x05table\x18\x03 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12J\n\x0einitial_splits\x18\x04 \x03(\x0b\x32\x32.google.bigtable.admin.v2.CreateTableRequest.Split\x1a\x14\n\x05Split\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"\xbe\x01\n\x1e\x43reateTableFromSnapshotRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x15\n\x08table_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0fsource_snapshot\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\n\x13\x44ropRowRangeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x18\n\x0erow_key_prefix\x18\x02 \x01(\x0cH\x00\x12$\n\x1a\x64\x65lete_all_data_from_table\x18\x03 \x01(\x08H\x00\x42\x08\n\x06target\"\xad\x01\n\x11ListTablesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Instance\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"^\n\x12ListTablesResponse\x12/\n\x06tables\x18\x01 \x03(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x0fGetTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32$.google.bigtable.admin.v2.Table.View\"\x9d\x01\n\x12UpdateTableRequest\x12\x33\n\x05table\x18\x01 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x81\x01\n\x13UpdateTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n\x12\x44\x65leteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"P\n\x14UndeleteTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"\x83\x01\n\x15UndeleteTableMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x03\n\x1bModifyColumnFamiliesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12^\n\rmodifications\x18\x02 \x03(\x0b\x32\x42.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xe0\x41\x02\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xdb\x01\n\x0cModification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x06\x63reate\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x38\n\x06update\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0e\n\x04\x64rop\x18\x04 \x01(\x08H\x00\x12\x34\n\x0bupdate_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x05\n\x03mod\"[\n\x1fGenerateConsistencyTokenRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\"=\n GenerateConsistencyTokenResponse\x12\x19\n\x11\x63onsistency_token\x18\x01 \x01(\t\"\xb2\x02\n\x17\x43heckConsistencyRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1e\n\x11\x63onsistency_token\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1bstandard_read_remote_writes\x18\x03 \x01(\x0b\x32\x32.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\n\x1c\x64\x61ta_boost_read_local_writes\x18\x04 \x01(\x0b\x32\x32.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00\x42\x06\n\x04mode\"\x1a\n\x18StandardReadRemoteWrites\"\x1a\n\x18\x44\x61taBoostReadLocalWrites\".\n\x18\x43heckConsistencyResponse\x12\x12\n\nconsistent\x18\x01 \x01(\x08\"\xe6\x01\n\x14SnapshotTableRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12=\n\x07\x63luster\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x18\n\x0bsnapshot_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"Q\n\x12GetSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"{\n\x14ListSnapshotsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"g\n\x15ListSnapshotsResponse\x12\x35\n\tsnapshots\x18\x01 \x03(\x0b\x32\".google.bigtable.admin.v2.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"T\n\x15\x44\x65leteSnapshotRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%bigtableadmin.googleapis.com/Snapshot\"\xc4\x01\n\x15SnapshotTableMetadata\x12H\n\x10original_request\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.SnapshotTableRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd8\x01\n\x1f\x43reateTableFromSnapshotMetadata\x12R\n\x10original_request\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa2\x01\n\x13\x43reateBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\"\x98\x01\n\x14\x43reateBackupMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0csource_table\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x82\x01\n\x13UpdateBackupRequest\x12\x35\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"M\n\x10GetBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"P\n\x13\x44\x65leteBackupRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\"\x9b\x01\n\x12ListBackupsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"a\n\x13ListBackupsResponse\x12\x31\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe3\x01\n\x11\x43opyBackupRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$bigtableadmin.googleapis.com/Cluster\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rsource_backup\x18\x03 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xcd\x01\n\x12\x43opyBackupMetadata\x12\x36\n\x04name\x18\x01 \x01(\tB(\xfa\x41%\n#bigtableadmin.googleapis.com/Backup\x12@\n\x12source_backup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfo\x12=\n\x08progress\x18\x03 \x01(\x0b\x32+.google.bigtable.admin.v2.OperationProgress\"\xcb\x01\n\x1b\x43reateAuthorizedViewRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1f\n\x12\x61uthorized_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0f\x61uthorized_view\x18\x03 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\"\xd2\x01\n\x1c\x43reateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x01\n\x1aListAuthorizedViewsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x04view\x18\x04 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"z\n\x1bListAuthorizedViewsResponse\x12\x42\n\x10\x61uthorized_views\x18\x01 \x03(\x0b\x32(.google.bigtable.admin.v2.AuthorizedView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x18GetAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12H\n\x04view\x18\x02 \x01(\x0e\x32\x35.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xe0\x41\x01\"\xb9\x01\n\x1bUpdateAuthorizedViewRequest\x12\x46\n\x0f\x61uthorized_view\x18\x01 \x01(\x0b\x32(.google.bigtable.admin.v2.AuthorizedViewB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x1cUpdateAuthorizedViewMetadata\x12O\n\x10original_request\x18\x01 \x01(\x0b\x32\x35.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x1b\x44\x65leteAuthorizedViewRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x19\x43reateSchemaBundleRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x1d\n\x10schema_bundle_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\rschema_bundle\x18\x03 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\"\x88\x01\n\x1a\x43reateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb3\x01\n\x19UpdateSchemaBundleRequest\x12\x42\n\rschema_bundle\x18\x01 \x01(\x0b\x32&.google.bigtable.admin.v2.SchemaBundleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_warnings\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x01\n\x1aUpdateSchemaBundleMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x16GetSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\n\x18ListSchemaBundlesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x19ListSchemaBundlesResponse\x12>\n\x0eschema_bundles\x18\x01 \x03(\x0b\x32&.google.bigtable.admin.v2.SchemaBundle\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x19\x44\x65leteSchemaBundleRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\x92@\n\x12\x42igtableTableAdmin\x12\xab\x01\n\x0b\x43reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\xda\x41\x15parent,table_id,table\x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8a\x02\n\x17\x43reateTableFromSnapshot\x12\x38.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41(\n\x05Table\x12\x1f\x43reateTableFromSnapshotMetadata\xda\x41\x1fparent,table_id,source_snapshot\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xce\x01\n\x0bUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.longrunning.Operation\"r\xca\x41\x1c\n\x05Table\x12\x13UpdateTableMetadata\xda\x41\x11table,update_mask\x82\xd3\xe4\x93\x02\x39\x32\x30/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8e\x01\n\x0b\x44\x65leteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xca\x41\x1e\n\x05Table\x12\x15UndeleteTableMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xa1\x02\n\x14\x43reateAuthorizedView\x12\x35.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41.\n\x0e\x41uthorizedView\x12\x1c\x43reateAuthorizedViewMetadata\xda\x41)parent,authorized_view,authorized_view_id\x82\xd3\xe4\x93\x02O\"\x12\x12*\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x45\n\x04tags\x18\x0c \x03(\x0b\x32,.google.bigtable.admin.v2.Instance.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02\"G\n\x07\x45\x64ition\x12\x17\n\x13\x45\x44ITION_UNSPECIFIED\x10\x00\x12\x0e\n\nENTERPRISE\x10\x01\x12\x13\n\x0f\x45NTERPRISE_PLUS\x10\x02:h\xea\x41\x65\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xad\t\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12U\n\x13node_scaling_factor\x18\t \x01(\x0e\x32\x33.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xe0\x41\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\"p\n\x11NodeScalingFactor\x12#\n\x1fNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1a\n\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1a\n\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xea\x41u\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08\x63lusters2\x07\x63lusterB\x08\n\x06\x63onfig\"\xed\n\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12\x45\n\x08priority\x18\x07 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\n\x12standard_isolation\x18\x0b \x01(\x0b\x32\x36.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\n\x1e\x64\x61ta_boost_isolation_read_only\x18\n \x01(\x0b\x32?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1a\xaf\x01\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x12\x62\n\x0crow_affinity\x18\x03 \x01(\x0b\x32J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1a\r\n\x0bRowAffinityB\n\n\x08\x61\x66\x66inity\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08\x1aT\n\x11StandardIsolation\x12?\n\x08priority\x18\x01 \x01(\x0e\x32-.google.bigtable.admin.v2.AppProfile.Priority\x1a\xfc\x01\n\x1a\x44\x61taBoostIsolationReadOnly\x12w\n\x15\x63ompute_billing_owner\x18\x01 \x01(\x0e\x32S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\n\x13\x43omputeBillingOwner\x12%\n!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\r\n\tHOST_PAYS\x10\x01\x42\x18\n\x16_compute_billing_owner\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03:\x89\x01\xea\x41\x85\x01\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0b\x61ppProfiles2\nappProfileB\x10\n\x0erouting_policyB\x0b\n\tisolation\"\xa1\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x97\x01\xea\x41\x93\x01\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\nhotTablets2\thotTablet\"\xfa\x01\n\x0bLogicalView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64\x65letion_protection\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:\x8e\x01\xea\x41\x8a\x01\n(bigtableadmin.googleapis.com/LogicalView\x12\x43projects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0clogicalViews2\x0blogicalView\"\x96\x02\n\x10MaterializedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x05query\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x13\x64\x65letion_protection\x18\x06 \x01(\x08:\xa7\x01\xea\x41\xa3\x01\n-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xcb\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass - Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule - Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule - Instance::Edition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Edition").enummodule - AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingTargets").msgclass - AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AutoscalingLimits").msgclass - Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass - Cluster::ClusterAutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig").msgclass - Cluster::ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.ClusterConfig").msgclass - Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass - Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule - Cluster::NodeScalingFactor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.NodeScalingFactor").enummodule - AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass - AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass - AppProfile::MultiClusterRoutingUseAny::RowAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity").msgclass - AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass - AppProfile::StandardIsolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.StandardIsolation").msgclass - AppProfile::DataBoostIsolationReadOnly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly").msgclass - AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner").enummodule - AppProfile::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.Priority").enummodule - HotTablet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.HotTablet").msgclass - LogicalView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.LogicalView").msgclass - MaterializedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.MaterializedView").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb deleted file mode 100644 index 4b069137666b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/table_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/table.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/bigtable/admin/v2/types_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/timestamp_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/bigtable/admin/v2/types.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\x9c\r\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x12X\n\x17\x61utomated_backup_policy\x18\r \x01(\x0b\x32\x35.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\n\x15tiered_storage_config\x18\x0e \x01(\x0b\x32-.google.bigtable.admin.v2.TieredStorageConfig\x12=\n\x0erow_key_schema\x18\x0f \x01(\x0b\x32%.google.bigtable.admin.v2.Type.Struct\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\xbd\x01\n\x15\x41utomatedBackupPolicy\x12\x38\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12,\n\tfrequency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\tlocations\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!locations.googleapis.com/Location\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}B\x19\n\x17\x61utomated_backup_config\"\xe3\x05\n\x0e\x41uthorizedView\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x0bsubset_view\x18\x02 \x01(\x0b\x32\x33.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x1b\n\x13\x64\x65letion_protection\x18\x04 \x01(\x08\x1a?\n\rFamilySubsets\x12\x12\n\nqualifiers\x18\x01 \x03(\x0c\x12\x1a\n\x12qualifier_prefixes\x18\x02 \x03(\x0c\x1a\xf0\x01\n\nSubsetView\x12\x14\n\x0crow_prefixes\x18\x01 \x03(\x0c\x12^\n\x0e\x66\x61mily_subsets\x18\x02 \x03(\x0b\x32\x46.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1al\n\x12\x46\x61milySubsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x02\x38\x01\"Q\n\x0cResponseView\x12\x1d\n\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\x08\n\x04\x46ULL\x10\x03:\xac\x01\xea\x41\xa8\x01\n+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0f\x61uthorizedViews2\x0e\x61uthorizedViewB\x11\n\x0f\x61uthorized_view\"u\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\x12\x32\n\nvalue_type\x18\x03 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xe0\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.TableB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.StateB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xf9\x05\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\x12@\n\x0b\x62\x61\x63kup_type\x18\x0b \x01(\x0e\x32+.google.bigtable.admin.v2.Backup.BackupType\x12\x38\n\x14hot_to_standard_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"@\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x07\n\x03HOT\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xc0\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsource_backup\x18\n \x01(\tB\x03\xe0\x41\x03\"]\n\x13TieredStorageConfig\x12\x46\n\x11infrequent_access\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.TieredStorageRule\"W\n\x11TieredStorageRule\x12:\n\x15include_if_older_than\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x06\n\x04rule\"-\n\x0bProtoSchema\x12\x1e\n\x11proto_descriptors\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"\xa0\x02\n\x0cSchemaBundle\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12=\n\x0cproto_schema\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xa2\x01\xea\x41\x9e\x01\n)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\rschemaBundles2\x0cschemaBundleB\x06\n\x04type*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xf7\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass - ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass - Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass - Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass - Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule - Table::AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.AutomatedBackupPolicy").msgclass - Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule - Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule - AuthorizedView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView").msgclass - AuthorizedView::FamilySubsets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.FamilySubsets").msgclass - AuthorizedView::SubsetView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.SubsetView").msgclass - AuthorizedView::ResponseView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AuthorizedView.ResponseView").enummodule - ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass - GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass - GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass - GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass - EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass - EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule - Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass - Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule - Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass - Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule - Backup::BackupType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.BackupType").enummodule - BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass - TieredStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageConfig").msgclass - TieredStorageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.TieredStorageRule").msgclass - ProtoSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ProtoSchema").msgclass - SchemaBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SchemaBundle").msgclass - RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb deleted file mode 100644 index 7a9e1c6a0620..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/bigtable/admin/v2/types_pb.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/bigtable/admin/v2/types.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\"\xc7\x19\n\x04Type\x12:\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\n\x0bstring_type\x18\x02 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StringH\x00\x12:\n\nint64_type\x18\x05 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\n\x0c\x66loat32_type\x18\x0c \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\n\x0c\x66loat64_type\x18\t \x01(\x0b\x32&.google.bigtable.admin.v2.Type.Float64H\x00\x12\x38\n\tbool_type\x18\x08 \x01(\x0b\x32#.google.bigtable.admin.v2.Type.BoolH\x00\x12\x42\n\x0etimestamp_type\x18\n \x01(\x0b\x32(.google.bigtable.admin.v2.Type.TimestampH\x00\x12\x38\n\tdate_type\x18\x0b \x01(\x0b\x32#.google.bigtable.admin.v2.Type.DateH\x00\x12\x42\n\x0e\x61ggregate_type\x18\x06 \x01(\x0b\x32(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\n\x0bstruct_type\x18\x07 \x01(\x0b\x32%.google.bigtable.admin.v2.Type.StructH\x00\x12:\n\narray_type\x18\x03 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ArrayH\x00\x12\x36\n\x08map_type\x18\x04 \x01(\x0b\x32\".google.bigtable.admin.v2.Type.MapH\x00\x12:\n\nproto_type\x18\r \x01(\x0b\x32$.google.bigtable.admin.v2.Type.ProtoH\x00\x12\x38\n\tenum_type\x18\x0e \x01(\x0b\x32#.google.bigtable.admin.v2.Type.EnumH\x00\x1a\xa9\x01\n\x05\x42ytes\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1a_\n\x08\x45ncoding\x12@\n\x03raw\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1a\x05\n\x03RawB\n\n\x08\x65ncoding\x1a\x9f\x02\n\x06String\x12@\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32..google.bigtable.admin.v2.Type.String.Encoding\x1a\xd2\x01\n\x08\x45ncoding\x12N\n\x08utf8_raw\x18\x01 \x01(\x0b\x32\x36.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\n\nutf8_bytes\x18\x02 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1a\r\n\x07Utf8Raw:\x02\x18\x01\x1a\x0b\n\tUtf8BytesB\n\n\x08\x65ncoding\x1a\xfd\x02\n\x05Int64\x12?\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.Encoding\x1a\xb2\x02\n\x08\x45ncoding\x12X\n\x10\x62ig_endian_bytes\x18\x01 \x01(\x0b\x32<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\n\x12ordered_code_bytes\x18\x02 \x01(\x0b\x32>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1aN\n\x0e\x42igEndianBytes\x12<\n\nbytes_type\x18\x01 \x01(\x0b\x32$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x06\n\x04\x42ool\x1a\t\n\x07\x46loat32\x1a\t\n\x07\x46loat64\x1a\xb4\x01\n\tTimestamp\x12\x43\n\x08\x65ncoding\x18\x01 \x01(\x0b\x32\x31.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1a\x62\n\x08\x45ncoding\x12J\n\x11unix_micros_int64\x18\x01 \x01(\x0b\x32-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00\x42\n\n\x08\x65ncoding\x1a\x06\n\x04\x44\x61te\x1a\xb9\x04\n\x06Struct\x12;\n\x06\x66ields\x18\x01 \x03(\x0b\x32+.google.bigtable.admin.v2.Type.Struct.Field\x12@\n\x08\x65ncoding\x18\x02 \x01(\x0b\x32..google.bigtable.admin.v2.Type.Struct.Encoding\x1aI\n\x05\x46ield\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12,\n\x04type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xe4\x02\n\x08\x45ncoding\x12M\n\tsingleton\x18\x01 \x01(\x0b\x32\x38.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\n\x0f\x64\x65limited_bytes\x18\x02 \x01(\x0b\x32=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\n\x12ordered_code_bytes\x18\x03 \x01(\x0b\x32?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1a\x0b\n\tSingleton\x1a#\n\x0e\x44\x65limitedBytes\x12\x11\n\tdelimiter\x18\x01 \x01(\x0c\x1a\x12\n\x10OrderedCodeBytesB\n\n\x08\x65ncoding\x1a\x37\n\x05Proto\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x14\n\x0cmessage_name\x18\x02 \x01(\t\x1a\x33\n\x04\x45num\x12\x18\n\x10schema_bundle_id\x18\x01 \x01(\t\x12\x11\n\tenum_name\x18\x02 \x01(\t\x1a=\n\x05\x41rray\x12\x34\n\x0c\x65lement_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1ak\n\x03Map\x12\x30\n\x08key_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x32\n\nvalue_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x1a\xdb\x03\n\tAggregate\x12\x32\n\ninput_type\x18\x01 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.Type\x12\x37\n\nstate_type\x18\x02 \x01(\x0b\x32\x1e.google.bigtable.admin.v2.TypeB\x03\xe0\x41\x03\x12;\n\x03sum\x18\x04 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12\x65\n\x12hllpp_unique_count\x18\x05 \x01(\x0b\x32G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\n\x03max\x18\x06 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\n\x03min\x18\x07 \x01(\x0b\x32,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1a\x05\n\x03Sum\x1a\x05\n\x03Max\x1a\x05\n\x03Min\x1a \n\x1eHyperLogLogPlusPlusUniqueCountB\x0c\n\naggregatorB\x06\n\x04kindB\xcd\x01\n\x1c\x63om.google.bigtable.admin.v2B\nTypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Bigtable - module Admin - module V2 - Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type").msgclass - Type::Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes").msgclass - Type::Bytes::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding").msgclass - Type::Bytes::Encoding::Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bytes.Encoding.Raw").msgclass - Type::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String").msgclass - Type::String::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding").msgclass - Type::String::Encoding::Utf8Raw = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw").msgclass - Type::String::Encoding::Utf8Bytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes").msgclass - Type::Int64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64").msgclass - Type::Int64::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding").msgclass - Type::Int64::Encoding::BigEndianBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes").msgclass - Type::Int64::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes").msgclass - Type::Bool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Bool").msgclass - Type::Float32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float32").msgclass - Type::Float64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Float64").msgclass - Type::Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp").msgclass - Type::Timestamp::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Timestamp.Encoding").msgclass - Type::Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Date").msgclass - Type::Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct").msgclass - Type::Struct::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Field").msgclass - Type::Struct::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding").msgclass - Type::Struct::Encoding::Singleton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.Singleton").msgclass - Type::Struct::Encoding::DelimitedBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes").msgclass - Type::Struct::Encoding::OrderedCodeBytes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes").msgclass - Type::Proto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Proto").msgclass - Type::Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Enum").msgclass - Type::Array = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Array").msgclass - Type::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Map").msgclass - Type::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate").msgclass - Type::Aggregate::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Sum").msgclass - Type::Aggregate::Max = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Max").msgclass - Type::Aggregate::Min = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.Min").msgclass - Type::Aggregate::HyperLogLogPlusPlusUniqueCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb deleted file mode 100644 index 19a6f94a9e3e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" -require "google/cloud/bigtable/admin/v2/version" - -module Google - module Cloud - module Bigtable - module Admin - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - module V2 - end - end - end - end -end - -helper_path = ::File.join __dir__, "v2", "_helpers.rb" -require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb deleted file mode 100644 index aeb89a361209..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/bigtable/admin/v2/version" - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - ## - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - module BigtableInstanceAdmin - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb deleted file mode 100644 index 99ecba39a120..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +++ /dev/null @@ -1,3713 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - ## - # Client for the BigtableInstanceAdmin service. - # - # Service for creating, configuring, and deleting Cloud Bigtable Instances and - # Clusters. Provides access to the Instance and Cluster schemas only, not the - # tables' metadata or data stored in those tables. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :bigtable_instance_admin_stub - - ## - # Configure the BigtableInstanceAdmin Client class. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BigtableInstanceAdmin clients - # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.create_instance.timeout = 300.0 - - default_config.rpcs.get_instance.timeout = 60.0 - default_config.rpcs.get_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_instances.timeout = 60.0 - default_config.rpcs.list_instances.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_instance.timeout = 60.0 - default_config.rpcs.update_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.partial_update_instance.timeout = 60.0 - default_config.rpcs.partial_update_instance.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_instance.timeout = 60.0 - - default_config.rpcs.create_cluster.timeout = 60.0 - - default_config.rpcs.get_cluster.timeout = 60.0 - default_config.rpcs.get_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_clusters.timeout = 60.0 - default_config.rpcs.list_clusters.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_cluster.timeout = 60.0 - default_config.rpcs.update_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_cluster.timeout = 60.0 - - default_config.rpcs.create_app_profile.timeout = 60.0 - - default_config.rpcs.get_app_profile.timeout = 60.0 - default_config.rpcs.get_app_profile.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_app_profiles.timeout = 60.0 - default_config.rpcs.list_app_profiles.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_app_profile.timeout = 60.0 - default_config.rpcs.update_app_profile.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_app_profile.timeout = 60.0 - - default_config.rpcs.get_iam_policy.timeout = 60.0 - default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.set_iam_policy.timeout = 60.0 - - default_config.rpcs.test_iam_permissions.timeout = 60.0 - default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_hot_tablets.timeout = 60.0 - default_config.rpcs.list_hot_tablets.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableInstanceAdmin Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @bigtable_instance_admin_stub.universe_domain - end - - ## - # Create a new BigtableInstanceAdmin client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BigtableInstanceAdmin client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @bigtable_instance_admin_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @bigtable_instance_admin_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations] - # - attr_reader :operations_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @bigtable_instance_admin_stub.logger - end - - # Service calls - - ## - # Create an instance within a project. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - # - # @overload create_instance(request, options = nil) - # Pass arguments to `create_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_instance(parent: nil, instance_id: nil, instance: nil, clusters: nil) - # Pass arguments to `create_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the project in which to create the new - # instance. Values are of the form `projects/{project}`. - # @param instance_id [::String] - # Required. The ID to be used when referring to the new instance within its - # project, e.g., just `myinstance` rather than - # `projects/myproject/instances/myinstance`. - # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # Required. The instance to create. - # Fields marked `OutputOnly` must be left blank. - # @param clusters [::Hash{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash}] - # Required. The clusters to be created within the instance, mapped by desired - # cluster ID, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # Fields marked `OutputOnly` must be left blank. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new - # - # # Call the create_instance method. - # result = client.create_instance request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an instance. - # - # @overload get_instance(request, options = nil) - # Pass arguments to `get_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_instance(name: nil) - # Pass arguments to `get_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested instance. Values are of the form - # `projects/{project}/instances/{instance}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new - # - # # Call the get_instance method. - # result = client.get_instance request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - # p result - # - def get_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about instances in a project. - # - # @overload list_instances(request, options = nil) - # Pass arguments to `list_instances` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_instances(parent: nil, page_token: nil) - # Pass arguments to `list_instances` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the project for which a list of instances is - # requested. Values are of the form `projects/{project}`. - # @param page_token [::String] - # DEPRECATED: This field is unused and ignored. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new - # - # # Call the list_instances method. - # result = client.list_instances request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. - # p result - # - def list_instances request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_instances.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_instances.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_instances.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an instance within a project. This method updates only the display - # name and type for an Instance. To update other Instance properties, such as - # labels, use PartialUpdateInstance. - # - # @overload update_instance(request, options = nil) - # Pass arguments to `update_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::Instance} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_instance(name: nil, display_name: nil, type: nil, edition: nil, labels: nil, tags: nil) - # Pass arguments to `update_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The unique name of the instance. Values are of the form - # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - # @param display_name [::String] - # Required. The descriptive name for this instance as it appears in UIs. - # Can be changed at any time, but should be kept globally unique - # to avoid confusion. - # @param type [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] - # The type of the instance. Defaults to `PRODUCTION`. - # @param edition [::Google::Cloud::Bigtable::Admin::V2::Instance::Edition] - # Optional. The edition of the instance. See - # {::Google::Cloud::Bigtable::Admin::V2::Instance::Edition Edition} for details. - # @param labels [::Hash{::String => ::String}] - # Labels are a flexible and lightweight mechanism for organizing cloud - # resources into groups that reflect a customer's organizational needs and - # deployment strategies. They can be used to filter resources and aggregate - # metrics. - # - # * Label keys must be between 1 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - # * Label values must be between 0 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - # * No more than 64 labels can be associated with a given resource. - # * Keys and values must both be under 128 bytes. - # @param tags [::Hash{::String => ::String}] - # Optional. Input only. Immutable. Tag keys/values directly bound to this - # resource. For example: - # - "123/environment": "production", - # - "123/costCenter": "marketing" - # - # Tags and Labels (above) are both used to bind metadata to resources, with - # different use-cases. See - # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - # in-depth overview on the difference between tags and labels. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Instance] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::Instance.new - # - # # Call the update_instance method. - # result = client.update_instance request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - # p result - # - def update_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Instance - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Partially updates an instance within a project. This method can modify all - # fields of an Instance and is the preferred way to update an Instance. - # - # @overload partial_update_instance(request, options = nil) - # Pass arguments to `partial_update_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload partial_update_instance(instance: nil, update_mask: nil) - # Pass arguments to `partial_update_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param instance [::Google::Cloud::Bigtable::Admin::V2::Instance, ::Hash] - # Required. The Instance which will (partially) replace the current value. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of Instance fields which should be replaced. - # Must be explicitly set. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new - # - # # Call the partial_update_instance method. - # result = client.partial_update_instance request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def partial_update_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.partial_update_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.instance&.name - header_params["instance.name"] = request.instance.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.partial_update_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete an instance from a project. - # - # @overload delete_instance(request, options = nil) - # Pass arguments to `delete_instance` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_instance(name: nil) - # Pass arguments to `delete_instance` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the instance to be deleted. - # Values are of the form `projects/{project}/instances/{instance}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new - # - # # Call the delete_instance method. - # result = client.delete_instance request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_instance request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_instance.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_instance.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_instance.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a cluster within an instance. - # - # Note that exactly one of Cluster.serve_nodes and - # Cluster.cluster_config.cluster_autoscaling_config can be set. If - # serve_nodes is set to non-zero, then the cluster is manually scaled. If - # cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - # enabled. - # - # @overload create_cluster(request, options = nil) - # Pass arguments to `create_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil) - # Pass arguments to `create_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the new - # cluster. Values are of the form `projects/{project}/instances/{instance}`. - # @param cluster_id [::String] - # Required. The ID to be used when referring to the new cluster within its - # instance, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # Required. The cluster to be created. - # Fields marked `OutputOnly` must be left blank. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new - # - # # Call the create_cluster method. - # result = client.create_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a cluster. - # - # @overload get_cluster(request, options = nil) - # Pass arguments to `get_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_cluster(name: nil) - # Pass arguments to `get_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new - # - # # Call the get_cluster method. - # result = client.get_cluster request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. - # p result - # - def get_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about clusters in an instance. - # - # @overload list_clusters(request, options = nil) - # Pass arguments to `list_clusters` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_clusters(parent: nil, page_token: nil) - # Pass arguments to `list_clusters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which a list of clusters is - # requested. Values are of the form - # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - # Clusters for all Instances in a project, e.g., - # `projects/myproject/instances/-`. - # @param page_token [::String] - # DEPRECATED: This field is unused and ignored. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new - # - # # Call the list_clusters method. - # result = client.list_clusters request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. - # p result - # - def list_clusters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_clusters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_clusters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_clusters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a cluster within an instance. - # - # Note that UpdateCluster does not support updating - # cluster_config.cluster_autoscaling_config. In order to update it, you - # must use PartialUpdateCluster. - # - # @overload update_cluster(request, options = nil) - # Pass arguments to `update_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::Cluster} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_cluster(name: nil, location: nil, serve_nodes: nil, node_scaling_factor: nil, cluster_config: nil, default_storage_type: nil, encryption_config: nil) - # Pass arguments to `update_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The unique name of the cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - # @param location [::String] - # Immutable. The location where this cluster's nodes and storage reside. For - # best performance, clients should be located as close as possible to this - # cluster. Currently only zones are supported, so values should be of the - # form `projects/{project}/locations/{zone}`. - # @param serve_nodes [::Integer] - # The number of nodes in the cluster. If no value is set, - # Cloud Bigtable automatically allocates nodes based on your data footprint - # and optimized for 50% storage utilization. - # @param node_scaling_factor [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] - # Immutable. The node scaling factor of this cluster. - # @param cluster_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig, ::Hash] - # Configuration for this cluster. - # @param default_storage_type [::Google::Cloud::Bigtable::Admin::V2::StorageType] - # Immutable. The type of storage used by this cluster to serve its - # parent instance's tables, unless explicitly overridden. - # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash] - # Immutable. The encryption configuration for CMEK-protected clusters. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::Cluster.new - # - # # Call the update_cluster method. - # result = client.update_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Partially updates a cluster within a project. This method is the preferred - # way to update a Cluster. - # - # To enable and update autoscaling, set - # cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - # serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - # are ignored. Note that an update cannot simultaneously set serve_nodes to - # non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - # also specify both in the update_mask. - # - # To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - # and explicitly set a serve_node count via the update_mask. - # - # @overload partial_update_cluster(request, options = nil) - # Pass arguments to `partial_update_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload partial_update_cluster(cluster: nil, update_mask: nil) - # Pass arguments to `partial_update_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param cluster [::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Hash] - # Required. The Cluster which contains the partial updates to be applied, - # subject to the update_mask. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of Cluster fields which should be replaced. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new - # - # # Call the partial_update_cluster method. - # result = client.partial_update_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def partial_update_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.partial_update_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.cluster&.name - header_params["cluster.name"] = request.cluster.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.partial_update_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.partial_update_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :partial_update_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a cluster from an instance. - # - # @overload delete_cluster(request, options = nil) - # Pass arguments to `delete_cluster` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_cluster(name: nil) - # Pass arguments to `delete_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the cluster to be deleted. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new - # - # # Call the delete_cluster method. - # result = client.delete_cluster request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an app profile within an instance. - # - # @overload create_app_profile(request, options = nil) - # Pass arguments to `create_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_app_profile(parent: nil, app_profile_id: nil, app_profile: nil, ignore_warnings: nil) - # Pass arguments to `create_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the new app - # profile. Values are of the form `projects/{project}/instances/{instance}`. - # @param app_profile_id [::String] - # Required. The ID to be used when referring to the new app profile within - # its instance, e.g., just `myprofile` rather than - # `projects/myproject/instances/myinstance/appProfiles/myprofile`. - # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] - # Required. The app profile to be created. - # Fields marked `OutputOnly` will be ignored. - # @param ignore_warnings [::Boolean] - # If true, ignore safety checks when creating the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new - # - # # Call the create_app_profile method. - # result = client.create_app_profile request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p result - # - def create_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an app profile. - # - # @overload get_app_profile(request, options = nil) - # Pass arguments to `get_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_app_profile(name: nil) - # Pass arguments to `get_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested app profile. Values are of the - # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new - # - # # Call the get_app_profile method. - # result = client.get_app_profile request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p result - # - def get_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about app profiles in an instance. - # - # @overload list_app_profiles(request, options = nil) - # Pass arguments to `list_app_profiles` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_app_profiles(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_app_profiles` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which a list of app profiles - # is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - # e.g., `projects/myproject/instances/-`. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new - # - # # Call the list_app_profiles method. - # result = client.list_app_profiles request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. - # p item - # end - # - def list_app_profiles request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_app_profiles.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_app_profiles.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_app_profiles, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an app profile within an instance. - # - # @overload update_app_profile(request, options = nil) - # Pass arguments to `update_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_app_profile(app_profile: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param app_profile [::Google::Cloud::Bigtable::Admin::V2::AppProfile, ::Hash] - # Required. The app profile which will (partially) replace the current value. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The subset of app profile fields which should be replaced. - # If unset, all fields will be replaced. - # @param ignore_warnings [::Boolean] - # If true, ignore safety checks when updating the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new - # - # # Call the update_app_profile method. - # result = client.update_app_profile request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.app_profile&.name - header_params["app_profile.name"] = request.app_profile.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an app profile from an instance. - # - # @overload delete_app_profile(request, options = nil) - # Pass arguments to `delete_app_profile` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_app_profile(name: nil, ignore_warnings: nil) - # Pass arguments to `delete_app_profile` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the app profile to be deleted. Values are of - # the form - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # @param ignore_warnings [::Boolean] - # Required. If true, ignore safety checks when deleting the app profile. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new - # - # # Call the delete_app_profile method. - # result = client.delete_app_profile request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_app_profile request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_app_profile.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_app_profile.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for an instance resource. Returns an empty - # policy if an instance exists but does not have a policy set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on an instance resource. Replaces any - # existing policy. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns permissions that the caller has on the specified instance resource. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists hot tablets in a cluster, within the time range provided. Hot - # tablets are ordered based on CPU usage. - # - # @overload list_hot_tablets(request, options = nil) - # Pass arguments to `list_hot_tablets` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_hot_tablets(parent: nil, start_time: nil, end_time: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_hot_tablets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The cluster name to list hot tablets. - # Value is in the following form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # The start time to list hot tablets. The hot tablets in the response will - # have start times between the requested start time and end time. Start time - # defaults to Now if it is unset, and end time defaults to Now - 24 hours if - # it is unset. The start time should be less than the end time, and the - # maximum allowed time range between start time and end time is 48 hours. - # Start time and end time should have values between Now and Now - 14 days. - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # The end time to list hot tablets. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size that is empty or zero lets the server choose the number of - # items to return. A page_size which is strictly positive will return at most - # that many items. A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls do not need a - # page_size field. If a page_size is set in subsequent calls, it must match - # the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new - # - # # Call the list_hot_tablets method. - # result = client.list_hot_tablets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. - # p item - # end - # - def list_hot_tablets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_hot_tablets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_hot_tablets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_hot_tablets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_hot_tablets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_hot_tablets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a logical view within an instance. - # - # @overload create_logical_view(request, options = nil) - # Pass arguments to `create_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_logical_view(parent: nil, logical_view_id: nil, logical_view: nil) - # Pass arguments to `create_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent instance where this logical view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @param logical_view_id [::String] - # Required. The ID to use for the logical view, which will become the final - # component of the logical view's resource name. - # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] - # Required. The logical view to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new - # - # # Call the create_logical_view method. - # result = client.create_logical_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_logical_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a logical view. - # - # @overload get_logical_view(request, options = nil) - # Pass arguments to `get_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_logical_view(name: nil) - # Pass arguments to `get_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested logical view. Values are of the - # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new - # - # # Call the get_logical_view method. - # result = client.get_logical_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. - # p result - # - def get_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_logical_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about logical views in an instance. - # - # @overload list_logical_views(request, options = nil) - # Pass arguments to `list_logical_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_logical_views(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_logical_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which the list of logical - # views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @param page_size [::Integer] - # Optional. The maximum number of logical views to return. The service may - # return fewer than this value - # @param page_token [::String] - # Optional. A page token, received from a previous `ListLogicalViews` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListLogicalViews` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new - # - # # Call the list_logical_views method. - # result = client.list_logical_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. - # p item - # end - # - def list_logical_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_logical_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_logical_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_logical_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_logical_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_logical_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a logical view within an instance. - # - # @overload update_logical_view(request, options = nil) - # Pass arguments to `update_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_logical_view(logical_view: nil, update_mask: nil) - # Pass arguments to `update_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param logical_view [::Google::Cloud::Bigtable::Admin::V2::LogicalView, ::Hash] - # Required. The logical view to update. - # - # The logical view's `name` field is used to identify the view to update. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new - # - # # Call the update_logical_view method. - # result = client.update_logical_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.logical_view&.name - header_params["logical_view.name"] = request.logical_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_logical_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a logical view from an instance. - # - # @overload delete_logical_view(request, options = nil) - # Pass arguments to `delete_logical_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_logical_view(name: nil, etag: nil) - # Pass arguments to `delete_logical_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the logical view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @param etag [::String] - # Optional. The current etag of the logical view. - # If an etag is provided and does not match the current etag of the - # logical view, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new - # - # # Call the delete_logical_view method. - # result = client.delete_logical_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_logical_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_logical_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_logical_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_logical_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_logical_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a materialized view within an instance. - # - # @overload create_materialized_view(request, options = nil) - # Pass arguments to `create_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_materialized_view(parent: nil, materialized_view_id: nil, materialized_view: nil) - # Pass arguments to `create_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent instance where this materialized view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @param materialized_view_id [::String] - # Required. The ID to use for the materialized view, which will become the - # final component of the materialized view's resource name. - # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] - # Required. The materialized view to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new - # - # # Call the create_materialized_view method. - # result = client.create_materialized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :create_materialized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about a materialized view. - # - # @overload get_materialized_view(request, options = nil) - # Pass arguments to `get_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_materialized_view(name: nil) - # Pass arguments to `get_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested materialized view. Values are of - # the form - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new - # - # # Call the get_materialized_view method. - # result = client.get_materialized_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. - # p result - # - def get_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :get_materialized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists information about materialized views in an instance. - # - # @overload list_materialized_views(request, options = nil) - # Pass arguments to `list_materialized_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_materialized_views(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_materialized_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which the list of - # materialized views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @param page_size [::Integer] - # Optional. The maximum number of materialized views to return. The service - # may return fewer than this value - # @param page_token [::String] - # Optional. A page token, received from a previous `ListMaterializedViews` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListMaterializedViews` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new - # - # # Call the list_materialized_views method. - # result = client.list_materialized_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. - # p item - # end - # - def list_materialized_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_materialized_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_materialized_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_materialized_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :list_materialized_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_instance_admin_stub, :list_materialized_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a materialized view within an instance. - # - # @overload update_materialized_view(request, options = nil) - # Pass arguments to `update_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_materialized_view(materialized_view: nil, update_mask: nil) - # Pass arguments to `update_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param materialized_view [::Google::Cloud::Bigtable::Admin::V2::MaterializedView, ::Hash] - # Required. The materialized view to update. - # - # The materialized view's `name` field is used to identify the view to - # update. Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new - # - # # Call the update_materialized_view method. - # result = client.update_materialized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.materialized_view&.name - header_params["materialized_view.name"] = request.materialized_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :update_materialized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a materialized view from an instance. - # - # @overload delete_materialized_view(request, options = nil) - # Pass arguments to `delete_materialized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_materialized_view(name: nil, etag: nil) - # Pass arguments to `delete_materialized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the materialized view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @param etag [::String] - # Optional. The current etag of the materialized view. - # If an etag is provided and does not match the current etag of the - # materialized view, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new - # - # # Call the delete_materialized_view method. - # result = client.delete_materialized_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_materialized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_materialized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_materialized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_materialized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_instance_admin_stub.call_rpc :delete_materialized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the BigtableInstanceAdmin API. - # - # This class represents the configuration for BigtableInstanceAdmin, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_instance to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_instance.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_instance.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BigtableInstanceAdmin API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :create_instance - ## - # RPC-specific configuration for `get_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :get_instance - ## - # RPC-specific configuration for `list_instances` - # @return [::Gapic::Config::Method] - # - attr_reader :list_instances - ## - # RPC-specific configuration for `update_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :update_instance - ## - # RPC-specific configuration for `partial_update_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :partial_update_instance - ## - # RPC-specific configuration for `delete_instance` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_instance - ## - # RPC-specific configuration for `create_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :create_cluster - ## - # RPC-specific configuration for `get_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :get_cluster - ## - # RPC-specific configuration for `list_clusters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_clusters - ## - # RPC-specific configuration for `update_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :update_cluster - ## - # RPC-specific configuration for `partial_update_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :partial_update_cluster - ## - # RPC-specific configuration for `delete_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_cluster - ## - # RPC-specific configuration for `create_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :create_app_profile - ## - # RPC-specific configuration for `get_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :get_app_profile - ## - # RPC-specific configuration for `list_app_profiles` - # @return [::Gapic::Config::Method] - # - attr_reader :list_app_profiles - ## - # RPC-specific configuration for `update_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :update_app_profile - ## - # RPC-specific configuration for `delete_app_profile` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_app_profile - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - ## - # RPC-specific configuration for `list_hot_tablets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_hot_tablets - ## - # RPC-specific configuration for `create_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_logical_view - ## - # RPC-specific configuration for `get_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_logical_view - ## - # RPC-specific configuration for `list_logical_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_logical_views - ## - # RPC-specific configuration for `update_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_logical_view - ## - # RPC-specific configuration for `delete_logical_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_logical_view - ## - # RPC-specific configuration for `create_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_materialized_view - ## - # RPC-specific configuration for `get_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_materialized_view - ## - # RPC-specific configuration for `list_materialized_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_materialized_views - ## - # RPC-specific configuration for `update_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_materialized_view - ## - # RPC-specific configuration for `delete_materialized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_materialized_view - - # @private - def initialize parent_rpcs = nil - create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance - @create_instance = ::Gapic::Config::Method.new create_instance_config - get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance - @get_instance = ::Gapic::Config::Method.new get_instance_config - list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances - @list_instances = ::Gapic::Config::Method.new list_instances_config - update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance - @update_instance = ::Gapic::Config::Method.new update_instance_config - partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance - @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config - delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance - @delete_instance = ::Gapic::Config::Method.new delete_instance_config - create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster - @create_cluster = ::Gapic::Config::Method.new create_cluster_config - get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster - @get_cluster = ::Gapic::Config::Method.new get_cluster_config - list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters - @list_clusters = ::Gapic::Config::Method.new list_clusters_config - update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster - @update_cluster = ::Gapic::Config::Method.new update_cluster_config - partial_update_cluster_config = parent_rpcs.partial_update_cluster if parent_rpcs.respond_to? :partial_update_cluster - @partial_update_cluster = ::Gapic::Config::Method.new partial_update_cluster_config - delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster - @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config - create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile - @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config - get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile - @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config - list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles - @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config - update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile - @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config - delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile - @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - list_hot_tablets_config = parent_rpcs.list_hot_tablets if parent_rpcs.respond_to? :list_hot_tablets - @list_hot_tablets = ::Gapic::Config::Method.new list_hot_tablets_config - create_logical_view_config = parent_rpcs.create_logical_view if parent_rpcs.respond_to? :create_logical_view - @create_logical_view = ::Gapic::Config::Method.new create_logical_view_config - get_logical_view_config = parent_rpcs.get_logical_view if parent_rpcs.respond_to? :get_logical_view - @get_logical_view = ::Gapic::Config::Method.new get_logical_view_config - list_logical_views_config = parent_rpcs.list_logical_views if parent_rpcs.respond_to? :list_logical_views - @list_logical_views = ::Gapic::Config::Method.new list_logical_views_config - update_logical_view_config = parent_rpcs.update_logical_view if parent_rpcs.respond_to? :update_logical_view - @update_logical_view = ::Gapic::Config::Method.new update_logical_view_config - delete_logical_view_config = parent_rpcs.delete_logical_view if parent_rpcs.respond_to? :delete_logical_view - @delete_logical_view = ::Gapic::Config::Method.new delete_logical_view_config - create_materialized_view_config = parent_rpcs.create_materialized_view if parent_rpcs.respond_to? :create_materialized_view - @create_materialized_view = ::Gapic::Config::Method.new create_materialized_view_config - get_materialized_view_config = parent_rpcs.get_materialized_view if parent_rpcs.respond_to? :get_materialized_view - @get_materialized_view = ::Gapic::Config::Method.new get_materialized_view_config - list_materialized_views_config = parent_rpcs.list_materialized_views if parent_rpcs.respond_to? :list_materialized_views - @list_materialized_views = ::Gapic::Config::Method.new list_materialized_views_config - update_materialized_view_config = parent_rpcs.update_materialized_view if parent_rpcs.respond_to? :update_materialized_view - @update_materialized_view = ::Gapic::Config::Method.new update_materialized_view_config - delete_materialized_view_config = parent_rpcs.delete_materialized_view if parent_rpcs.respond_to? :delete_materialized_view - @delete_materialized_view = ::Gapic::Config::Method.new delete_materialized_view_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb deleted file mode 100644 index 4b166e3ac286..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Credentials for the BigtableInstanceAdmin API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.cluster", - "https://www.googleapis.com/auth/bigtable.admin.instance", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - self.env_vars = [ - "BIGTABLE_CREDENTIALS", - "BIGTABLE_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "BIGTABLE_CREDENTIALS_JSON", - "BIGTABLE_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb deleted file mode 100644 index d49308f480c1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +++ /dev/null @@ -1,843 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the BigtableInstanceAdmin Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableInstanceAdmin Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb deleted file mode 100644 index 8ee57571df69..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb +++ /dev/null @@ -1,180 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableInstanceAdmin - # Path helper methods for the BigtableInstanceAdmin API. - module Paths - ## - # Create a fully-qualified AppProfile resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}` - # - # @param project [String] - # @param instance [String] - # @param app_profile [String] - # - # @return [::String] - def app_profile_path project:, instance:, app_profile: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/appProfiles/#{app_profile}" - end - - ## - # Create a fully-qualified Cluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # - # @return [::String] - def cluster_path project:, instance:, cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}" - end - - ## - # Create a fully-qualified CryptoKey resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # - # @return [::String] - def crypto_key_path project:, location:, key_ring:, crypto_key: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" - end - - ## - # Create a fully-qualified Instance resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}` - # - # @param project [String] - # @param instance [String] - # - # @return [::String] - def instance_path project:, instance: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/instances/#{instance}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified LogicalView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - # - # @param project [String] - # @param instance [String] - # @param logical_view [String] - # - # @return [::String] - def logical_view_path project:, instance:, logical_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/logicalViews/#{logical_view}" - end - - ## - # Create a fully-qualified MaterializedView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - # - # @param project [String] - # @param instance [String] - # @param materialized_view [String] - # - # @return [::String] - def materialized_view_path project:, instance:, materialized_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/materializedViews/#{materialized_view}" - end - - ## - # Create a fully-qualified Project resource string. - # - # The resource will be in the following format: - # - # `projects/{project}` - # - # @param project [String] - # - # @return [::String] - def project_path project: - "projects/#{project}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb deleted file mode 100644 index cc08c6872c99..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/bigtable/admin/v2/version" - -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/paths" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/operations" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/client" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - ## - # Service for creating, configuring, and deleting Cloud Bigtable tables. - # - # - # Provides access to the table schemas only, not the data stored within - # the tables. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - module BigtableTableAdmin - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "bigtable_table_admin", "helpers.rb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb deleted file mode 100644 index a6a0d9ba05cd..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +++ /dev/null @@ -1,4266 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/bigtable/admin/v2/bigtable_table_admin_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - ## - # Client for the BigtableTableAdmin service. - # - # Service for creating, configuring, and deleting Cloud Bigtable tables. - # - # - # Provides access to the table schemas only, not the data stored within - # the tables. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :bigtable_table_admin_stub - - ## - # Configure the BigtableTableAdmin Client class. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all BigtableTableAdmin clients - # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Bigtable", "Admin", "V2"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.create_table.timeout = 300.0 - - default_config.rpcs.list_tables.timeout = 60.0 - default_config.rpcs.list_tables.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.get_table.timeout = 60.0 - default_config.rpcs.get_table.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_table.timeout = 300.0 - - default_config.rpcs.modify_column_families.timeout = 300.0 - - default_config.rpcs.drop_row_range.timeout = 3600.0 - - default_config.rpcs.generate_consistency_token.timeout = 60.0 - default_config.rpcs.generate_consistency_token.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.check_consistency.timeout = 3600.0 - default_config.rpcs.check_consistency.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.get_snapshot.timeout = 60.0 - default_config.rpcs.get_snapshot.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.list_snapshots.timeout = 60.0 - default_config.rpcs.list_snapshots.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.delete_snapshot.timeout = 300.0 - - default_config.rpcs.create_backup.timeout = 60.0 - - default_config.rpcs.get_backup.timeout = 60.0 - default_config.rpcs.get_backup.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.update_backup.timeout = 60.0 - - default_config.rpcs.delete_backup.timeout = 300.0 - - default_config.rpcs.list_backups.timeout = 60.0 - default_config.rpcs.list_backups.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.restore_table.timeout = 60.0 - - default_config.rpcs.get_iam_policy.timeout = 60.0 - default_config.rpcs.get_iam_policy.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config.rpcs.set_iam_policy.timeout = 60.0 - - default_config.rpcs.test_iam_permissions.timeout = 60.0 - default_config.rpcs.test_iam_permissions.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 2, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableTableAdmin Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @bigtable_table_admin_stub.universe_domain - end - - ## - # Create a new BigtableTableAdmin client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the BigtableTableAdmin client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @bigtable_table_admin_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @bigtable_table_admin_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations] - # - attr_reader :operations_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @bigtable_table_admin_stub.logger - end - - # Service calls - - ## - # Creates a new table in the specified instance. - # The table can be created with a full set of initial column families, - # specified in the request. - # - # @overload create_table(request, options = nil) - # Pass arguments to `create_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_table(parent: nil, table_id: nil, table: nil, initial_splits: nil) - # Pass arguments to `create_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @param table_id [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # Maximum 50 characters. - # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] - # Required. The Table to create. - # @param initial_splits [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, ::Hash>] - # The optional list of row keys that will be used to initially split the - # table into several tablets (tablets are similar to HBase regions). - # Given two split keys, `s1` and `s2`, three tablets will be created, - # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - # - # Example: - # - # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - # `"other", "zz"]` - # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - # * Key assignment: - # - Tablet 1 `[, apple) => {"a"}.` - # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - # - Tablet 4 `[customer_2, other) => {"customer_2"}.` - # - Tablet 5 `[other, ) => {"other", "zz"}.` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new - # - # # Call the create_table method. - # result = client.create_table request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def create_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new table from the specified snapshot. The target table must - # not exist. The snapshot and the table must be in the same instance. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload create_table_from_snapshot(request, options = nil) - # Pass arguments to `create_table_from_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_table_from_snapshot(parent: nil, table_id: nil, source_snapshot: nil) - # Pass arguments to `create_table_from_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @param table_id [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # @param source_snapshot [::String] - # Required. The unique name of the snapshot from which to restore the table. - # The snapshot and the table must be in the same instance. Values are of the - # form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new - # - # # Call the create_table_from_snapshot method. - # result = client.create_table_from_snapshot request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_table_from_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_table_from_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all tables served from a specified instance. - # - # @overload list_tables(request, options = nil) - # Pass arguments to `list_tables` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_tables(parent: nil, view: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_tables` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the instance for which tables should be - # listed. Values are of the form `projects/{project}/instances/{instance}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned tables' fields. - # NAME_ONLY view (default) and REPLICATION_VIEW are supported. - # @param page_size [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Table>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new - # - # # Call the list_tables method. - # result = client.list_tables request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. - # p item - # end - # - def list_tables request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_tables.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_tables.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_tables.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_tables, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified table. - # - # @overload get_table(request, options = nil) - # Pass arguments to `get_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_table(name: nil, view: nil) - # Pass arguments to `get_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested table. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned table's fields. - # Defaults to `SCHEMA_VIEW` if unspecified. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new - # - # # Call the get_table method. - # result = client.get_table request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def get_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a specified table. - # - # @overload update_table(request, options = nil) - # Pass arguments to `update_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_table(table: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param table [::Google::Cloud::Bigtable::Admin::V2::Table, ::Hash] - # Required. The table to update. - # The table's `name` field is used to identify the table to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to update. - # A mask specifying which fields (e.g. `change_stream_config`) in the `table` - # field should be updated. This mask is relative to the `table` field, not to - # the request message. The wildcard (*) path is currently not supported. - # Currently UpdateTable is only supported for the following fields: - # - # * `change_stream_config` - # * `change_stream_config.retention_period` - # * `deletion_protection` - # * `row_key_schema` - # - # If `column_families` is set in `update_mask`, it will return an - # UNIMPLEMENTED error. - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore safety checks when updating the table. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new - # - # # Call the update_table method. - # result = client.update_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.table&.name - header_params["table.name"] = request.table.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes a specified table and all of its data. - # - # @overload delete_table(request, options = nil) - # Pass arguments to `delete_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_table(name: nil) - # Pass arguments to `delete_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new - # - # # Call the delete_table method. - # result = client.delete_table request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Restores a specified table which was accidentally deleted. - # - # @overload undelete_table(request, options = nil) - # Pass arguments to `undelete_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload undelete_table(name: nil) - # Pass arguments to `undelete_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to be restored. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new - # - # # Call the undelete_table method. - # result = client.undelete_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def undelete_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.undelete_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.undelete_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.undelete_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :undelete_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new AuthorizedView in a table. - # - # @overload create_authorized_view(request, options = nil) - # Pass arguments to `create_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_authorized_view(parent: nil, authorized_view_id: nil, authorized_view: nil) - # Pass arguments to `create_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. This is the name of the table the AuthorizedView belongs to. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param authorized_view_id [::String] - # Required. The id of the AuthorizedView to create. This AuthorizedView must - # not already exist. The `authorized_view_id` appended to `parent` forms the - # full AuthorizedView name of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] - # Required. The AuthorizedView to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new - # - # # Call the create_authorized_view method. - # result = client.create_authorized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_authorized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all AuthorizedViews from a specific table. - # - # @overload list_authorized_views(request, options = nil) - # Pass arguments to `list_authorized_views` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_authorized_views(parent: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `list_authorized_views` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the table for which AuthorizedViews should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param page_size [::Integer] - # Optional. Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @param page_token [::String] - # Optional. The value of `next_page_token` returned by a previous call. - # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedViews' - # fields. Default to NAME_ONLY. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new - # - # # Call the list_authorized_views method. - # result = client.list_authorized_views request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - # p item - # end - # - def list_authorized_views request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_authorized_views.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_authorized_views.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_authorized_views.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_authorized_views, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_authorized_views, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information from a specified AuthorizedView. - # - # @overload get_authorized_view(request, options = nil) - # Pass arguments to `get_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_authorized_view(name: nil, view: nil) - # Pass arguments to `get_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedView's - # fields. Default to BASIC. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new - # - # # Call the get_authorized_view method. - # result = client.get_authorized_view request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - # p result - # - def get_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_authorized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an AuthorizedView in a table. - # - # @overload update_authorized_view(request, options = nil) - # Pass arguments to `update_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_authorized_view(authorized_view: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param authorized_view [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView, ::Hash] - # Required. The AuthorizedView to update. The `name` in `authorized_view` is - # used to identify the AuthorizedView. AuthorizedView name must in this - # format: - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # A mask specifying which fields in the AuthorizedView resource should be - # updated. This mask is relative to the AuthorizedView resource, not to the - # request message. A field will be overwritten if it is in the mask. If - # empty, all fields set in the request will be overwritten. A special value - # `*` means to overwrite all fields (including fields not set in the - # request). - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore the safety checks when updating the - # AuthorizedView. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new - # - # # Call the update_authorized_view method. - # result = client.update_authorized_view request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.authorized_view&.name - header_params["authorized_view.name"] = request.authorized_view.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_authorized_view, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes a specified AuthorizedView. - # - # @overload delete_authorized_view(request, options = nil) - # Pass arguments to `delete_authorized_view` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_authorized_view(name: nil, etag: nil) - # Pass arguments to `delete_authorized_view` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the AuthorizedView to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @param etag [::String] - # Optional. The current etag of the AuthorizedView. - # If an etag is provided and does not match the current etag of the - # AuthorizedView, deletion will be blocked and an ABORTED error will be - # returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new - # - # # Call the delete_authorized_view method. - # result = client.delete_authorized_view request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_authorized_view request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_authorized_view.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_authorized_view.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_authorized_view.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_authorized_view, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a series of column family modifications on the specified table. - # Either all or none of the modifications will occur before this method - # returns, but data requests received prior to that point may see a table - # where only some modifications have taken effect. - # - # @overload modify_column_families(request, options = nil) - # Pass arguments to `modify_column_families` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload modify_column_families(name: nil, modifications: nil, ignore_warnings: nil) - # Pass arguments to `modify_column_families` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table whose families should be modified. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param modifications [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, ::Hash>] - # Required. Modifications to be atomically applied to the specified table's - # families. Entries are applied in order, meaning that earlier modifications - # can be masked by later ones (in the case of repeated updates to the same - # family, for example). - # @param ignore_warnings [::Boolean] - # Optional. If true, ignore safety checks when modifying the column families. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Table] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new - # - # # Call the modify_column_families method. - # result = client.modify_column_families request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - # p result - # - def modify_column_families request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.modify_column_families.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout, - metadata: metadata, - retry_policy: @config.rpcs.modify_column_families.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently drop/delete a row range from a specified table. The request can - # specify whether to delete all rows in a table, or only those that match a - # particular prefix. - # - # @overload drop_row_range(request, options = nil) - # Pass arguments to `drop_row_range` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload drop_row_range(name: nil, row_key_prefix: nil, delete_all_data_from_table: nil) - # Pass arguments to `drop_row_range` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table on which to drop a range of rows. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param row_key_prefix [::String] - # Delete all rows that start with this row key prefix. Prefix cannot be - # zero length. - # - # Note: The following parameters are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param delete_all_data_from_table [::Boolean] - # Delete all rows in the table. Setting this to false is a no-op. - # - # Note: The following parameters are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new - # - # # Call the drop_row_range method. - # result = client.drop_row_range request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def drop_row_range request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.drop_row_range.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout, - metadata: metadata, - retry_policy: @config.rpcs.drop_row_range.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Generates a consistency token for a Table, which can be used in - # CheckConsistency to check whether mutations to the table that finished - # before this call started have been replicated. The tokens will be available - # for 90 days. - # - # @overload generate_consistency_token(request, options = nil) - # Pass arguments to `generate_consistency_token` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_consistency_token(name: nil) - # Pass arguments to `generate_consistency_token` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the Table for which to create a consistency - # token. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new - # - # # Call the generate_consistency_token method. - # result = client.generate_consistency_token request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. - # p result - # - def generate_consistency_token request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_consistency_token.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_consistency_token.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Checks replication consistency based on a consistency token, that is, if - # replication has caught up based on the conditions specified in the token - # and the check request. - # - # @overload check_consistency(request, options = nil) - # Pass arguments to `check_consistency` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload check_consistency(name: nil, consistency_token: nil, standard_read_remote_writes: nil, data_boost_read_local_writes: nil) - # Pass arguments to `check_consistency` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the Table for which to check replication - # consistency. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param consistency_token [::String] - # Required. The token created using GenerateConsistencyToken for the Table. - # @param standard_read_remote_writes [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites, ::Hash] - # Checks that reads using an app profile with `StandardIsolation` can - # see all writes committed before the token was created, even if the - # read and write target different clusters. - # - # Note: The following parameters are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param data_boost_read_local_writes [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites, ::Hash] - # Checks that reads using an app profile with `DataBoostIsolationReadOnly` - # can see all writes committed before the token was created, but only if - # the read and write target the same cluster. - # - # Note: The following parameters are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new - # - # # Call the check_consistency method. - # result = client.check_consistency request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. - # p result - # - def check_consistency request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.check_consistency.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.check_consistency.timeout, - metadata: metadata, - retry_policy: @config.rpcs.check_consistency.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new snapshot in the specified cluster from the specified - # source table. The cluster and the table must be in the same instance. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload snapshot_table(request, options = nil) - # Pass arguments to `snapshot_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload snapshot_table(name: nil, cluster: nil, snapshot_id: nil, ttl: nil, description: nil) - # Pass arguments to `snapshot_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the table to have the snapshot taken. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param cluster [::String] - # Required. The name of the cluster where the snapshot will be created in. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param snapshot_id [::String] - # Required. The ID by which the new snapshot should be referred to within the - # parent cluster, e.g., `mysnapshot` of the form: - # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - # @param ttl [::Google::Protobuf::Duration, ::Hash] - # The amount of time that the new snapshot can stay active after it is - # created. Once 'ttl' expires, the snapshot will get deleted. The maximum - # amount of time a snapshot can stay active is 7 days. If 'ttl' is not - # specified, the default value of 24 hours will be used. - # @param description [::String] - # Description of the snapshot. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new - # - # # Call the snapshot_table method. - # result = client.snapshot_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def snapshot_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.snapshot_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.snapshot_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified snapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload get_snapshot(request, options = nil) - # Pass arguments to `get_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_snapshot(name: nil) - # Pass arguments to `get_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the requested snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Snapshot] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new - # - # # Call the get_snapshot method. - # result = client.get_snapshot request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. - # p result - # - def get_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all snapshots associated with the specified cluster. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload list_snapshots(request, options = nil) - # Pass arguments to `list_snapshots` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_snapshots(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_snapshots` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The unique name of the cluster for which snapshots should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @param page_size [::Integer] - # The maximum number of snapshots to return per page. - # CURRENTLY UNIMPLEMENTED AND IGNORED. - # @param page_token [::String] - # The value of `next_page_token` returned by a previous call. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new - # - # # Call the list_snapshots method. - # result = client.list_snapshots request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. - # p item - # end - # - def list_snapshots request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_snapshots.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_snapshots.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_snapshots, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Permanently deletes the specified snapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not - # recommended for production use. It is not subject to any SLA or deprecation - # policy. - # - # @overload delete_snapshot(request, options = nil) - # Pass arguments to `delete_snapshot` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_snapshot(name: nil) - # Pass arguments to `delete_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the snapshot to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new - # - # # Call the delete_snapshot method. - # result = client.delete_snapshot request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts creating a new Cloud Bigtable Backup. The returned backup - # {::Google::Longrunning::Operation long-running operation} can be used to - # track creation of the backup. The - # {::Google::Longrunning::Operation#metadata metadata} field type is - # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupMetadata CreateBackupMetadata}. The - # {::Google::Longrunning::Operation#response response} field type is - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}, if successful. Cancelling the - # returned operation will stop the creation and delete the backup. - # - # @overload create_backup(request, options = nil) - # Pass arguments to `create_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_backup(parent: nil, backup_id: nil, backup: nil) - # Pass arguments to `create_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. This must be one of the clusters in the instance in which this - # table is located. The backup will be stored in this cluster. Values are - # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param backup_id [::String] - # Required. The id of the backup to be created. The `backup_id` along with - # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create - # the full backup name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] - # Required. The backup to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new - # - # # Call the create_backup method. - # result = client.create_backup request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata on a pending or completed Cloud Bigtable Backup. - # - # @overload get_backup(request, options = nil) - # Pass arguments to `get_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_backup(name: nil) - # Pass arguments to `get_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the backup. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new - # - # # Call the get_backup method. - # result = client.get_backup request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - # p result - # - def get_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a pending or completed Cloud Bigtable Backup. - # - # @overload update_backup(request, options = nil) - # Pass arguments to `update_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_backup(backup: nil, update_mask: nil) - # Pass arguments to `update_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param backup [::Google::Cloud::Bigtable::Admin::V2::Backup, ::Hash] - # Required. The backup to update. `backup.name`, and the fields to be updated - # as specified by `update_mask` are required. Other fields are ignored. - # Update is only supported for the following fields: - # - # * `backup.expire_time`. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. A mask specifying which fields (e.g. `expire_time`) in the - # Backup resource should be updated. This mask is relative to the Backup - # resource, not to the request message. The field mask must always be - # specified; this prevents any future fields from being erased accidentally - # by clients that do not know about them. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::Backup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new - # - # # Call the update_backup method. - # result = client.update_backup request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - # p result - # - def update_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.backup&.name - header_params["backup.name"] = request.backup.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a pending or completed Cloud Bigtable backup. - # - # @overload delete_backup(request, options = nil) - # Pass arguments to `delete_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_backup(name: nil) - # Pass arguments to `delete_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the backup to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new - # - # # Call the delete_backup method. - # result = client.delete_backup request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Cloud Bigtable backups. Returns both completed and pending - # backups. - # - # @overload list_backups(request, options = nil) - # Pass arguments to `list_backups` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_backups(parent: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_backups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The cluster to list backups from. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list backups for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @param filter [::String] - # A filter expression that filters backups listed in the response. - # The expression must specify the field name, a comparison operator, - # and the value that you want to use for filtering. The value must be a - # string, a number, or a boolean. The comparison operator must be - # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - # roughly synonymous with equality. Filter rules are case insensitive. - # - # The fields eligible for filtering are: - # - # * `name` - # * `source_table` - # * `state` - # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `size_bytes` - # - # To filter on multiple expressions, provide each separate expression within - # parentheses. By default, each expression is an AND expression. However, - # you can include AND, OR, and NOT expressions explicitly. - # - # Some examples of using filters are: - # - # * `name:"exact"` --> The backup's name is the string "exact". - # * `name:howl` --> The backup's name contains the string "howl". - # * `source_table:prod` - # --> The source_table's name contains the string "prod". - # * `state:CREATING` --> The backup is pending creation. - # * `state:READY` --> The backup is fully created and ready for use. - # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - # --> The backup name contains the string "howl" and start_time - # of the backup is before 2018-03-28T14:50:00Z. - # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - # @param order_by [::String] - # An expression for specifying the sort order of the results of the request. - # The string value should specify one or more fields in - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at - # https://aip.dev/132#ordering. - # - # Fields supported are: - # - # * name - # * source_table - # * expire_time - # * start_time - # * end_time - # * size_bytes - # * state - # - # For example, "start_time". The default sorting order is ascending. - # To specify descending order for the field, a suffix " desc" should - # be appended to the field name. For example, "start_time desc". - # Redundant space characters in the syntax are insigificant. - # - # If order_by is empty, results will be sorted by `start_time` in descending - # order starting from the most recently created backup. - # @param page_size [::Integer] - # Number of backups to be returned in the response. If 0 or - # less, defaults to the server's maximum allowed page size. - # @param page_token [::String] - # If non-empty, `page_token` should contain a - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} - # from a previous - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the - # same `parent` and with the same `filter`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new - # - # # Call the list_backups method. - # result = client.list_backups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. - # p item - # end - # - def list_backups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_backups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_backups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_backups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_backups, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new table by restoring from a completed backup. The - # returned table {::Google::Longrunning::Operation long-running operation} can - # be used to track the progress of the operation, and to cancel it. The - # {::Google::Longrunning::Operation#metadata metadata} field type is - # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableMetadata RestoreTableMetadata}. The - # {::Google::Longrunning::Operation#response response} type is - # {::Google::Cloud::Bigtable::Admin::V2::Table Table}, if successful. - # - # @overload restore_table(request, options = nil) - # Pass arguments to `restore_table` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload restore_table(parent: nil, table_id: nil, backup: nil) - # Pass arguments to `restore_table` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the instance in which to create the restored - # table. Values are of the form `projects//instances/`. - # @param table_id [::String] - # Required. The id of the table to create and restore to. This - # table must not already exist. The `table_id` appended to - # `parent` forms the full table name of the form - # `projects//instances//tables/`. - # @param backup [::String] - # Name of the backup from which to restore. Values are of the form - # `projects//instances//clusters//backups/`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new - # - # # Call the restore_table method. - # result = client.restore_table request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def restore_table request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.restore_table.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.restore_table.timeout, - metadata: metadata, - retry_policy: @config.rpcs.restore_table.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Copy a Cloud Bigtable backup to a new backup in the destination cluster - # located in the destination instance and project. - # - # @overload copy_backup(request, options = nil) - # Pass arguments to `copy_backup` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload copy_backup(parent: nil, backup_id: nil, source_backup: nil, expire_time: nil) - # Pass arguments to `copy_backup` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the destination cluster that will contain the backup - # copy. The cluster must already exist. Values are of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @param backup_id [::String] - # Required. The id of the new backup. The `backup_id` along with `parent` - # are combined as \\{parent}/backups/\\{backup_id} to create the full backup - # name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @param source_backup [::String] - # Required. The source backup to be copied from. - # The source backup needs to be in READY state for it to be copied. - # Copying a copied backup is not allowed. - # Once CopyBackup is in progress, the source backup cannot be deleted or - # cleaned up on expiration until CopyBackup is finished. - # Values are of the form: - # `projects//instances//clusters//backups/`. - # @param expire_time [::Google::Protobuf::Timestamp, ::Hash] - # Required. Required. The expiration time of the copied backup with - # microsecond granularity that must be at least 6 hours and at most 30 days - # from the time the request is received. Once the `expire_time` has - # passed, Cloud Bigtable will delete the backup and free the resources used - # by the backup. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new - # - # # Call the copy_backup method. - # result = client.copy_backup request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def copy_backup request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.copy_backup.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.copy_backup.timeout, - metadata: metadata, - retry_policy: @config.rpcs.copy_backup.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :copy_backup, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a Bigtable resource. - # Returns an empty policy if the resource exists but does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on a Bigtable resource. - # Replaces any existing policy. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns permissions that the caller has on the specified Bigtable - # resource. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new schema bundle in the specified table. - # - # @overload create_schema_bundle(request, options = nil) - # Pass arguments to `create_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_schema_bundle(parent: nil, schema_bundle_id: nil, schema_bundle: nil) - # Pass arguments to `create_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this schema bundle will be created. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param schema_bundle_id [::String] - # Required. The unique ID to use for the schema bundle, which will become the - # final component of the schema bundle's resource name. - # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] - # Required. The schema bundle to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new - # - # # Call the create_schema_bundle method. - # result = client.create_schema_bundle request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :create_schema_bundle, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a schema bundle in the specified table. - # - # @overload update_schema_bundle(request, options = nil) - # Pass arguments to `update_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_schema_bundle(schema_bundle: nil, update_mask: nil, ignore_warnings: nil) - # Pass arguments to `update_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param schema_bundle [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle, ::Hash] - # Required. The schema bundle to update. - # - # The schema bundle's `name` field is used to identify the schema bundle to - # update. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. - # @param ignore_warnings [::Boolean] - # Optional. If set, ignore the safety checks when updating the Schema Bundle. - # The safety checks are: - # - The new Schema Bundle is backwards compatible with the existing Schema - # Bundle. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new - # - # # Call the update_schema_bundle method. - # result = client.update_schema_bundle request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.schema_bundle&.name - header_params["schema_bundle.name"] = request.schema_bundle.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :update_schema_bundle, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets metadata information about the specified schema bundle. - # - # @overload get_schema_bundle(request, options = nil) - # Pass arguments to `get_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_schema_bundle(name: nil) - # Pass arguments to `get_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the schema bundle to retrieve. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new - # - # # Call the get_schema_bundle method. - # result = client.get_schema_bundle request - # - # # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - # p result - # - def get_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :get_schema_bundle, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all schema bundles associated with the specified table. - # - # @overload list_schema_bundles(request, options = nil) - # Pass arguments to `list_schema_bundles` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_schema_bundles(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_schema_bundles` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent, which owns this collection of schema bundles. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @param page_size [::Integer] - # The maximum number of schema bundles to return. If the value is positive, - # the server may return at most this value. If unspecified, the server will - # return the maximum allowed page size. - # @param page_token [::String] - # A page token, received from a previous `ListSchemaBundles` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListSchemaBundles` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new - # - # # Call the list_schema_bundles method. - # result = client.list_schema_bundles request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - # p item - # end - # - def list_schema_bundles request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_schema_bundles.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_schema_bundles.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_schema_bundles.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :list_schema_bundles, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @bigtable_table_admin_stub, :list_schema_bundles, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a schema bundle in the specified table. - # - # @overload delete_schema_bundle(request, options = nil) - # Pass arguments to `delete_schema_bundle` via a request object, either of type - # {::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_schema_bundle(name: nil, etag: nil) - # Pass arguments to `delete_schema_bundle` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The unique name of the schema bundle to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @param etag [::String] - # Optional. The etag of the schema bundle. - # If this is provided, it must match the server's etag. The server - # returns an ABORTED error on a mismatched etag. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/bigtable/admin/v2" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new - # - # # Call the delete_schema_bundle method. - # result = client.delete_schema_bundle request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_schema_bundle request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_schema_bundle.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_schema_bundle.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_schema_bundle.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @bigtable_table_admin_stub.call_rpc :delete_schema_bundle, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the BigtableTableAdmin API. - # - # This class represents the configuration for BigtableTableAdmin, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_table to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_table.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_table.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the BigtableTableAdmin API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_table` - # @return [::Gapic::Config::Method] - # - attr_reader :create_table - ## - # RPC-specific configuration for `create_table_from_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :create_table_from_snapshot - ## - # RPC-specific configuration for `list_tables` - # @return [::Gapic::Config::Method] - # - attr_reader :list_tables - ## - # RPC-specific configuration for `get_table` - # @return [::Gapic::Config::Method] - # - attr_reader :get_table - ## - # RPC-specific configuration for `update_table` - # @return [::Gapic::Config::Method] - # - attr_reader :update_table - ## - # RPC-specific configuration for `delete_table` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_table - ## - # RPC-specific configuration for `undelete_table` - # @return [::Gapic::Config::Method] - # - attr_reader :undelete_table - ## - # RPC-specific configuration for `create_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :create_authorized_view - ## - # RPC-specific configuration for `list_authorized_views` - # @return [::Gapic::Config::Method] - # - attr_reader :list_authorized_views - ## - # RPC-specific configuration for `get_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :get_authorized_view - ## - # RPC-specific configuration for `update_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :update_authorized_view - ## - # RPC-specific configuration for `delete_authorized_view` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_authorized_view - ## - # RPC-specific configuration for `modify_column_families` - # @return [::Gapic::Config::Method] - # - attr_reader :modify_column_families - ## - # RPC-specific configuration for `drop_row_range` - # @return [::Gapic::Config::Method] - # - attr_reader :drop_row_range - ## - # RPC-specific configuration for `generate_consistency_token` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_consistency_token - ## - # RPC-specific configuration for `check_consistency` - # @return [::Gapic::Config::Method] - # - attr_reader :check_consistency - ## - # RPC-specific configuration for `snapshot_table` - # @return [::Gapic::Config::Method] - # - attr_reader :snapshot_table - ## - # RPC-specific configuration for `get_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :get_snapshot - ## - # RPC-specific configuration for `list_snapshots` - # @return [::Gapic::Config::Method] - # - attr_reader :list_snapshots - ## - # RPC-specific configuration for `delete_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_snapshot - ## - # RPC-specific configuration for `create_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :create_backup - ## - # RPC-specific configuration for `get_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :get_backup - ## - # RPC-specific configuration for `update_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :update_backup - ## - # RPC-specific configuration for `delete_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_backup - ## - # RPC-specific configuration for `list_backups` - # @return [::Gapic::Config::Method] - # - attr_reader :list_backups - ## - # RPC-specific configuration for `restore_table` - # @return [::Gapic::Config::Method] - # - attr_reader :restore_table - ## - # RPC-specific configuration for `copy_backup` - # @return [::Gapic::Config::Method] - # - attr_reader :copy_backup - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - ## - # RPC-specific configuration for `create_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :create_schema_bundle - ## - # RPC-specific configuration for `update_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :update_schema_bundle - ## - # RPC-specific configuration for `get_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :get_schema_bundle - ## - # RPC-specific configuration for `list_schema_bundles` - # @return [::Gapic::Config::Method] - # - attr_reader :list_schema_bundles - ## - # RPC-specific configuration for `delete_schema_bundle` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_schema_bundle - - # @private - def initialize parent_rpcs = nil - create_table_config = parent_rpcs.create_table if parent_rpcs.respond_to? :create_table - @create_table = ::Gapic::Config::Method.new create_table_config - create_table_from_snapshot_config = parent_rpcs.create_table_from_snapshot if parent_rpcs.respond_to? :create_table_from_snapshot - @create_table_from_snapshot = ::Gapic::Config::Method.new create_table_from_snapshot_config - list_tables_config = parent_rpcs.list_tables if parent_rpcs.respond_to? :list_tables - @list_tables = ::Gapic::Config::Method.new list_tables_config - get_table_config = parent_rpcs.get_table if parent_rpcs.respond_to? :get_table - @get_table = ::Gapic::Config::Method.new get_table_config - update_table_config = parent_rpcs.update_table if parent_rpcs.respond_to? :update_table - @update_table = ::Gapic::Config::Method.new update_table_config - delete_table_config = parent_rpcs.delete_table if parent_rpcs.respond_to? :delete_table - @delete_table = ::Gapic::Config::Method.new delete_table_config - undelete_table_config = parent_rpcs.undelete_table if parent_rpcs.respond_to? :undelete_table - @undelete_table = ::Gapic::Config::Method.new undelete_table_config - create_authorized_view_config = parent_rpcs.create_authorized_view if parent_rpcs.respond_to? :create_authorized_view - @create_authorized_view = ::Gapic::Config::Method.new create_authorized_view_config - list_authorized_views_config = parent_rpcs.list_authorized_views if parent_rpcs.respond_to? :list_authorized_views - @list_authorized_views = ::Gapic::Config::Method.new list_authorized_views_config - get_authorized_view_config = parent_rpcs.get_authorized_view if parent_rpcs.respond_to? :get_authorized_view - @get_authorized_view = ::Gapic::Config::Method.new get_authorized_view_config - update_authorized_view_config = parent_rpcs.update_authorized_view if parent_rpcs.respond_to? :update_authorized_view - @update_authorized_view = ::Gapic::Config::Method.new update_authorized_view_config - delete_authorized_view_config = parent_rpcs.delete_authorized_view if parent_rpcs.respond_to? :delete_authorized_view - @delete_authorized_view = ::Gapic::Config::Method.new delete_authorized_view_config - modify_column_families_config = parent_rpcs.modify_column_families if parent_rpcs.respond_to? :modify_column_families - @modify_column_families = ::Gapic::Config::Method.new modify_column_families_config - drop_row_range_config = parent_rpcs.drop_row_range if parent_rpcs.respond_to? :drop_row_range - @drop_row_range = ::Gapic::Config::Method.new drop_row_range_config - generate_consistency_token_config = parent_rpcs.generate_consistency_token if parent_rpcs.respond_to? :generate_consistency_token - @generate_consistency_token = ::Gapic::Config::Method.new generate_consistency_token_config - check_consistency_config = parent_rpcs.check_consistency if parent_rpcs.respond_to? :check_consistency - @check_consistency = ::Gapic::Config::Method.new check_consistency_config - snapshot_table_config = parent_rpcs.snapshot_table if parent_rpcs.respond_to? :snapshot_table - @snapshot_table = ::Gapic::Config::Method.new snapshot_table_config - get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot - @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config - list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots - @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config - delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot - @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config - create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup - @create_backup = ::Gapic::Config::Method.new create_backup_config - get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup - @get_backup = ::Gapic::Config::Method.new get_backup_config - update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup - @update_backup = ::Gapic::Config::Method.new update_backup_config - delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup - @delete_backup = ::Gapic::Config::Method.new delete_backup_config - list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups - @list_backups = ::Gapic::Config::Method.new list_backups_config - restore_table_config = parent_rpcs.restore_table if parent_rpcs.respond_to? :restore_table - @restore_table = ::Gapic::Config::Method.new restore_table_config - copy_backup_config = parent_rpcs.copy_backup if parent_rpcs.respond_to? :copy_backup - @copy_backup = ::Gapic::Config::Method.new copy_backup_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - create_schema_bundle_config = parent_rpcs.create_schema_bundle if parent_rpcs.respond_to? :create_schema_bundle - @create_schema_bundle = ::Gapic::Config::Method.new create_schema_bundle_config - update_schema_bundle_config = parent_rpcs.update_schema_bundle if parent_rpcs.respond_to? :update_schema_bundle - @update_schema_bundle = ::Gapic::Config::Method.new update_schema_bundle_config - get_schema_bundle_config = parent_rpcs.get_schema_bundle if parent_rpcs.respond_to? :get_schema_bundle - @get_schema_bundle = ::Gapic::Config::Method.new get_schema_bundle_config - list_schema_bundles_config = parent_rpcs.list_schema_bundles if parent_rpcs.respond_to? :list_schema_bundles - @list_schema_bundles = ::Gapic::Config::Method.new list_schema_bundles_config - delete_schema_bundle_config = parent_rpcs.delete_schema_bundle if parent_rpcs.respond_to? :delete_schema_bundle - @delete_schema_bundle = ::Gapic::Config::Method.new delete_schema_bundle_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb deleted file mode 100644 index b13ab97ad469..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Credentials for the BigtableTableAdmin API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.table", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.table", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - self.env_vars = [ - "BIGTABLE_CREDENTIALS", - "BIGTABLE_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "BIGTABLE_CREDENTIALS_JSON", - "BIGTABLE_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb deleted file mode 100644 index ad9957f0f690..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +++ /dev/null @@ -1,843 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "bigtableadmin.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the BigtableTableAdmin Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the BigtableTableAdmin Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "bigtableadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb deleted file mode 100644 index c10bcef1999e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb +++ /dev/null @@ -1,214 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - module BigtableTableAdmin - # Path helper methods for the BigtableTableAdmin API. - module Paths - ## - # Create a fully-qualified AuthorizedView resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # @param authorized_view [String] - # - # @return [::String] - def authorized_view_path project:, instance:, table:, authorized_view: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}/authorizedViews/#{authorized_view}" - end - - ## - # Create a fully-qualified Backup resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # @param backup [String] - # - # @return [::String] - def backup_path project:, instance:, cluster:, backup: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}" - end - - ## - # Create a fully-qualified Cluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # - # @return [::String] - def cluster_path project:, instance:, cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}" - end - - ## - # Create a fully-qualified CryptoKeyVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # @param crypto_key_version [String] - # - # @return [::String] - def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" - end - - ## - # Create a fully-qualified Instance resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}` - # - # @param project [String] - # @param instance [String] - # - # @return [::String] - def instance_path project:, instance: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/instances/#{instance}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified SchemaBundle resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # @param schema_bundle [String] - # - # @return [::String] - def schema_bundle_path project:, instance:, table:, schema_bundle: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "table cannot contain /" if table.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}/schemaBundles/#{schema_bundle}" - end - - ## - # Create a fully-qualified Snapshot resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}` - # - # @param project [String] - # @param instance [String] - # @param cluster [String] - # @param snapshot [String] - # - # @return [::String] - def snapshot_path project:, instance:, cluster:, snapshot: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}" - end - - ## - # Create a fully-qualified Table resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/instances/{instance}/tables/{table}` - # - # @param project [String] - # @param instance [String] - # @param table [String] - # - # @return [::String] - def table_path project:, instance:, table: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" - - "projects/#{project}/instances/#{instance}/tables/#{table}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb deleted file mode 100644 index b19e81c131f7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/lib/google/cloud/bigtable/admin/v2/version.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - VERSION = "0.0.1" - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md deleted file mode 100644 index 2968913b938d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Cloud Bigtable Admin V2 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb deleted file mode 100644 index 3ab0b096d445..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/client.rb +++ /dev/null @@ -1,593 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - # - # Note: This field should not be used in most cases. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # - # Note: This feature should not be used in most cases. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb deleted file mode 100644 index a39e72495e1c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb +++ /dev/null @@ -1,767 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Request message for BigtableInstanceAdmin.CreateInstance. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the project in which to create the new - # instance. Values are of the form `projects/{project}`. - # @!attribute [rw] instance_id - # @return [::String] - # Required. The ID to be used when referring to the new instance within its - # project, e.g., just `myinstance` rather than - # `projects/myproject/instances/myinstance`. - # @!attribute [rw] instance - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # Required. The instance to create. - # Fields marked `OutputOnly` must be left blank. - # @!attribute [rw] clusters - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Cluster}] - # Required. The clusters to be created within the instance, mapped by desired - # cluster ID, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # Fields marked `OutputOnly` must be left blank. - class CreateInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - class ClustersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for BigtableInstanceAdmin.GetInstance. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested instance. Values are of the form - # `projects/{project}/instances/{instance}`. - class GetInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListInstances. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the project for which a list of instances is - # requested. Values are of the form `projects/{project}`. - # @!attribute [rw] page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListInstancesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListInstances. - # @!attribute [rw] instances - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Instance>] - # The list of requested instances. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which Instance information could not be retrieved, - # due to an outage or some other transient condition. - # Instances whose Clusters are all in one of the failed locations - # may be missing from `instances`, and Instances with at least one - # Cluster in a failed location may only have partial information returned. - # Values are of the form `projects//locations/` - # @!attribute [rw] next_page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListInstancesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.PartialUpdateInstance. - # @!attribute [rw] instance - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance] - # Required. The Instance which will (partially) replace the current value. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of Instance fields which should be replaced. - # Must be explicitly set. - class PartialUpdateInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteInstance. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the instance to be deleted. - # Values are of the form `projects/{project}/instances/{instance}`. - class DeleteInstanceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateCluster. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the new - # cluster. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] cluster_id - # @return [::String] - # Required. The ID to be used when referring to the new cluster within its - # instance, e.g., just `mycluster` rather than - # `projects/myproject/instances/myinstance/clusters/mycluster`. - # @!attribute [rw] cluster - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # Required. The cluster to be created. - # Fields marked `OutputOnly` must be left blank. - class CreateClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetCluster. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - class GetClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListClusters. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which a list of clusters is - # requested. Values are of the form - # `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - # Clusters for all Instances in a project, e.g., - # `projects/myproject/instances/-`. - # @!attribute [rw] page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListClustersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListClusters. - # @!attribute [rw] clusters - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Cluster>] - # The list of requested clusters. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which Cluster information could not be retrieved, - # due to an outage or some other transient condition. - # Clusters from these locations may be missing from `clusters`, - # or may only have partial information returned. - # Values are of the form `projects//locations/` - # @!attribute [rw] next_page_token - # @return [::String] - # DEPRECATED: This field is unused and ignored. - class ListClustersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteCluster. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the cluster to be deleted. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - class DeleteClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateInstance. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest] - # The request that prompted the initiation of this CreateInstance operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateInstanceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateInstance. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest] - # The request that prompted the initiation of this UpdateInstance operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateInstanceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateCluster. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest] - # The request that prompted the initiation of this CreateCluster operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - # @!attribute [rw] tables - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress}] - # Keys: the full `name` of each table that existed in the instance when - # CreateCluster was first called, i.e. - # `projects//instances//tables/
`. Any table added - # to the instance by a later API call will be created in the new cluster by - # that API call, not this one. - # - # Values: information on how much of a table's data has been copied to the - # newly-created cluster so far. - class CreateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Progress info for copying a table's data to the new cluster. - # @!attribute [rw] estimated_size_bytes - # @return [::Integer] - # Estimate of the size of the table to be copied. - # @!attribute [rw] estimated_copied_bytes - # @return [::Integer] - # Estimate of the number of bytes copied so far for this table. - # This will eventually reach 'estimated_size_bytes' unless the table copy - # is CANCELLED. - # @!attribute [rw] state - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress::State] - class TableProgress - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - module State - STATE_UNSPECIFIED = 0 - - # The table has not yet begun copying to the new cluster. - PENDING = 1 - - # The table is actively being copied to the new cluster. - COPYING = 2 - - # The table has been fully copied to the new cluster. - COMPLETED = 3 - - # The table was deleted before it finished copying to the new cluster. - # Note that tables deleted after completion will stay marked as - # COMPLETED, not CANCELLED. - CANCELLED = 4 - end - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateClusterMetadata::TableProgress] - class TablesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The metadata for the Operation returned by UpdateCluster. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # The request that prompted the initiation of this UpdateCluster operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by PartialUpdateCluster. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest] - # The original request for PartialUpdateCluster. - class PartialUpdateClusterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.PartialUpdateCluster. - # @!attribute [rw] cluster - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster] - # Required. The Cluster which contains the partial updates to be applied, - # subject to the update_mask. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of Cluster fields which should be replaced. - class PartialUpdateClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateAppProfile. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the new app - # profile. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] app_profile_id - # @return [::String] - # Required. The ID to be used when referring to the new app profile within - # its instance, e.g., just `myprofile` rather than - # `projects/myproject/instances/myinstance/appProfiles/myprofile`. - # @!attribute [rw] app_profile - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # Required. The app profile to be created. - # Fields marked `OutputOnly` will be ignored. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # If true, ignore safety checks when creating the app profile. - class CreateAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetAppProfile. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested app profile. Values are of the - # form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - class GetAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListAppProfiles. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which a list of app profiles - # is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - # e.g., `projects/myproject/instances/-`. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListAppProfilesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListAppProfiles. - # @!attribute [rw] app_profiles - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AppProfile>] - # The list of requested app profiles. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all app profiles could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - # @!attribute [rw] failed_locations - # @return [::Array<::String>] - # Locations from which AppProfile information could not be retrieved, - # due to an outage or some other transient condition. - # AppProfiles from these locations may be missing from `app_profiles`. - # Values are of the form `projects//locations/` - class ListAppProfilesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateAppProfile. - # @!attribute [rw] app_profile - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile] - # Required. The app profile which will (partially) replace the current value. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The subset of app profile fields which should be replaced. - # If unset, all fields will be replaced. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # If true, ignore safety checks when updating the app profile. - class UpdateAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteAppProfile. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the app profile to be deleted. Values are of - # the form - # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Required. If true, ignore safety checks when deleting the app profile. - class DeleteAppProfileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateAppProfile. - class UpdateAppProfileMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListHotTablets. - # @!attribute [rw] parent - # @return [::String] - # Required. The cluster name to list hot tablets. - # Value is in the following form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The start time to list hot tablets. The hot tablets in the response will - # have start times between the requested start time and end time. Start time - # defaults to Now if it is unset, and end time defaults to Now - 24 hours if - # it is unset. The start time should be less than the end time, and the - # maximum allowed time range between start time and end time is 48 hours. - # Start time and end time should have values between Now and Now - 14 days. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # The end time to list hot tablets. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size that is empty or zero lets the server choose the number of - # items to return. A page_size which is strictly positive will return at most - # that many items. A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls do not need a - # page_size field. If a page_size is set in subsequent calls, it must match - # the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListHotTabletsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListHotTablets. - # @!attribute [rw] hot_tablets - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::HotTablet>] - # List of hot tablets in the tables of the requested cluster that fall - # within the requested time range. Hot tablets are ordered by node cpu usage - # percent. If there are multiple hot tablets that correspond to the same - # tablet within a 15-minute interval, only the hot tablet with the highest - # node cpu usage will be included in the response. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all hot tablets could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListHotTabletsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateLogicalView. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent instance where this logical view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @!attribute [rw] logical_view_id - # @return [::String] - # Required. The ID to use for the logical view, which will become the final - # component of the logical view's resource name. - # @!attribute [rw] logical_view - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # Required. The logical view to create. - class CreateLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateLogicalView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest] - # The request that prompted the initiation of this CreateLogicalView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateLogicalViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetLogicalView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested logical view. Values are of the - # form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - class GetLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListLogicalViews. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which the list of logical - # views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of logical views to return. The service may - # return fewer than this value - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListLogicalViews` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListLogicalViews` must - # match the call that provided the page token. - class ListLogicalViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListLogicalViews. - # @!attribute [rw] logical_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::LogicalView>] - # The list of requested logical views. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListLogicalViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateLogicalView. - # @!attribute [rw] logical_view - # @return [::Google::Cloud::Bigtable::Admin::V2::LogicalView] - # Required. The logical view to update. - # - # The logical view's `name` field is used to identify the view to update. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - class UpdateLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateLogicalView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest] - # The request that prompted the initiation of this UpdateLogicalView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation was started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateLogicalViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteLogicalView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the logical view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the logical view. - # If an etag is provided and does not match the current etag of the - # logical view, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteLogicalViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.CreateMaterializedView. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent instance where this materialized view will be created. - # Format: `projects/{project}/instances/{instance}`. - # @!attribute [rw] materialized_view_id - # @return [::String] - # Required. The ID to use for the materialized view, which will become the - # final component of the materialized view's resource name. - # @!attribute [rw] materialized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # Required. The materialized view to create. - class CreateMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateMaterializedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest] - # The request that prompted the initiation of this CreateMaterializedView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateMaterializedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.GetMaterializedView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested materialized view. Values are of - # the form - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - class GetMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.ListMaterializedViews. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which the list of - # materialized views is requested. Values are of the form - # `projects/{project}/instances/{instance}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of materialized views to return. The service - # may return fewer than this value - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListMaterializedViews` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListMaterializedViews` - # must match the call that provided the page token. - class ListMaterializedViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BigtableInstanceAdmin.ListMaterializedViews. - # @!attribute [rw] materialized_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::MaterializedView>] - # The list of requested materialized views. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListMaterializedViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.UpdateMaterializedView. - # @!attribute [rw] materialized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::MaterializedView] - # Required. The materialized view to update. - # - # The materialized view's `name` field is used to identify the view to - # update. Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - class UpdateMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by UpdateMaterializedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest] - # The request that prompted the initiation of this UpdateMaterializedView - # operation. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation was started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateMaterializedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BigtableInstanceAdmin.DeleteMaterializedView. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the materialized view to be deleted. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the materialized view. - # If an etag is provided and does not match the current etag of the - # materialized view, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteMaterializedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb deleted file mode 100644 index cde156ec6152..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb +++ /dev/null @@ -1,1167 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the instance in which to create the restored - # table. Values are of the form `projects//instances/`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The id of the table to create and restore to. This - # table must not already exist. The `table_id` appended to - # `parent` forms the full table name of the form - # `projects//instances//tables/`. - # @!attribute [rw] backup - # @return [::String] - # Name of the backup from which to restore. Values are of the form - # `projects//instances//clusters//backups/`. - class RestoreTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the long-running operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable}. - # @!attribute [rw] name - # @return [::String] - # Name of the table being created and restored to. - # @!attribute [rw] source_type - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] - # The type of the restore source. - # @!attribute [rw] backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # @!attribute [rw] optimize_table_operation_name - # @return [::String] - # If exists, the name of the long-running operation that will be used to - # track the post-restore optimization process to optimize the performance of - # the restored table. The metadata type of the long-running operation is - # [OptimizeRestoreTableMetadata][]. The response type is - # {::Google::Protobuf::Empty Empty}. This long-running operation may be - # automatically created by the system if applicable after the - # RestoreTable long-running operation completes successfully. This operation - # may not be created if the table is already optimized or the restore was - # not successful. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table RestoreTable} - # operation. - class RestoreTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the long-running operation used to track the progress - # of optimizations performed on a newly restored table. This long-running - # operation is automatically created by the system after the successful - # completion of a table restore, and cannot be cancelled. - # @!attribute [rw] name - # @return [::String] - # Name of the restored table being optimized. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the post-restore optimizations. - class OptimizeRestoredTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table google.bigtable.admin.v2.BigtableTableAdmin.CreateTable} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # Maximum 50 characters. - # @!attribute [rw] table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Required. The Table to create. - # @!attribute [rw] initial_splits - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split>] - # The optional list of row keys that will be used to initially split the - # table into several tablets (tablets are similar to HBase regions). - # Given two split keys, `s1` and `s2`, three tablets will be created, - # spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - # - # Example: - # - # * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - # `"other", "zz"]` - # * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - # * Key assignment: - # - Tablet 1 `[, apple) => {"a"}.` - # - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - # - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - # - Tablet 4 `[customer_2, other) => {"customer_2"}.` - # - Tablet 5 `[other, ) => {"other", "zz"}.` - class CreateTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # An initial split point for a newly created table. - # @!attribute [rw] key - # @return [::String] - # Row key to use as an initial tablet boundary. - class Split - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance in which to create the table. - # Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] table_id - # @return [::String] - # Required. The name by which the new table should be referred to within the - # parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - # @!attribute [rw] source_snapshot - # @return [::String] - # Required. The unique name of the snapshot from which to restore the table. - # The snapshot and the table must be in the same instance. Values are of the - # form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class CreateTableFromSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table on which to drop a range of rows. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] row_key_prefix - # @return [::String] - # Delete all rows that start with this row key prefix. Prefix cannot be - # zero length. - # - # Note: The following fields are mutually exclusive: `row_key_prefix`, `delete_all_data_from_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delete_all_data_from_table - # @return [::Boolean] - # Delete all rows in the table. Setting this to false is a no-op. - # - # Note: The following fields are mutually exclusive: `delete_all_data_from_table`, `row_key_prefix`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class DropRowRangeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the instance for which tables should be - # listed. Values are of the form `projects/{project}/instances/{instance}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned tables' fields. - # NAME_ONLY view (default) and REPLICATION_VIEW are supported. - # @!attribute [rw] page_size - # @return [::Integer] - # Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListTablesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables google.bigtable.admin.v2.BigtableTableAdmin.ListTables} - # @!attribute [rw] tables - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Table>] - # The tables present in the requested instance. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all tables could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListTablesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table google.bigtable.admin.v2.BigtableTableAdmin.GetTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested table. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::View] - # The view to be applied to the returned table's fields. - # Defaults to `SCHEMA_VIEW` if unspecified. - class GetTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. - # @!attribute [rw] table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Required. The table to update. - # The table's `name` field is used to identify the table to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to update. - # A mask specifying which fields (e.g. `change_stream_config`) in the `table` - # field should be updated. This mask is relative to the `table` field, not to - # the request message. The wildcard (*) path is currently not supported. - # Currently UpdateTable is only supported for the following fields: - # - # * `change_stream_config` - # * `change_stream_config.retention_period` - # * `deletion_protection` - # * `row_key_schema` - # - # If `column_families` is set in `update_mask`, it will return an - # UNIMPLEMENTED error. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore safety checks when updating the table. - class UpdateTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table UpdateTable}. - # @!attribute [rw] name - # @return [::String] - # The name of the table being updated. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class DeleteTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to be restored. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class UndeleteTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable}. - # @!attribute [rw] name - # @return [::String] - # The name of the table being restored. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was cancelled. - class UndeleteTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table whose families should be modified. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] modifications - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>] - # Required. Modifications to be atomically applied to the specified table's - # families. Entries are applied in order, meaning that earlier modifications - # can be masked by later ones (in the case of repeated updates to the same - # family, for example). - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore safety checks when modifying the column families. - class ModifyColumnFamiliesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A create, update, or delete of a particular column family. - # @!attribute [rw] id - # @return [::String] - # The ID of the column family to be modified. - # @!attribute [rw] create - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - # Create a new column family with the specified schema, or fail if - # one already exists with the given ID. - # - # Note: The following fields are mutually exclusive: `create`, `update`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] update - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - # Update an existing column family to the specified schema, or fail - # if no column family exists with the given ID. - # - # Note: The following fields are mutually exclusive: `update`, `create`, `drop`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] drop - # @return [::Boolean] - # Drop (delete) the column family with the given ID, or fail if no such - # family exists. - # - # Note: The following fields are mutually exclusive: `drop`, `create`, `update`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` - # mod should be updated, ignored for other modification types. If unset or - # empty, we treat it as updating `gc_rule` to be backward compatible. - class Modification - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the Table for which to create a consistency - # token. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - class GenerateConsistencyTokenRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken} - # @!attribute [rw] consistency_token - # @return [::String] - # The generated consistency token. - class GenerateConsistencyTokenResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the Table for which to check replication - # consistency. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] consistency_token - # @return [::String] - # Required. The token created using GenerateConsistencyToken for the Table. - # @!attribute [rw] standard_read_remote_writes - # @return [::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites] - # Checks that reads using an app profile with `StandardIsolation` can - # see all writes committed before the token was created, even if the - # read and write target different clusters. - # - # Note: The following fields are mutually exclusive: `standard_read_remote_writes`, `data_boost_read_local_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_boost_read_local_writes - # @return [::Google::Cloud::Bigtable::Admin::V2::DataBoostReadLocalWrites] - # Checks that reads using an app profile with `DataBoostIsolationReadOnly` - # can see all writes committed before the token was created, but only if - # the read and write target the same cluster. - # - # Note: The following fields are mutually exclusive: `data_boost_read_local_writes`, `standard_read_remote_writes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class CheckConsistencyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Checks that all writes before the consistency token was generated are - # replicated in every cluster and readable. - class StandardReadRemoteWrites - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Checks that all writes before the consistency token was generated in the same - # cluster are readable by Databoost. - class DataBoostReadLocalWrites - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency} - # @!attribute [rw] consistent - # @return [::Boolean] - # True only if the token is consistent. A token is consistent if replication - # has caught up with the restrictions specified in the request. - class CheckConsistencyResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the table to have the snapshot taken. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] cluster - # @return [::String] - # Required. The name of the cluster where the snapshot will be created in. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] snapshot_id - # @return [::String] - # Required. The ID by which the new snapshot should be referred to within the - # parent cluster, e.g., `mysnapshot` of the form: - # `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - # @!attribute [rw] ttl - # @return [::Google::Protobuf::Duration] - # The amount of time that the new snapshot can stay active after it is - # created. Once 'ttl' expires, the snapshot will get deleted. The maximum - # amount of time a snapshot can stay active is 7 days. If 'ttl' is not - # specified, the default value of 24 hours will be used. - # @!attribute [rw] description - # @return [::String] - # Description of the snapshot. - class SnapshotTableRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class GetSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the cluster for which snapshots should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of snapshots to return per page. - # CURRENTLY UNIMPLEMENTED AND IGNORED. - # @!attribute [rw] page_token - # @return [::String] - # The value of `next_page_token` returned by a previous call. - class ListSnapshotsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] snapshots - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Snapshot>] - # The snapshots present in the requested cluster. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all snapshots could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListSnapshotsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot} - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the snapshot to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - class DeleteSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by SnapshotTable. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest] - # The request that prompted the initiation of this SnapshotTable operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class SnapshotTableMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateTableFromSnapshot. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest] - # The request that prompted the initiation of this CreateTableFromSnapshot - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateTableFromSnapshotMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. - # @!attribute [rw] parent - # @return [::String] - # Required. This must be one of the clusters in the instance in which this - # table is located. The backup will be stored in this cluster. Values are - # of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] backup_id - # @return [::String] - # Required. The id of the backup to be created. The `backup_id` along with - # the parent `parent` are combined as \\{parent}/backups/\\{backup_id} to create - # the full backup name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @!attribute [rw] backup - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # Required. The backup to create. - class CreateBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}. - # @!attribute [rw] name - # @return [::String] - # The name of the backup being created. - # @!attribute [rw] source_table - # @return [::String] - # The name of the table the backup is created from. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was cancelled. - class CreateBackupMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup UpdateBackup}. - # @!attribute [rw] backup - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup] - # Required. The backup to update. `backup.name`, and the fields to be updated - # as specified by `update_mask` are required. Other fields are ignored. - # Update is only supported for the following fields: - # - # * `backup.expire_time`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. A mask specifying which fields (e.g. `expire_time`) in the - # Backup resource should be updated. This mask is relative to the Backup - # resource, not to the request message. The field mask must always be - # specified; this prevents any future fields from being erased accidentally - # by clients that do not know about them. - class UpdateBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup GetBackup}. - # @!attribute [rw] name - # @return [::String] - # Required. Name of the backup. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - class GetBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup DeleteBackup}. - # @!attribute [rw] name - # @return [::String] - # Required. Name of the backup to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - class DeleteBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. - # @!attribute [rw] parent - # @return [::String] - # Required. The cluster to list backups from. Values are of the - # form `projects/{project}/instances/{instance}/clusters/{cluster}`. - # Use `{cluster} = '-'` to list backups for all clusters in an instance, - # e.g., `projects/{project}/instances/{instance}/clusters/-`. - # @!attribute [rw] filter - # @return [::String] - # A filter expression that filters backups listed in the response. - # The expression must specify the field name, a comparison operator, - # and the value that you want to use for filtering. The value must be a - # string, a number, or a boolean. The comparison operator must be - # <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - # roughly synonymous with equality. Filter rules are case insensitive. - # - # The fields eligible for filtering are: - # - # * `name` - # * `source_table` - # * `state` - # * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - # * `size_bytes` - # - # To filter on multiple expressions, provide each separate expression within - # parentheses. By default, each expression is an AND expression. However, - # you can include AND, OR, and NOT expressions explicitly. - # - # Some examples of using filters are: - # - # * `name:"exact"` --> The backup's name is the string "exact". - # * `name:howl` --> The backup's name contains the string "howl". - # * `source_table:prod` - # --> The source_table's name contains the string "prod". - # * `state:CREATING` --> The backup is pending creation. - # * `state:READY` --> The backup is fully created and ready for use. - # * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - # --> The backup name contains the string "howl" and start_time - # of the backup is before 2018-03-28T14:50:00Z. - # * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - # @!attribute [rw] order_by - # @return [::String] - # An expression for specifying the sort order of the results of the request. - # The string value should specify one or more fields in - # {::Google::Cloud::Bigtable::Admin::V2::Backup Backup}. The full syntax is described at - # https://aip.dev/132#ordering. - # - # Fields supported are: - # - # * name - # * source_table - # * expire_time - # * start_time - # * end_time - # * size_bytes - # * state - # - # For example, "start_time". The default sorting order is ascending. - # To specify descending order for the field, a suffix " desc" should - # be appended to the field name. For example, "start_time desc". - # Redundant space characters in the syntax are insigificant. - # - # If order_by is empty, results will be sorted by `start_time` in descending - # order starting from the most recently created backup. - # @!attribute [rw] page_size - # @return [::Integer] - # Number of backups to be returned in the response. If 0 or - # less, defaults to the server's maximum allowed page size. - # @!attribute [rw] page_token - # @return [::String] - # If non-empty, `page_token` should contain a - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse#next_page_token next_page_token} - # from a previous - # {::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse ListBackupsResponse} to the - # same `parent` and with the same `filter`. - class ListBackupsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups}. - # @!attribute [rw] backups - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Backup>] - # The list of matching backups. - # @!attribute [rw] next_page_token - # @return [::String] - # `next_page_token` can be sent in a subsequent - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups ListBackups} call - # to fetch more of the matching backups. - class ListBackupsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the destination cluster that will contain the backup - # copy. The cluster must already exist. Values are of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] backup_id - # @return [::String] - # Required. The id of the new backup. The `backup_id` along with `parent` - # are combined as \\{parent}/backups/\\{backup_id} to create the full backup - # name, of the form: - # `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - # This string must be between 1 and 50 characters in length and match the - # regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - # @!attribute [rw] source_backup - # @return [::String] - # Required. The source backup to be copied from. - # The source backup needs to be in READY state for it to be copied. - # Copying a copied backup is not allowed. - # Once CopyBackup is in progress, the source backup cannot be deleted or - # cleaned up on expiration until CopyBackup is finished. - # Values are of the form: - # `projects//instances//clusters//backups/`. - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # Required. Required. The expiration time of the copied backup with - # microsecond granularity that must be at least 6 hours and at most 30 days - # from the time the request is received. Once the `expire_time` has - # passed, Cloud Bigtable will delete the backup and free the resources used - # by the backup. - class CopyBackupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata type for the google.longrunning.Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup}. - # @!attribute [rw] name - # @return [::String] - # The name of the backup being created through the copy operation. - # Values are of the form - # `projects//instances//clusters//backups/`. - # @!attribute [rw] source_backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # Information about the source backup that is being copied from. - # @!attribute [rw] progress - # @return [::Google::Cloud::Bigtable::Admin::V2::OperationProgress] - # The progress of the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup CopyBackup} - # operation. - class CopyBackupMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view CreateAuthorizedView} - # @!attribute [rw] parent - # @return [::String] - # Required. This is the name of the table the AuthorizedView belongs to. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] authorized_view_id - # @return [::String] - # Required. The id of the AuthorizedView to create. This AuthorizedView must - # not already exist. The `authorized_view_id` appended to `parent` forms the - # full AuthorizedView name of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - # @!attribute [rw] authorized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # Required. The AuthorizedView to create. - class CreateAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by CreateAuthorizedView. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest] - # The request that prompted the initiation of this CreateAuthorizedView - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class CreateAuthorizedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} - # @!attribute [rw] parent - # @return [::String] - # Required. The unique name of the table for which AuthorizedViews should be - # listed. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of results per page. - # - # A page_size of zero lets the server choose the number of items to return. - # A page_size which is strictly positive will return at most that many items. - # A negative page_size will cause an error. - # - # Following the first request, subsequent paginated calls are not required - # to pass a page_size. If a page_size is set in subsequent calls, it must - # match the page_size given in the first request. - # @!attribute [rw] page_token - # @return [::String] - # Optional. The value of `next_page_token` returned by a previous call. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedViews' - # fields. Default to NAME_ONLY. - class ListAuthorizedViewsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews} - # @!attribute [rw] authorized_views - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::AuthorizedView>] - # The AuthorizedViews present in the requested table. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if not all tables could be returned in a single response. - # Pass this value to `page_token` in another request to get the next - # page of results. - class ListAuthorizedViewsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the requested AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::ResponseView] - # Optional. The resource_view to be applied to the returned AuthorizedView's - # fields. Default to BASIC. - class GetAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. - # @!attribute [rw] authorized_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView] - # Required. The AuthorizedView to update. The `name` in `authorized_view` is - # used to identify the AuthorizedView. AuthorizedView name must in this - # format: - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - # A mask specifying which fields in the AuthorizedView resource should be - # updated. This mask is relative to the AuthorizedView resource, not to the - # request message. A field will be overwritten if it is in the mask. If - # empty, all fields set in the request will be overwritten. A special value - # `*` means to overwrite all fields (including fields not set in the - # request). - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If true, ignore the safety checks when updating the - # AuthorizedView. - class UpdateAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for the google.longrunning.Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view UpdateAuthorizedView}. - # @!attribute [rw] original_request - # @return [::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest] - # The request that prompted the initiation of this UpdateAuthorizedView - # operation. - # @!attribute [rw] request_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the original request was received. - # @!attribute [rw] finish_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the operation failed or was completed successfully. - class UpdateAuthorizedViewMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView} - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the AuthorizedView to be deleted. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - # @!attribute [rw] etag - # @return [::String] - # Optional. The current etag of the AuthorizedView. - # If an etag is provided and does not match the current etag of the - # AuthorizedView, deletion will be blocked and an ABORTED error will be - # returned. - class DeleteAuthorizedViewRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource where this schema bundle will be created. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # Required. The unique ID to use for the schema bundle, which will become the - # final component of the schema bundle's resource name. - # @!attribute [rw] schema_bundle - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # Required. The schema bundle to create. - class CreateSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle CreateSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class CreateSchemaBundleMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. - # @!attribute [rw] schema_bundle - # @return [::Google::Cloud::Bigtable::Admin::V2::SchemaBundle] - # Required. The schema bundle to update. - # - # The schema bundle's `name` field is used to identify the schema bundle to - # update. Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. - # @!attribute [rw] ignore_warnings - # @return [::Boolean] - # Optional. If set, ignore the safety checks when updating the Schema Bundle. - # The safety checks are: - # - The new Schema Bundle is backwards compatible with the existing Schema - # Bundle. - class UpdateSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The metadata for the Operation returned by - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle UpdateSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time at which this operation started. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation finished or was canceled. - class UpdateSchemaBundleMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle GetSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the schema bundle to retrieve. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - class GetSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent, which owns this collection of schema bundles. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}`. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of schema bundles to return. If the value is positive, - # the server may return at most this value. If unspecified, the server will - # return the maximum allowed page size. - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListSchemaBundles` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListSchemaBundles` must - # match the call that provided the page token. - class ListSchemaBundlesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles ListSchemaBundles}. - # @!attribute [rw] schema_bundles - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::SchemaBundle>] - # The schema bundles from the specified table. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListSchemaBundlesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle DeleteSchemaBundle}. - # @!attribute [rw] name - # @return [::String] - # Required. The unique name of the schema bundle to delete. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag of the schema bundle. - # If this is provided, it must match the server's etag. The server - # returns an ABORTED error on a mismatched etag. - class DeleteSchemaBundleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb deleted file mode 100644 index 09fe845b5e8c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/common.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Encapsulates progress related information for a Cloud Bigtable long - # running operation. - # @!attribute [rw] progress_percent - # @return [::Integer] - # Percent completion of the operation. - # Values are between 0 and 100 inclusive. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Time the request was received. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # If set, the time at which this operation failed or was completed - # successfully. - class OperationProgress - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Storage media types for persisting Bigtable data. - module StorageType - # The user did not specify a storage type. - STORAGE_TYPE_UNSPECIFIED = 0 - - # Flash (SSD) storage should be used. - SSD = 1 - - # Magnetic drive (HDD) storage should be used. - HDD = 2 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb deleted file mode 100644 index d9c14a8aa662..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/instance.rb +++ /dev/null @@ -1,546 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # A collection of Bigtable {::Google::Cloud::Bigtable::Admin::V2::Table Tables} and - # the resources that serve them. - # All tables in an instance are served from all - # {::Google::Cloud::Bigtable::Admin::V2::Cluster Clusters} in the instance. - # @!attribute [rw] name - # @return [::String] - # The unique name of the instance. Values are of the form - # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - # @!attribute [rw] display_name - # @return [::String] - # Required. The descriptive name for this instance as it appears in UIs. - # Can be changed at any time, but should be kept globally unique - # to avoid confusion. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::State] - # Output only. The current state of the instance. - # @!attribute [rw] type - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Type] - # The type of the instance. Defaults to `PRODUCTION`. - # @!attribute [rw] edition - # @return [::Google::Cloud::Bigtable::Admin::V2::Instance::Edition] - # Optional. The edition of the instance. See - # {::Google::Cloud::Bigtable::Admin::V2::Instance::Edition Edition} for details. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Labels are a flexible and lightweight mechanism for organizing cloud - # resources into groups that reflect a customer's organizational needs and - # deployment strategies. They can be used to filter resources and aggregate - # metrics. - # - # * Label keys must be between 1 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - # * Label values must be between 0 and 63 characters long and must conform to - # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - # * No more than 64 labels can be associated with a given resource. - # * Keys and values must both be under 128 bytes. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. A commit timestamp representing when this Instance was - # created. For instances created before this field was added (August 2021), - # this value is `seconds: 0, nanos: 1`. - # @!attribute [r] satisfies_pzs - # @return [::Boolean] - # Output only. Reserved for future use. - # @!attribute [r] satisfies_pzi - # @return [::Boolean] - # Output only. Reserved for future use. - # @!attribute [rw] tags - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Input only. Immutable. Tag keys/values directly bound to this - # resource. For example: - # - "123/environment": "production", - # - "123/costCenter": "marketing" - # - # Tags and Labels (above) are both used to bind metadata to resources, with - # different use-cases. See - # https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - # in-depth overview on the difference between tags and labels. - class Instance - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TagsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible states of an instance. - module State - # The state of the instance could not be determined. - STATE_NOT_KNOWN = 0 - - # The instance has been successfully created and can serve requests - # to its tables. - READY = 1 - - # The instance is currently being created, and may be destroyed - # if the creation process encounters an error. - CREATING = 2 - end - - # The type of the instance. - module Type - # The type of the instance is unspecified. If set when creating an - # instance, a `PRODUCTION` instance will be created. If set when updating - # an instance, the type will be left unchanged. - TYPE_UNSPECIFIED = 0 - - # An instance meant for production use. `serve_nodes` must be set - # on the cluster. - PRODUCTION = 1 - - # DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces - # a higher minimum node count than DEVELOPMENT. - DEVELOPMENT = 2 - end - - # Possible editions of an instance. - # - # An edition is a specific tier of Cloud Bigtable. Each edition is tailored - # to different customer needs. Higher tiers offer more features and better - # performance. - module Edition - # The edition is unspecified. This is treated as `ENTERPRISE`. - EDITION_UNSPECIFIED = 0 - - # The Enterprise edition. This is the default offering that is designed to - # meet the needs of most enterprise workloads. - ENTERPRISE = 1 - - # The Enterprise Plus edition. This is a premium tier that is designed for - # demanding, multi-tenant workloads requiring the highest levels of - # performance, scale, and global availability. - # - # The nodes in the Enterprise Plus tier come at a higher cost than the - # Enterprise tier. Any Enterprise Plus features must be disabled before - # downgrading to Enterprise. - ENTERPRISE_PLUS = 2 - end - end - - # The Autoscaling targets for a Cluster. These determine the recommended nodes. - # @!attribute [rw] cpu_utilization_percent - # @return [::Integer] - # The cpu utilization that the Autoscaler should be trying to achieve. - # This number is on a scale from 0 (no utilization) to - # 100 (total utilization), and is limited between 10 and 80, otherwise it - # will return INVALID_ARGUMENT error. - # @!attribute [rw] storage_utilization_gib_per_node - # @return [::Integer] - # The storage utilization that the Autoscaler should be trying to achieve. - # This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD - # cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, - # otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, - # it will be treated as if it were set to the default value: 2560 for SSD, - # 8192 for HDD. - class AutoscalingTargets - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Limits for the number of nodes a Cluster can autoscale up/down to. - # @!attribute [rw] min_serve_nodes - # @return [::Integer] - # Required. Minimum number of nodes to scale down to. - # @!attribute [rw] max_serve_nodes - # @return [::Integer] - # Required. Maximum number of nodes to scale up to. - class AutoscalingLimits - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resizable group of nodes in a particular cloud location, capable - # of serving all {::Google::Cloud::Bigtable::Admin::V2::Table Tables} in the parent - # {::Google::Cloud::Bigtable::Admin::V2::Instance Instance}. - # @!attribute [rw] name - # @return [::String] - # The unique name of the cluster. Values are of the form - # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - # @!attribute [rw] location - # @return [::String] - # Immutable. The location where this cluster's nodes and storage reside. For - # best performance, clients should be located as close as possible to this - # cluster. Currently only zones are supported, so values should be of the - # form `projects/{project}/locations/{zone}`. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::State] - # Output only. The current state of the cluster. - # @!attribute [rw] serve_nodes - # @return [::Integer] - # The number of nodes in the cluster. If no value is set, - # Cloud Bigtable automatically allocates nodes based on your data footprint - # and optimized for 50% storage utilization. - # @!attribute [rw] node_scaling_factor - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::NodeScalingFactor] - # Immutable. The node scaling factor of this cluster. - # @!attribute [rw] cluster_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig] - # Configuration for this cluster. - # @!attribute [rw] default_storage_type - # @return [::Google::Cloud::Bigtable::Admin::V2::StorageType] - # Immutable. The type of storage used by this cluster to serve its - # parent instance's tables, unless explicitly overridden. - # @!attribute [rw] encryption_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig] - # Immutable. The encryption configuration for CMEK-protected clusters. - class Cluster - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Autoscaling config for a cluster. - # @!attribute [rw] autoscaling_limits - # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingLimits] - # Required. Autoscaling limits for this cluster. - # @!attribute [rw] autoscaling_targets - # @return [::Google::Cloud::Bigtable::Admin::V2::AutoscalingTargets] - # Required. Autoscaling targets for this cluster. - class ClusterAutoscalingConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Configuration for a cluster. - # @!attribute [rw] cluster_autoscaling_config - # @return [::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterAutoscalingConfig] - # Autoscaling configuration for this cluster. - class ClusterConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected - # cluster. - # @!attribute [rw] kms_key_name - # @return [::String] - # Describes the Cloud KMS encryption key that will be used to protect the - # destination Bigtable cluster. The requirements for this key are: - # 1) The Cloud Bigtable service account associated with the project that - # contains this cluster must be granted the - # `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. - # 2) Only regional keys can be used and the region of the CMEK key must - # match the region of the cluster. - # Values are of the form - # `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` - class EncryptionConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible states of a cluster. - module State - # The state of the cluster could not be determined. - STATE_NOT_KNOWN = 0 - - # The cluster has been successfully created and is ready to serve requests. - READY = 1 - - # The cluster is currently being created, and may be destroyed - # if the creation process encounters an error. - # A cluster may not be able to serve requests while being created. - CREATING = 2 - - # The cluster is currently being resized, and may revert to its previous - # node count if the process encounters an error. - # A cluster is still capable of serving requests while being resized, - # but may exhibit performance as if its number of allocated nodes is - # between the starting and requested states. - RESIZING = 3 - - # The cluster has no backing nodes. The data (tables) still - # exist, but no operations can be performed on the cluster. - DISABLED = 4 - end - - # Possible node scaling factors of the clusters. Node scaling delivers better - # latency and more throughput by removing node boundaries. - module NodeScalingFactor - # No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. - NODE_SCALING_FACTOR_UNSPECIFIED = 0 - - # The cluster is running with a scaling factor of 1. - NODE_SCALING_FACTOR_1X = 1 - - # The cluster is running with a scaling factor of 2. - # All node count values must be in increments of 2 with this scaling factor - # enabled, otherwise an INVALID_ARGUMENT error will be returned. - NODE_SCALING_FACTOR_2X = 2 - end - end - - # A configuration object describing how Cloud Bigtable should treat traffic - # from a particular end user application. - # @!attribute [rw] name - # @return [::String] - # The unique name of the app profile. Values are of the form - # `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # @!attribute [rw] etag - # @return [::String] - # Strongly validated etag for optimistic concurrency control. Preserve the - # value returned from `GetAppProfile` when calling `UpdateAppProfile` to - # fail the request if there has been a modification in the mean time. The - # `update_mask` of the request need not include `etag` for this protection - # to apply. - # See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and - # [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more - # details. - # @!attribute [rw] description - # @return [::String] - # Long form description of the use case for this AppProfile. - # @!attribute [rw] multi_cluster_routing_use_any - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny] - # Use a multi-cluster routing policy. - # - # Note: The following fields are mutually exclusive: `multi_cluster_routing_use_any`, `single_cluster_routing`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] single_cluster_routing - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting] - # Use a single-cluster routing policy. - # - # Note: The following fields are mutually exclusive: `single_cluster_routing`, `multi_cluster_routing_use_any`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] priority - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] - # This field has been deprecated in favor of `standard_isolation.priority`. - # If you set this field, `standard_isolation.priority` will be set instead. - # - # The priority of requests sent using this app profile. - # - # Note: The following fields are mutually exclusive: `priority`, `standard_isolation`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] standard_isolation - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::StandardIsolation] - # The standard options used for isolating this app profile's traffic from - # other use cases. - # - # Note: The following fields are mutually exclusive: `standard_isolation`, `priority`, `data_boost_isolation_read_only`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_boost_isolation_read_only - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly] - # Specifies that this app profile is intended for read-only usage via the - # Data Boost feature. - # - # Note: The following fields are mutually exclusive: `data_boost_isolation_read_only`, `priority`, `standard_isolation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class AppProfile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Read/write requests are routed to the nearest cluster in the instance, and - # will fail over to the nearest cluster that is available in the event of - # transient errors or delays. Clusters in a region are considered - # equidistant. Choosing this option sacrifices read-your-writes consistency - # to improve availability. - # @!attribute [rw] cluster_ids - # @return [::Array<::String>] - # The set of clusters to route to. The order is ignored; clusters will be - # tried in order of distance. If left empty, all clusters are eligible. - # @!attribute [rw] row_affinity - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny::RowAffinity] - # Row affinity sticky routing based on the row key of the request. - # Requests that span multiple rows are routed non-deterministically. - class MultiClusterRoutingUseAny - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # If enabled, Bigtable will route the request based on the row key of the - # request, rather than randomly. Instead, each row key will be assigned - # to a cluster, and will stick to that cluster. If clusters are added or - # removed, then this may affect which row keys stick to which clusters. - # To avoid this, users can use a cluster group to specify which clusters - # are to be used. In this case, new clusters that are not a part of the - # cluster group will not be routed to, and routing will be unaffected by - # the new cluster. Moreover, clusters specified in the cluster group cannot - # be deleted unless removed from the cluster group. - class RowAffinity - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Unconditionally routes all read/write requests to a specific cluster. - # This option preserves read-your-writes consistency but does not improve - # availability. - # @!attribute [rw] cluster_id - # @return [::String] - # The cluster to which read/write requests should be routed. - # @!attribute [rw] allow_transactional_writes - # @return [::Boolean] - # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are - # allowed by this app profile. It is unsafe to send these requests to - # the same table/row/column in multiple clusters. - class SingleClusterRouting - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Standard options for isolating this app profile's traffic from other use - # cases. - # @!attribute [rw] priority - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::Priority] - # The priority of requests sent using this app profile. - class StandardIsolation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data Boost is a serverless compute capability that lets you run - # high-throughput read jobs and queries on your Bigtable data, without - # impacting the performance of the clusters that handle your application - # traffic. Data Boost supports read-only use cases with single-cluster - # routing. - # @!attribute [rw] compute_billing_owner - # @return [::Google::Cloud::Bigtable::Admin::V2::AppProfile::DataBoostIsolationReadOnly::ComputeBillingOwner] - # The Compute Billing Owner for this Data Boost App Profile. - class DataBoostIsolationReadOnly - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Compute Billing Owner specifies how usage should be accounted when using - # Data Boost. Compute Billing Owner also configures which Cloud Project is - # charged for relevant quota. - module ComputeBillingOwner - # Unspecified value. - COMPUTE_BILLING_OWNER_UNSPECIFIED = 0 - - # The host Cloud Project containing the targeted Bigtable Instance / - # Table pays for compute. - HOST_PAYS = 1 - end - end - - # Possible priorities for an app profile. Note that higher priority writes - # can sometimes queue behind lower priority writes to the same tablet, as - # writes must be strictly sequenced in the durability log. - module Priority - # Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. - PRIORITY_UNSPECIFIED = 0 - - PRIORITY_LOW = 1 - - PRIORITY_MEDIUM = 2 - - PRIORITY_HIGH = 3 - end - end - - # A tablet is a defined by a start and end key and is explained in - # https://cloud.google.com/bigtable/docs/overview#architecture and - # https://cloud.google.com/bigtable/docs/performance#optimization. - # A Hot tablet is a tablet that exhibits high average cpu usage during the time - # interval from start time to end time. - # @!attribute [rw] name - # @return [::String] - # The unique name of the hot tablet. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. - # @!attribute [rw] table_name - # @return [::String] - # Name of the table that contains the tablet. Values are of the form - # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The start time of the hot tablet. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The end time of the hot tablet. - # @!attribute [rw] start_key - # @return [::String] - # Tablet Start Key (inclusive). - # @!attribute [rw] end_key - # @return [::String] - # Tablet End Key (inclusive). - # @!attribute [r] node_cpu_usage_percent - # @return [::Float] - # Output only. The average CPU usage spent by a node on this tablet over the - # start_time to end_time time range. The percentage is the amount of CPU used - # by the node to serve the tablet, from 0% (tablet was not interacted with) - # to 100% (the node spent all cycles serving the hot tablet). - class HotTablet - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A SQL logical view object that can be referenced in SQL queries. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name of the logical view. - # Format: - # `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - # @!attribute [rw] query - # @return [::String] - # Required. The logical view's select query. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this logical view. - # This may be sent on update requests to ensure that the client has an - # up-to-date value before proceeding. The server returns an ABORTED error on - # a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Optional. Set to true to make the LogicalView protected against deletion. - class LogicalView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A materialized view object that can be referenced in SQL queries. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name of the materialized view. - # Format: - # `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - # @!attribute [rw] query - # @return [::String] - # Required. Immutable. The materialized view's select query. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this materialized view. - # This may be sent on update requests to ensure that the client has an - # up-to-date value before proceeding. The server returns an ABORTED error on - # a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the MaterializedView protected against deletion. - class MaterializedView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb deleted file mode 100644 index a0aaeed8b974..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/table.rb +++ /dev/null @@ -1,741 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # Information about a table restore. - # @!attribute [rw] source_type - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreSourceType] - # The type of the restore source. - # @!attribute [rw] backup_info - # @return [::Google::Cloud::Bigtable::Admin::V2::BackupInfo] - # Information about the backup used to restore the table. The backup - # may no longer exist. - class RestoreInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Change stream configuration. - # @!attribute [rw] retention_period - # @return [::Google::Protobuf::Duration] - # How long the change stream should be retained. Change stream data older - # than the retention period will not be returned when reading the change - # stream from the table. - # Values must be at least 1 day and at most 7 days, and will be truncated to - # microsecond granularity. - class ChangeStreamConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A collection of user data indexed by row, column, and timestamp. - # Each table is served using the resources of its parent cluster. - # @!attribute [rw] name - # @return [::String] - # The unique name of the table. Values are of the form - # `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` - # @!attribute [r] cluster_states - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState}] - # Output only. Map from cluster ID to per-cluster table state. - # If it could not be determined whether or not the table has data in a - # particular cluster (for example, if its zone is unavailable), then - # there will be an entry for the cluster with UNKNOWN `replication_status`. - # Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - # @!attribute [rw] column_families - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::ColumnFamily}] - # The column families configured for this table, mapped by column family ID. - # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` - # @!attribute [rw] granularity - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::TimestampGranularity] - # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored - # in this table. Timestamps not matching the granularity will be rejected. If - # unspecified at creation time, the value will be set to `MILLIS`. Views: - # `SCHEMA_VIEW`, `FULL`. - # @!attribute [r] restore_info - # @return [::Google::Cloud::Bigtable::Admin::V2::RestoreInfo] - # Output only. If this table was restored from another data source (e.g. a - # backup), this field will be populated with information about the restore. - # @!attribute [rw] change_stream_config - # @return [::Google::Cloud::Bigtable::Admin::V2::ChangeStreamConfig] - # If specified, enable the change stream on this table. - # Otherwise, the change stream is disabled and the change stream is not - # retained. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the table protected against data loss. i.e. deleting - # the following resources through Admin APIs are prohibited: - # - # * The table. - # * The column families in the table. - # * The instance containing the table. - # - # Note one can still delete the data stored in the table through Data APIs. - # @!attribute [rw] automated_backup_policy - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::AutomatedBackupPolicy] - # If specified, automated backups are enabled for this table. - # Otherwise, automated backups are disabled. - # @!attribute [rw] tiered_storage_config - # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageConfig] - # Rules to specify what data is stored in each storage tier. - # Different tiers store data differently, providing different trade-offs - # between cost and performance. Different parts of a table can be stored - # separately on different tiers. - # If a config is specified, tiered storage is enabled for this table. - # Otherwise, tiered storage is disabled. - # Only SSD instances can configure tiered storage. - # @!attribute [rw] row_key_schema - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] - # The row key schema for this table. The schema is used to decode the raw row - # key bytes into a structured format. The order of field declarations in this - # schema is important, as it reflects how the raw row key bytes are - # structured. Currently, this only affects how the key is read via a - # GoogleSQL query from the ExecuteQuery API. - # - # For a SQL query, the _key column is still read as raw bytes. But queries - # can reference the key fields by name, which will be decoded from _key using - # provided type and encoding. Queries that reference key fields will fail if - # they encounter an invalid row key. - # - # For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the - # following schema: - # { - # fields { - # field_name: "id" - # type { string { encoding: utf8_bytes \\{} } } - # } - # fields { - # field_name: "date" - # type { string { encoding: utf8_bytes \\{} } } - # } - # fields { - # field_name: "product_code" - # type { int64 { encoding: big_endian_bytes \\{} } } - # } - # encoding { delimited_bytes { delimiter: "#" } } - # } - # - # The decoded key parts would be: - # id = "some_id", date = "2024-04-30", product_code = 1245427 - # The query "SELECT _key, product_code FROM table" will return two columns: - # /------------------------------------------------------\ - # | _key | product_code | - # | --------------------------------------|--------------| - # | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | - # \------------------------------------------------------/ - # - # The schema has the following invariants: - # (1) The decoded field values are order-preserved. For read, the field - # values will be decoded in sorted mode from the raw bytes. - # (2) Every field in the schema must specify a non-empty name. - # (3) Every field must specify a type with an associated encoding. The type - # is limited to scalar types only: Array, Map, Aggregate, and Struct are not - # allowed. - # (4) The field names must not collide with existing column family - # names and reserved keywords "_key" and "_timestamp". - # - # The following update operations are allowed for row_key_schema: - # - Update from an empty schema to a new schema. - # - Remove the existing schema. This operation requires setting the - # `ignore_warnings` flag to `true`, since it might be a backward - # incompatible change. Without the flag, the update request will fail with - # an INVALID_ARGUMENT error. - # Any other row key schema update operation (e.g. update existing schema - # columns names or types) is currently unsupported. - class Table - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The state of a table's data in a particular cluster. - # @!attribute [r] replication_state - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState::ReplicationState] - # Output only. The state of replication for the table in this cluster. - # @!attribute [r] encryption_info - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo>] - # Output only. The encryption information for the table in this cluster. - # If the encryption key protecting this resource is customer managed, then - # its version can be rotated in Cloud Key Management Service (Cloud KMS). - # The primary version of the key and its status will be reflected here when - # changes propagate from Cloud KMS. - class ClusterState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Table replication states. - module ReplicationState - # The replication state of the table is unknown in this cluster. - STATE_NOT_KNOWN = 0 - - # The cluster was recently created, and the table must finish copying - # over pre-existing data from other clusters before it can begin - # receiving live replication updates and serving Data API requests. - INITIALIZING = 1 - - # The table is temporarily unable to serve Data API requests from this - # cluster due to planned internal maintenance. - PLANNED_MAINTENANCE = 2 - - # The table is temporarily unable to serve Data API requests from this - # cluster due to unplanned or emergency maintenance. - UNPLANNED_MAINTENANCE = 3 - - # The table can serve Data API requests from this cluster. Depending on - # replication delay, reads may not immediately reflect the state of the - # table in other clusters. - READY = 4 - - # The table is fully created and ready for use after a restore, and is - # being optimized for performance. When optimizations are complete, the - # table will transition to `READY` state. - READY_OPTIMIZING = 5 - end - end - - # Defines an automated backup policy for a table - # @!attribute [rw] retention_period - # @return [::Google::Protobuf::Duration] - # Required. How long the automated backups should be retained. Values must - # be at least 3 days and at most 90 days. - # @!attribute [rw] frequency - # @return [::Google::Protobuf::Duration] - # How frequently automated backups should occur. The only supported value - # at this time is 24 hours. An undefined frequency is treated as 24 hours. - # @!attribute [rw] locations - # @return [::Array<::String>] - # Optional. A list of Cloud Bigtable zones where automated backups are - # allowed to be created. If empty, automated backups will be created in all - # zones of the instance. Locations are in the format - # `projects/{project}/locations/{zone}`. - # This field can only set for tables in Enterprise Plus instances. - class AutomatedBackupPolicy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::Table::ClusterState] - class ClusterStatesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::ColumnFamily] - class ColumnFamiliesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Possible timestamp granularities to use when keeping multiple versions - # of data in a table. - module TimestampGranularity - # The user did not specify a granularity. Should not be returned. - # When specified during table creation, MILLIS will be used. - TIMESTAMP_GRANULARITY_UNSPECIFIED = 0 - - # The table keeps data versioned at a granularity of 1ms. - MILLIS = 1 - end - - # Defines a view over a table's fields. - module View - # Uses the default view for each method as documented in its request. - VIEW_UNSPECIFIED = 0 - - # Only populates `name`. - NAME_ONLY = 1 - - # Only populates `name` and fields related to the table's schema. - SCHEMA_VIEW = 2 - - # Only populates `name` and fields related to the table's replication - # state. - REPLICATION_VIEW = 3 - - # Only populates `name` and fields related to the table's encryption state. - ENCRYPTION_VIEW = 5 - - # Populates all fields. - FULL = 4 - end - end - - # AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users - # can configure access to each Authorized View independently from the table and - # use the existing Data APIs to access the subset of data. - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of this AuthorizedView. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - # @!attribute [rw] subset_view - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::SubsetView] - # An AuthorizedView permitting access to an explicit subset of a Table. - # @!attribute [rw] etag - # @return [::String] - # The etag for this AuthorizedView. - # If this is provided on update, it must match the server's etag. The server - # returns ABORTED error on a mismatched etag. - # @!attribute [rw] deletion_protection - # @return [::Boolean] - # Set to true to make the AuthorizedView protected against deletion. - # The parent Table and containing Instance cannot be deleted if an - # AuthorizedView has this bit set. - class AuthorizedView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Subsets of a column family that are included in this AuthorizedView. - # @!attribute [rw] qualifiers - # @return [::Array<::String>] - # Individual exact column qualifiers to be included in the AuthorizedView. - # @!attribute [rw] qualifier_prefixes - # @return [::Array<::String>] - # Prefixes for qualifiers to be included in the AuthorizedView. Every - # qualifier starting with one of these prefixes is included in the - # AuthorizedView. To provide access to all qualifiers, include the empty - # string as a prefix - # (""). - class FamilySubsets - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a simple AuthorizedView that is a subset of the underlying Table. - # @!attribute [rw] row_prefixes - # @return [::Array<::String>] - # Row prefixes to be included in the AuthorizedView. - # To provide access to all rows, include the empty string as a prefix (""). - # @!attribute [rw] family_subsets - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets}] - # Map from column family name to the columns in this family to be included - # in the AuthorizedView. - class SubsetView - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Bigtable::Admin::V2::AuthorizedView::FamilySubsets] - class FamilySubsetsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Defines a subset of an AuthorizedView's fields. - module ResponseView - # Uses the default view for each method as documented in the request. - RESPONSE_VIEW_UNSPECIFIED = 0 - - # Only populates `name`. - NAME_ONLY = 1 - - # Only populates the AuthorizedView's basic metadata. This includes: - # name, deletion_protection, etag. - BASIC = 2 - - # Populates every fields. - FULL = 3 - end - end - - # A set of columns within a table which share a common configuration. - # @!attribute [rw] gc_rule - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule] - # Garbage collection rule specified as a protobuf. - # Must serialize to at most 500 bytes. - # - # NOTE: Garbage collection executes opportunistically in the background, and - # so it's possible for reads to return a cell even if it matches the active - # GC expression for its family. - # @!attribute [rw] value_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of data stored in each of this family's cell values, including its - # full encoding. If omitted, the family only serves raw untyped bytes. - # - # For now, only the `Aggregate` type is supported. - # - # `Aggregate` can only be set at family creation and is immutable afterwards. - # - # - # If `value_type` is `Aggregate`, written data must be compatible with: - # * `value_type.input_type` for `AddInput` mutations - class ColumnFamily - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rule for determining which cells to delete during garbage collection. - # @!attribute [rw] max_num_versions - # @return [::Integer] - # Delete all cells in a column except the most recent N. - # - # Note: The following fields are mutually exclusive: `max_num_versions`, `max_age`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] max_age - # @return [::Google::Protobuf::Duration] - # Delete cells in a column older than the given age. - # Values must be at least one millisecond, and will be truncated to - # microsecond granularity. - # - # Note: The following fields are mutually exclusive: `max_age`, `max_num_versions`, `intersection`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] intersection - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Intersection] - # Delete cells that would be deleted by every nested rule. - # - # Note: The following fields are mutually exclusive: `intersection`, `max_num_versions`, `max_age`, `union`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] union - # @return [::Google::Cloud::Bigtable::Admin::V2::GcRule::Union] - # Delete cells that would be deleted by any nested rule. - # - # Note: The following fields are mutually exclusive: `union`, `max_num_versions`, `max_age`, `intersection`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class GcRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A GcRule which deletes cells matching all of the given rules. - # @!attribute [rw] rules - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] - # Only delete cells which would be deleted by every element of `rules`. - class Intersection - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A GcRule which deletes cells matching any of the given rules. - # @!attribute [rw] rules - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::GcRule>] - # Delete cells which would be deleted by any element of `rules`. - class Union - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Encryption information for a given resource. - # If this resource is protected with customer managed encryption, the in-use - # Cloud Key Management Service (Cloud KMS) key version is specified along with - # its status. - # @!attribute [r] encryption_type - # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo::EncryptionType] - # Output only. The type of encryption used to protect this resource. - # @!attribute [r] encryption_status - # @return [::Google::Rpc::Status] - # Output only. The status of encrypt/decrypt calls on underlying data for - # this resource. Regardless of status, the existing data is always encrypted - # at rest. - # @!attribute [r] kms_key_version - # @return [::String] - # Output only. The version of the Cloud KMS key specified in the parent - # cluster that is in use for the data underlying this table. - class EncryptionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible encryption types for a resource. - module EncryptionType - # Encryption type was not specified, though data at rest remains encrypted. - ENCRYPTION_TYPE_UNSPECIFIED = 0 - - # The data backing this resource is encrypted at rest with a key that is - # fully managed by Google. No key version or status will be populated. - # This is the default state. - GOOGLE_DEFAULT_ENCRYPTION = 1 - - # The data backing this resource is encrypted at rest with a key that is - # managed by the customer. - # The in-use version of the key and its status are populated for - # CMEK-protected tables. - # CMEK-protected backups are pinned to the key version that was in use at - # the time the backup was taken. This key version is populated but its - # status is not tracked and is reported as `UNKNOWN`. - CUSTOMER_MANAGED_ENCRYPTION = 2 - end - end - - # A snapshot of a table at a particular time. A snapshot can be used as a - # checkpoint for data restoration or a data source for a new table. - # - # Note: This is a private alpha release of Cloud Bigtable snapshots. This - # feature is not currently available to most Cloud Bigtable customers. This - # feature might be changed in backward-incompatible ways and is not recommended - # for production use. It is not subject to any SLA or deprecation policy. - # @!attribute [rw] name - # @return [::String] - # The unique name of the snapshot. - # Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - # @!attribute [r] source_table - # @return [::Google::Cloud::Bigtable::Admin::V2::Table] - # Output only. The source table at the time the snapshot was taken. - # @!attribute [r] data_size_bytes - # @return [::Integer] - # Output only. The size of the data in the source table at the time the - # snapshot was taken. In some cases, this value may be computed - # asynchronously via a background process and a placeholder of 0 will be used - # in the meantime. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time when the snapshot is created. - # @!attribute [rw] delete_time - # @return [::Google::Protobuf::Timestamp] - # The time when the snapshot will be deleted. The maximum amount of time a - # snapshot can stay active is 365 days. If 'ttl' is not specified, - # the default maximum of 365 days will be used. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Snapshot::State] - # Output only. The current state of the snapshot. - # @!attribute [rw] description - # @return [::String] - # Description of the snapshot. - class Snapshot - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible states of a snapshot. - module State - # The state of the snapshot could not be determined. - STATE_NOT_KNOWN = 0 - - # The snapshot has been successfully created and can serve all requests. - READY = 1 - - # The snapshot is currently being created, and may be destroyed if the - # creation process encounters an error. A snapshot may not be restored to a - # table while it is being created. - CREATING = 2 - end - end - - # A backup of a Cloud Bigtable table. - # @!attribute [rw] name - # @return [::String] - # A globally unique identifier for the backup which cannot be - # changed. Values are of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}/ - # backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - # The final segment of the name must be between 1 and 50 characters - # in length. - # - # The backup is stored in the cluster identified by the prefix of the backup - # name of the form - # `projects/{project}/instances/{instance}/clusters/{cluster}`. - # @!attribute [rw] source_table - # @return [::String] - # Required. Immutable. Name of the table from which this backup was created. - # This needs to be in the same instance as the backup. Values are of the form - # `projects/{project}/instances/{instance}/tables/{source_table}`. - # @!attribute [r] source_backup - # @return [::String] - # Output only. Name of the backup from which this backup was copied. If a - # backup is not created by copying a backup, this field will be empty. Values - # are of the form: - # projects//instances//clusters//backups/ - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # Required. The expiration time of the backup. - # When creating a backup or updating its `expire_time`, the value must be - # greater than the backup creation time by: - # - At least 6 hours - # - At most 90 days - # - # Once the `expire_time` has passed, Cloud Bigtable will delete the backup. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. `start_time` is the time that the backup was started - # (i.e. approximately the time the - # {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup} - # request is received). The row data in this backup will be no older than - # this timestamp. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. `end_time` is the time that the backup was finished. The row - # data in the backup will be no newer than this timestamp. - # @!attribute [r] size_bytes - # @return [::Integer] - # Output only. Size of the backup in bytes. - # @!attribute [r] state - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State] - # Output only. The current state of the backup. - # @!attribute [r] encryption_info - # @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo] - # Output only. The encryption information for the backup. - # @!attribute [rw] backup_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType] - # Indicates the backup type of the backup. - # @!attribute [rw] hot_to_standard_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the hot backup will be converted to a standard backup. - # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the - # hot backup to a standard backup. This value must be greater than the backup - # creation time by: - # - At least 24 hours - # - # This field only applies for hot backups. When creating or updating a - # standard backup, attempting to set this field will fail the request. - class Backup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the current state of the backup. - module State - # Not specified. - STATE_UNSPECIFIED = 0 - - # The pending backup is still being created. Operations on the - # backup may fail with `FAILED_PRECONDITION` in this state. - CREATING = 1 - - # The backup is complete and ready for use. - READY = 2 - end - - # The type of the backup. - module BackupType - # Not specified. - BACKUP_TYPE_UNSPECIFIED = 0 - - # The default type for Cloud Bigtable managed backups. Supported for - # backups created in both HDD and SSD instances. Requires optimization when - # restored to a table in an SSD instance. - STANDARD = 1 - - # A backup type with faster restore to SSD performance. Only supported for - # backups created in SSD instances. A new SSD table restored from a hot - # backup reaches production performance more quickly than a standard - # backup. - HOT = 2 - end - end - - # Information about a backup. - # @!attribute [r] backup - # @return [::String] - # Output only. Name of the backup. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time that the backup was started. Row data in the backup - # will be no older than this timestamp. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. This time that the backup was finished. Row data in the - # backup will be no newer than this timestamp. - # @!attribute [r] source_table - # @return [::String] - # Output only. Name of the table the backup was created from. - # @!attribute [r] source_backup - # @return [::String] - # Output only. Name of the backup from which this backup was copied. If a - # backup is not created by copying a backup, this field will be empty. Values - # are of the form: - # projects//instances//clusters//backups/ - class BackupInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Config for tiered storage. - # A valid config must have a valid TieredStorageRule. Otherwise the whole - # TieredStorageConfig must be unset. - # By default all data is stored in the SSD tier (only SSD instances can - # configure tiered storage). - # @!attribute [rw] infrequent_access - # @return [::Google::Cloud::Bigtable::Admin::V2::TieredStorageRule] - # Rule to specify what data is stored in the infrequent access(IA) tier. - # The IA tier allows storing more data per node with reduced performance. - class TieredStorageConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rule to specify what data is stored in a storage tier. - # @!attribute [rw] include_if_older_than - # @return [::Google::Protobuf::Duration] - # Include cells older than the given age. - # For the infrequent access tier, this value must be at least 30 days. - class TieredStorageRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a protobuf schema. - # @!attribute [rw] proto_descriptors - # @return [::String] - # Required. Contains a protobuf-serialized - # [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), - # which could include multiple proto files. - # To generate it, [install](https://grpc.io/docs/protoc-installation/) and - # run `protoc` with - # `--include_imports` and `--descriptor_set_out`. For example, to generate - # for moon/shot/app.proto, run - # ``` - # $protoc --proto_path=/app_path --proto_path=/lib_path \ - # --include_imports \ - # --descriptor_set_out=descriptors.pb \ - # moon/shot/app.proto - # ``` - # For more details, see protobuffer [self - # description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). - class ProtoSchema - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A named collection of related schemas. - # @!attribute [rw] name - # @return [::String] - # Identifier. The unique name identifying this schema bundle. - # Values are of the form - # `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - # @!attribute [rw] proto_schema - # @return [::Google::Cloud::Bigtable::Admin::V2::ProtoSchema] - # Schema for Protobufs. - # @!attribute [rw] etag - # @return [::String] - # Optional. The etag for this schema bundle. - # This may be sent on update and delete requests to ensure the - # client has an up-to-date value before proceeding. The server - # returns an ABORTED error on a mismatched etag. - class SchemaBundle - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the type of the restore source. - module RestoreSourceType - # No restore associated. - RESTORE_SOURCE_TYPE_UNSPECIFIED = 0 - - # A backup was used as the source of the restore. - BACKUP = 1 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb deleted file mode 100644 index 8a598f02b9ff..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/bigtable/admin/v2/types.rb +++ /dev/null @@ -1,575 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Bigtable - module Admin - module V2 - # `Type` represents the type of data that is written to, read from, or stored - # in Bigtable. It is heavily based on the GoogleSQL standard to help maintain - # familiarity and consistency across products and features. - # - # For compatibility with Bigtable's existing untyped APIs, each `Type` includes - # an `Encoding` which describes how to convert to or from the underlying data. - # - # Each encoding can operate in one of two modes: - # - # - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` - # if and only if `X <= Y`. This is useful anywhere sort order is important, - # for example when encoding keys. - # - Distinct: In this mode, Bigtable guarantees that if `X != Y` then - # `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For - # example, both "\\{'foo': '1', 'bar': '2'}" and "\\{'bar': '2', 'foo': '1'}" - # are valid encodings of the same JSON value. - # - # The API clearly documents which mode is used wherever an encoding can be - # configured. Each encoding also documents which values are supported in which - # modes. For example, when encoding INT64 as a numeric STRING, negative numbers - # cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but - # `STRING("-00001") > STRING("00001")`. - # @!attribute [rw] bytes_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] - # Bytes - # - # Note: The following fields are mutually exclusive: `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] string_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String] - # String - # - # Note: The following fields are mutually exclusive: `string_type`, `bytes_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] int64_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64] - # Int64 - # - # Note: The following fields are mutually exclusive: `int64_type`, `bytes_type`, `string_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float32_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float32] - # Float32 - # - # Note: The following fields are mutually exclusive: `float32_type`, `bytes_type`, `string_type`, `int64_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float64_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Float64] - # Float64 - # - # Note: The following fields are mutually exclusive: `float64_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bool] - # Bool - # - # Note: The following fields are mutually exclusive: `bool_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] timestamp_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp] - # Timestamp - # - # Note: The following fields are mutually exclusive: `timestamp_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] date_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Date] - # Date - # - # Note: The following fields are mutually exclusive: `date_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] aggregate_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate] - # Aggregate - # - # Note: The following fields are mutually exclusive: `aggregate_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `struct_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] struct_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct] - # Struct - # - # Note: The following fields are mutually exclusive: `struct_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `array_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] array_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Array] - # Array - # - # Note: The following fields are mutually exclusive: `array_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `map_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] map_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Map] - # Map - # - # Note: The following fields are mutually exclusive: `map_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `proto_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] proto_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Proto] - # Proto - # - # Note: The following fields are mutually exclusive: `proto_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `enum_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] enum_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Enum] - # Enum - # - # Note: The following fields are mutually exclusive: `enum_type`, `bytes_type`, `string_type`, `int64_type`, `float32_type`, `float64_type`, `bool_type`, `timestamp_type`, `date_type`, `aggregate_type`, `struct_type`, `array_type`, `map_type`, `proto_type`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Type - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Bytes - # Values of type `Bytes` are stored in `Value.bytes_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding] - # The encoding to use when converting to or from lower level types. - class Bytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] raw - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes::Encoding::Raw] - # Use `Raw` encoding. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Leaves the value as-is. - # - # Sorted mode: all values are supported. - # - # Distinct mode: all values are supported. - class Raw - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # String - # Values of type `String` are stored in `Value.string_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding] - # The encoding to use when converting to or from lower level types. - class String - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] utf8_raw - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Raw] - # Deprecated: if set, converts to an empty `utf8_bytes`. - # - # Note: The following fields are mutually exclusive: `utf8_raw`, `utf8_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] utf8_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::String::Encoding::Utf8Bytes] - # Use `Utf8Bytes` encoding. - # - # Note: The following fields are mutually exclusive: `utf8_bytes`, `utf8_raw`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Deprecated: prefer the equivalent `Utf8Bytes`. - # @deprecated This message is deprecated and may be removed in the next major version update. - class Utf8Raw - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UTF-8 encoding. - # - # Sorted mode: - # - All values are supported. - # - Code point order is preserved. - # - # Distinct mode: all values are supported. - # - # Compatible with: - # - # - BigQuery `TEXT` encoding - # - HBase `Bytes.toBytes` - # - Java `String#getBytes(StandardCharsets.UTF_8)` - class Utf8Bytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # Int64 - # Values of type `Int64` are stored in `Value.int_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] - # The encoding to use when converting to or from lower level types. - class Int64 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] big_endian_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::BigEndianBytes] - # Use `BigEndianBytes` encoding. - # - # Note: The following fields are mutually exclusive: `big_endian_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ordered_code_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding::OrderedCodeBytes] - # Use `OrderedCodeBytes` encoding. - # - # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `big_endian_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Encodes the value as an 8-byte big-endian two's complement value. - # - # Sorted mode: non-negative values are supported. - # - # Distinct mode: all values are supported. - # - # Compatible with: - # - # - BigQuery `BINARY` encoding - # - HBase `Bytes.toBytes` - # - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` - # @!attribute [rw] bytes_type - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Bytes] - # Deprecated: ignored if set. - class BigEndianBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Encodes the value in a variable length binary format of up to 10 bytes. - # Values that are closer to zero use fewer bytes. - # - # Sorted mode: all values are supported. - # - # Distinct mode: all values are supported. - class OrderedCodeBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # bool - # Values of type `Bool` are stored in `Value.bool_value`. - class Bool - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Float32 - # Values of type `Float32` are stored in `Value.float_value`. - class Float32 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Float64 - # Values of type `Float64` are stored in `Value.float_value`. - class Float64 - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Timestamp - # Values of type `Timestamp` are stored in `Value.timestamp_value`. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Timestamp::Encoding] - # The encoding to use when converting to or from lower level types. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rules used to convert to or from lower level types. - # @!attribute [rw] unix_micros_int64 - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Int64::Encoding] - # Encodes the number of microseconds since the Unix epoch using the - # given `Int64` encoding. Values must be microsecond-aligned. - # - # Compatible with: - # - # - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Date - # Values of type `Date` are stored in `Value.date_value`. - class Date - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A structured data value, consisting of fields which map to dynamically - # typed values. - # Values of type `Struct` are stored in `Value.array_value` where entries are - # in the same order and number as `field_types`. - # @!attribute [rw] fields - # @return [::Array<::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Field>] - # The names and types of the fields in this struct. - # @!attribute [rw] encoding - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding] - # The encoding to use when converting to or from lower level types. - class Struct - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A struct field and its type. - # @!attribute [rw] field_name - # @return [::String] - # The field name (optional). Fields without a `field_name` are considered - # anonymous and cannot be referenced by name. - # @!attribute [rw] type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of values in this field. - class Field - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Rules used to convert to or from lower level types. - # @!attribute [rw] singleton - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::Singleton] - # Use `Singleton` encoding. - # - # Note: The following fields are mutually exclusive: `singleton`, `delimited_bytes`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delimited_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::DelimitedBytes] - # Use `DelimitedBytes` encoding. - # - # Note: The following fields are mutually exclusive: `delimited_bytes`, `singleton`, `ordered_code_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ordered_code_bytes - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Struct::Encoding::OrderedCodeBytes] - # User `OrderedCodeBytes` encoding. - # - # Note: The following fields are mutually exclusive: `ordered_code_bytes`, `singleton`, `delimited_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Encoding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Uses the encoding of `fields[0].type` as-is. - # Only valid if `fields.size == 1`. - class Singleton - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Fields are encoded independently and concatenated with a configurable - # `delimiter` in between. - # - # A struct with no fields defined is encoded as a single `delimiter`. - # - # Sorted mode: - # - # - Fields are encoded in sorted mode. - # - Encoded field values must not contain any bytes <= `delimiter[0]` - # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - # - # Distinct mode: - # - # - Fields are encoded in distinct mode. - # - Encoded field values must not contain `delimiter[0]`. - # @!attribute [rw] delimiter - # @return [::String] - # Byte sequence used to delimit concatenated fields. The delimiter must - # contain at least 1 character and at most 50 characters. - class DelimitedBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Fields are encoded independently and concatenated with the fixed byte - # pair \\{0x00, 0x01} in between. - # - # Any null (0x00) byte in an encoded field is replaced by the fixed byte - # pair \\{0x00, 0xFF}. - # - # Fields that encode to the empty string "" have special handling: - # - # - If *every* field encodes to "", or if the STRUCT has no fields - # defined, then the STRUCT is encoded as the fixed byte pair - # \\{0x00, 0x00}. - # - Otherwise, the STRUCT only encodes until the last non-empty field, - # omitting any trailing empty fields. Any empty fields that aren't - # omitted are replaced with the fixed byte pair \\{0x00, 0x00}. - # - # Examples: - # - # - STRUCT() -> "\00\00" - # - STRUCT("") -> "\00\00" - # - STRUCT("", "") -> "\00\00" - # - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" - # - STRUCT("A", "") -> "A" - # - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" - # - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" - # - # - # Since null bytes are always escaped, this encoding can cause size - # blowup for encodings like `Int64.BigEndianBytes` that are likely to - # produce many such bytes. - # - # Sorted mode: - # - # - Fields are encoded in sorted mode. - # - All values supported by the field encodings are allowed - # - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - # `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - # - # Distinct mode: - # - # - Fields are encoded in distinct mode. - # - All values supported by the field encodings are allowed. - class OrderedCodeBytes - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - - # A protobuf message type. - # Values of type `Proto` are stored in `Value.bytes_value`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # The ID of the schema bundle that this proto is defined in. - # @!attribute [rw] message_name - # @return [::String] - # The fully qualified name of the protobuf message, including package. In - # the format of "foo.bar.Message". - class Proto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A protobuf enum type. - # Values of type `Enum` are stored in `Value.int_value`. - # @!attribute [rw] schema_bundle_id - # @return [::String] - # The ID of the schema bundle that this enum is defined in. - # @!attribute [rw] enum_name - # @return [::String] - # The fully qualified name of the protobuf enum message, including package. - # In the format of "foo.bar.EnumMessage". - class Enum - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # An ordered list of elements of a given type. - # Values of type `Array` are stored in `Value.array_value`. - # @!attribute [rw] element_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of the elements in the array. This must not be `Array`. - class Array - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A mapping of keys to values of a given type. - # Values of type `Map` are stored in a `Value.array_value` where each entry - # is another `Value.array_value` with two elements (the key and the value, - # in that order). - # Normally encoded Map values won't have repeated keys, however, clients are - # expected to handle the case in which they do. If the same key appears - # multiple times, the _last_ value takes precedence. - # @!attribute [rw] key_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of a map key. - # Only `Bytes`, `String`, and `Int64` are allowed as key types. - # @!attribute [rw] value_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # The type of the values in a map. - class Map - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A value that combines incremental updates into a summarized value. - # - # Data is never directly written or read using type `Aggregate`. Writes will - # provide either the `input_type` or `state_type`, and reads will always - # return the `state_type` . - # @!attribute [rw] input_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # Type of the inputs that are accumulated by this `Aggregate`, which must - # specify a full encoding. - # Use `AddInput` mutations to accumulate new inputs. - # @!attribute [r] state_type - # @return [::Google::Cloud::Bigtable::Admin::V2::Type] - # Output only. Type that holds the internal accumulator state for the - # `Aggregate`. This is a function of the `input_type` and `aggregator` - # chosen, and will always specify a full encoding. - # @!attribute [rw] sum - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Sum] - # Sum aggregator. - # - # Note: The following fields are mutually exclusive: `sum`, `hllpp_unique_count`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] hllpp_unique_count - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::HyperLogLogPlusPlusUniqueCount] - # HyperLogLogPlusPlusUniqueCount aggregator. - # - # Note: The following fields are mutually exclusive: `hllpp_unique_count`, `sum`, `max`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] max - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Max] - # Max aggregator. - # - # Note: The following fields are mutually exclusive: `max`, `sum`, `hllpp_unique_count`, `min`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] min - # @return [::Google::Cloud::Bigtable::Admin::V2::Type::Aggregate::Min] - # Min aggregator. - # - # Note: The following fields are mutually exclusive: `min`, `sum`, `hllpp_unique_count`, `max`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Aggregate - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Computes the sum of the input values. - # Allowed input: `Int64` - # State: same as input - class Sum - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes the max of the input values. - # Allowed input: `Int64` - # State: same as input - class Max - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes the min of the input values. - # Allowed input: `Int64` - # State: same as input - class Min - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Computes an approximate unique count over the input values. When using - # raw data as input, be careful to use a consistent encoding. Otherwise - # the same value encoded differently could count more than once, or two - # distinct values could count as identical. - # Input: Any, or omit for Raw - # State: TBD - # Special state conversions: `Int64` (the unique count estimate) - class HyperLogLogPlusPlusUniqueCount - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb deleted file mode 100644 index 5445c77f8258..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/iam_policy.rb +++ /dev/null @@ -1,87 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # Request message for `SetIamPolicy` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] policy - # @return [::Google::Iam::V1::Policy] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - class SetIamPolicyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for `GetIamPolicy` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] options - # @return [::Google::Iam::V1::GetPolicyOptions] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - class GetIamPolicyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for `TestIamPermissions` method. - # @!attribute [rw] resource - # @return [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @!attribute [rw] permissions - # @return [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - class TestIamPermissionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for `TestIamPermissions` method. - # @!attribute [rw] permissions - # @return [::Array<::String>] - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. - class TestIamPermissionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb deleted file mode 100644 index 60713d995b86..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/options.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # Encapsulates settings provided to GetIamPolicy. - # @!attribute [rw] requested_policy_version - # @return [::Integer] - # Optional. The maximum policy version that will be used to format the - # policy. - # - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # - # Requests for policies with any conditional role bindings must specify - # version 3. Policies with no conditional role bindings may specify any valid - # value or leave the field unset. - # - # The policy in the response might use the policy version that you specified, - # or it might use a lower policy version. For example, if you specify version - # 3, but the policy has no conditional role bindings, the response uses - # version 1. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - class GetPolicyOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb deleted file mode 100644 index 999575b797df..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/iam/v1/policy.rb +++ /dev/null @@ -1,426 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Iam - module V1 - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # - # - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members`, or principals, to a single `role`. Principals can be user - # accounts, service accounts, Google groups, and domains (such as G Suite). A - # `role` is a named list of permissions; each `role` can be an IAM predefined - # role or a user-created custom role. - # - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - # - # **JSON example:** - # - # ``` - # { - # "bindings": [ - # { - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # }, - # { - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": { - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", - # } - # } - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # } - # ``` - # - # **YAML example:** - # - # ``` - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # etag: BwWWja0YfJA= - # version: 3 - # ``` - # - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). - # @!attribute [rw] version - # @return [::Integer] - # Specifies the format of the policy. - # - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - # @!attribute [rw] bindings - # @return [::Array<::Google::Iam::V1::Binding>] - # Associates a list of `members`, or principals, with a `role`. Optionally, - # may specify a `condition` that determines how and when the `bindings` are - # applied. Each of the `bindings` must contain at least one principal. - # - # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - # of these principals can be Google groups. Each occurrence of a principal - # counts towards these limits. For example, if the `bindings` grant 50 - # different roles to `user:alice@example.com`, and not to any other - # principal, then you can add another 1,450 principals to the `bindings` in - # the `Policy`. - # @!attribute [rw] audit_configs - # @return [::Array<::Google::Iam::V1::AuditConfig>] - # Specifies cloud audit logging configuration for this policy. - # @!attribute [rw] etag - # @return [::String] - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - class Policy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Associates `members`, or principals, with a `role`. - # @!attribute [rw] role - # @return [::String] - # Role that is assigned to the list of `members`, or principals. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # @!attribute [rw] members - # @return [::Array<::String>] - # Specifies the principals requesting access for a Google Cloud resource. - # `members` can have the following values: - # - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # - # * `user:{emailid}`: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # - # - # * `serviceAccount:{emailid}`: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # - # * `group:{emailid}`: An email address that represents a Google group. - # For example, `admins@example.com`. - # - # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:{emailid}` and the recovered user - # retains the role in the binding. - # - # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:{emailid}` and the undeleted service account retains the - # role in the binding. - # - # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:{emailid}` and the - # recovered group retains the role in the binding. - # - # - # * `domain:{domain}`: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. - # @!attribute [rw] condition - # @return [::Google::Type::Expr] - # The condition that is associated with this binding. - # - # If the condition evaluates to `true`, then this binding applies to the - # current request. - # - # If the condition evaluates to `false`, then this binding does not apply to - # the current request. However, a different role binding might grant the same - # role to one or more of the principals in this binding. - # - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - class Binding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # - # Example Policy with multiple AuditConfigs: - # - # { - # "audit_configs": [ - # { - # "service": "allServices", - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # }, - # { - # "log_type": "DATA_WRITE" - # }, - # { - # "log_type": "ADMIN_READ" - # } - # ] - # }, - # { - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ" - # }, - # { - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # } - # ] - # } - # ] - # } - # - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts `jose@example.com` from DATA_READ logging, and - # `aliya@example.com` from DATA_WRITE logging. - # @!attribute [rw] service - # @return [::String] - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # @!attribute [rw] audit_log_configs - # @return [::Array<::Google::Iam::V1::AuditLogConfig>] - # The configuration for logging of each type of permission. - class AuditConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Provides the configuration for logging a type of permissions. - # Example: - # - # { - # "audit_log_configs": [ - # { - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # }, - # { - # "log_type": "DATA_WRITE" - # } - # ] - # } - # - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. - # @!attribute [rw] log_type - # @return [::Google::Iam::V1::AuditLogConfig::LogType] - # The log type that this config enables. - # @!attribute [rw] exempted_members - # @return [::Array<::String>] - # Specifies the identities that do not cause logging for this type of - # permission. - # Follows the same format of - # [Binding.members][google.iam.v1.Binding.members]. - class AuditLogConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The list of valid permission types for which logging can be configured. - # Admin writes are always logged, and are not configurable. - module LogType - # Default case. Should never be this. - LOG_TYPE_UNSPECIFIED = 0 - - # Admin reads. Example: CloudIAM getIamPolicy - ADMIN_READ = 1 - - # Data writes. Example: CloudSQL Users create - DATA_WRITE = 2 - - # Data reads. Example: CloudSQL Users list - DATA_READ = 3 - end - end - - # The difference delta between two policies. - # @!attribute [rw] binding_deltas - # @return [::Array<::Google::Iam::V1::BindingDelta>] - # The delta for Bindings between two policies. - # @!attribute [rw] audit_config_deltas - # @return [::Array<::Google::Iam::V1::AuditConfigDelta>] - # The delta for AuditConfigs between two policies. - class PolicyDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # One delta entry for Binding. Each individual change (only one member in each - # entry) to a binding will be a separate entry. - # @!attribute [rw] action - # @return [::Google::Iam::V1::BindingDelta::Action] - # The action that was performed on a Binding. - # Required - # @!attribute [rw] role - # @return [::String] - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required - # @!attribute [rw] member - # @return [::String] - # A single identity requesting access for a Google Cloud resource. - # Follows the same format of Binding.members. - # Required - # @!attribute [rw] condition - # @return [::Google::Type::Expr] - # The condition that is associated with this binding. - class BindingDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of action performed on a Binding in a policy. - module Action - # Unspecified. - ACTION_UNSPECIFIED = 0 - - # Addition of a Binding. - ADD = 1 - - # Removal of a Binding. - REMOVE = 2 - end - end - - # One delta entry for AuditConfig. Each individual change (only one - # exempted_member in each entry) to a AuditConfig will be a separate entry. - # @!attribute [rw] action - # @return [::Google::Iam::V1::AuditConfigDelta::Action] - # The action that was performed on an audit configuration in a policy. - # Required - # @!attribute [rw] service - # @return [::String] - # Specifies a service that was configured for Cloud Audit Logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. - # Required - # @!attribute [rw] exempted_member - # @return [::String] - # A single identity that is exempted from "data access" audit - # logging for the `service` specified above. - # Follows the same format of Binding.members. - # @!attribute [rw] log_type - # @return [::String] - # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - # enabled, and cannot be configured. - # Required - class AuditConfigDelta - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of action performed on an audit configuration in a policy. - module Action - # Unspecified. - ACTION_UNSPECIFIED = 0 - - # Addition of an audit configuration. - ADD = 1 - - # Removal of an audit configuration. - REMOVE = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb deleted file mode 100644 index 7a757f512165..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/longrunning/operations.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Longrunning - # This resource represents a long-running operation that is the result of a - # network API call. - # @!attribute [rw] name - # @return [::String] - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/{unique_id}`. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Any] - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # @!attribute [rw] done - # @return [::Boolean] - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. - # @!attribute [rw] error - # @return [::Google::Rpc::Status] - # The error result of the operation in case of failure or cancellation. - # - # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] response - # @return [::Google::Protobuf::Any] - # The normal, successful response of the operation. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. - # - # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Operation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.GetOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource. - class GetOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.ListOperations. - # @!attribute [rw] name - # @return [::String] - # The name of the operation's parent resource. - # @!attribute [rw] filter - # @return [::String] - # The standard list filter. - # @!attribute [rw] page_size - # @return [::Integer] - # The standard list page size. - # @!attribute [rw] page_token - # @return [::String] - # The standard list page token. - # @!attribute [rw] return_partial_success - # @return [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - class ListOperationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message for - # Operations.ListOperations. - # @!attribute [rw] operations - # @return [::Array<::Google::Longrunning::Operation>] - # A list of operations that matches the specified filter in the request. - # @!attribute [rw] next_page_token - # @return [::String] - # The standard List next-page token. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. Unreachable resources. Populated when the request sets - # `ListOperationsRequest.return_partial_success` and reads across - # collections e.g. when attempting to list all resources across all supported - # locations. - class ListOperationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.CancelOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be cancelled. - class CancelOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.DeleteOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be deleted. - class DeleteOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.WaitOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to wait on. - # @!attribute [rw] timeout - # @return [::Google::Protobuf::Duration] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - class WaitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A message representing the message types used by a long-running operation. - # - # Example: - # - # rpc Export(ExportRequest) returns (google.longrunning.Operation) { - # option (google.longrunning.operation_info) = { - # response_type: "ExportResponse" - # metadata_type: "ExportMetadata" - # }; - # } - # @!attribute [rw] response_type - # @return [::String] - # Required. The message name of the primary return type for this - # long-running operation. - # This type will be used to deserialize the LRO's response. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - # @!attribute [rw] metadata_type - # @return [::String] - # Required. The message name of the metadata type for this long-running - # operation. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - class OperationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb deleted file mode 100644 index 53e7733b6592..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/proto_docs/google/type/expr.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # - # Example (Comparison): - # - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # - # Example (Equality): - # - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # - # Example (Logic): - # - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # - # Example (Data Manipulation): - # - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. - # @!attribute [rw] expression - # @return [::String] - # Textual representation of an expression in Common Expression Language - # syntax. - # @!attribute [rw] title - # @return [::String] - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # @!attribute [rw] description - # @return [::String] - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # @!attribute [rw] location - # @return [::String] - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - class Expr - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile deleted file mode 100644 index f88d2bf31b17..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-bigtable-admin-v2", path: "../" -else - gem "google-cloud-bigtable-admin-v2" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb deleted file mode 100644 index 60b0e44dae42..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile. -# -def create_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new - - # Call the create_app_profile method. - result = client.create_app_profile request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb deleted file mode 100644 index 1923dfa3b593..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster. -# -def create_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new - - # Call the create_cluster method. - result = client.create_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb deleted file mode 100644 index 9bfb53227c80..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_instance.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance. -# -def create_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new - - # Call the create_instance method. - result = client.create_instance request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb deleted file mode 100644 index 7523e3a3df7f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_logical_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view. -# -def create_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new - - # Call the create_logical_view method. - result = client.create_logical_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb deleted file mode 100644 index 99be7f04ca20..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/create_materialized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view. -# -def create_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new - - # Call the create_materialized_view method. - result = client.create_materialized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb deleted file mode 100644 index be07699500ed..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile. -# -def delete_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new - - # Call the delete_app_profile method. - result = client.delete_app_profile request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb deleted file mode 100644 index ad008ded7e08..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster. -# -def delete_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new - - # Call the delete_cluster method. - result = client.delete_cluster request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb deleted file mode 100644 index f161dc0445dd..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance. -# -def delete_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new - - # Call the delete_instance method. - result = client.delete_instance request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb deleted file mode 100644 index f486e799a373..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_logical_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view. -# -def delete_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new - - # Call the delete_logical_view method. - result = client.delete_logical_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb deleted file mode 100644 index 1e869b43c09d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/delete_materialized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view. -# -def delete_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new - - # Call the delete_materialized_view method. - result = client.delete_materialized_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb deleted file mode 100644 index a6b51fecf7b8..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_app_profile.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile. -# -def get_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new - - # Call the get_app_profile method. - result = client.get_app_profile request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb deleted file mode 100644 index e3a302d2fe21..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster. -# -def get_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new - - # Call the get_cluster method. - result = client.get_cluster request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb deleted file mode 100644 index 69ab829b07a6..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_iam_policy call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb deleted file mode 100644 index ccd0595fe780..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance. -# -def get_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new - - # Call the get_instance method. - result = client.get_instance request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb deleted file mode 100644 index adfe7a736595..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_logical_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view. -# -def get_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new - - # Call the get_logical_view method. - result = client.get_logical_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::LogicalView. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb deleted file mode 100644 index 6233ab496c0f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/get_materialized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view. -# -def get_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new - - # Call the get_materialized_view method. - result = client.get_materialized_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::MaterializedView. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb deleted file mode 100644 index 57b0097b3518..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_app_profiles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_app_profiles call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles. -# -def list_app_profiles - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new - - # Call the list_app_profiles method. - result = client.list_app_profiles request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb deleted file mode 100644 index 8545983eb3a3..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_clusters.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_clusters call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters. -# -def list_clusters - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new - - # Call the list_clusters method. - result = client.list_clusters request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb deleted file mode 100644 index 5090d8624697..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_hot_tablets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets. -# -def list_hot_tablets - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new - - # Call the list_hot_tablets method. - result = client.list_hot_tablets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb deleted file mode 100644 index a4038642c51f..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_instances.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_instances call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances. -# -def list_instances - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new - - # Call the list_instances method. - result = client.list_instances request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb deleted file mode 100644 index 09e85d564f89..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_logical_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_logical_views call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views. -# -def list_logical_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new - - # Call the list_logical_views method. - result = client.list_logical_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::LogicalView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb deleted file mode 100644 index 37d40ffb913e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/list_materialized_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_materialized_views call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views. -# -def list_materialized_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new - - # Call the list_materialized_views method. - result = client.list_materialized_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::MaterializedView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb deleted file mode 100644 index 3923f7ae400d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster. -# -def partial_update_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new - - # Call the partial_update_cluster method. - result = client.partial_update_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb deleted file mode 100644 index 1630801fd676..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/partial_update_instance.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the partial_update_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance. -# -def partial_update_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new - - # Call the partial_update_instance method. - result = client.partial_update_instance request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb deleted file mode 100644 index 834fab5b6899..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the set_iam_policy call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb deleted file mode 100644 index 1e00c002ab00..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb deleted file mode 100644 index 30f88f2bf050..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_app_profile.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_app_profile call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile. -# -def update_app_profile - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new - - # Call the update_app_profile method. - result = client.update_app_profile request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb deleted file mode 100644 index da1c506529be..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_cluster call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster. -# -def update_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::Cluster.new - - # Call the update_cluster method. - result = client.update_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb deleted file mode 100644 index 2aeb910c78ba..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_instance.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_instance call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance. -# -def update_instance - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::Instance.new - - # Call the update_instance method. - result = client.update_instance request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance. - p result -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb deleted file mode 100644 index 1cb0d166a85e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_logical_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_logical_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view. -# -def update_logical_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new - - # Call the update_logical_view method. - result = client.update_logical_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb deleted file mode 100644 index da78d73ca450..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_instance_admin/update_materialized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_materialized_view call in the BigtableInstanceAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view. -# -def update_materialized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new - - # Call the update_materialized_view method. - result = client.update_materialized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb deleted file mode 100644 index 56bd26ccebc2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/check_consistency.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the check_consistency call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency. -# -def check_consistency - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new - - # Call the check_consistency method. - result = client.check_consistency request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb deleted file mode 100644 index 32e9e991b2e0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/copy_backup.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the copy_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup. -# -def copy_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new - - # Call the copy_backup method. - result = client.copy_backup request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb deleted file mode 100644 index 93ca1b05050a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_authorized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view. -# -def create_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new - - # Call the create_authorized_view method. - result = client.create_authorized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb deleted file mode 100644 index bbd26b8f605e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_backup.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup. -# -def create_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new - - # Call the create_backup method. - result = client.create_backup request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb deleted file mode 100644 index 3cf630415459..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_schema_bundle.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle. -# -def create_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new - - # Call the create_schema_bundle method. - result = client.create_schema_bundle request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb deleted file mode 100644 index 8d98a8471082..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table. -# -def create_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new - - # Call the create_table method. - result = client.create_table request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb deleted file mode 100644 index 3cf2e7283166..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/create_table_from_snapshot.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot. -# -def create_table_from_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new - - # Call the create_table_from_snapshot method. - result = client.create_table_from_snapshot request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb deleted file mode 100644 index c5937706f326..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_authorized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view. -# -def delete_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new - - # Call the delete_authorized_view method. - result = client.delete_authorized_view request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb deleted file mode 100644 index d710addca48c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup. -# -def delete_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new - - # Call the delete_backup method. - result = client.delete_backup request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb deleted file mode 100644 index 3b07c8b887f2..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_schema_bundle.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle. -# -def delete_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new - - # Call the delete_schema_bundle method. - result = client.delete_schema_bundle request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb deleted file mode 100644 index c7ab27d40147..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot. -# -def delete_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new - - # Call the delete_snapshot method. - result = client.delete_snapshot request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb deleted file mode 100644 index 315ff9367627..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/delete_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the delete_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table. -# -def delete_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new - - # Call the delete_table method. - result = client.delete_table request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb deleted file mode 100644 index 2b6cd7d2303a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/drop_row_range.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the drop_row_range call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range. -# -def drop_row_range - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new - - # Call the drop_row_range method. - result = client.drop_row_range request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb deleted file mode 100644 index 88734d55318b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/generate_consistency_token.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the generate_consistency_token call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token. -# -def generate_consistency_token - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new - - # Call the generate_consistency_token method. - result = client.generate_consistency_token request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb deleted file mode 100644 index 79ae8f10cc46..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_authorized_view.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view. -# -def get_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new - - # Call the get_authorized_view method. - result = client.get_authorized_view request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb deleted file mode 100644 index 6c0f68dd6078..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup. -# -def get_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new - - # Call the get_backup method. - result = client.get_backup request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb deleted file mode 100644 index 33969bfecb74..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_iam_policy call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb deleted file mode 100644 index 108356d532d0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_schema_bundle.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle. -# -def get_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new - - # Call the get_schema_bundle method. - result = client.get_schema_bundle request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb deleted file mode 100644 index da9903b816ee..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_snapshot call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot. -# -def get_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new - - # Call the get_snapshot method. - result = client.get_snapshot request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Snapshot. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb deleted file mode 100644 index de73a71a944b..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/get_table.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the get_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table. -# -def get_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new - - # Call the get_table method. - result = client.get_table request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb deleted file mode 100644 index 975edad00358..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_authorized_views.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_authorized_views call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views. -# -def list_authorized_views - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new - - # Call the list_authorized_views method. - result = client.list_authorized_views request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb deleted file mode 100644 index 113b0761aba0..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_backups.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_backups call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups. -# -def list_backups - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new - - # Call the list_backups method. - result = client.list_backups request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Backup. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb deleted file mode 100644 index 03b8c6193c5a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_schema_bundles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_schema_bundles call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles. -# -def list_schema_bundles - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new - - # Call the list_schema_bundles method. - result = client.list_schema_bundles request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb deleted file mode 100644 index 1c34195822a7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_snapshots.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_snapshots call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots. -# -def list_snapshots - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new - - # Call the list_snapshots method. - result = client.list_snapshots request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Snapshot. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb deleted file mode 100644 index 3c482ff03261..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/list_tables.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the list_tables call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables. -# -def list_tables - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new - - # Call the list_tables method. - result = client.list_tables request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::Table. - p item - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb deleted file mode 100644 index e711d7477c88..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/modify_column_families.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the modify_column_families call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families. -# -def modify_column_families - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new - - # Call the modify_column_families method. - result = client.modify_column_families request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Table. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb deleted file mode 100644 index 3c28d6009330..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/restore_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the restore_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table. -# -def restore_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new - - # Call the restore_table method. - result = client.restore_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb deleted file mode 100644 index ff5fff58358d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the set_iam_policy call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb deleted file mode 100644 index 4d171700843e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/snapshot_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the snapshot_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table. -# -def snapshot_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new - - # Call the snapshot_table method. - result = client.snapshot_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb deleted file mode 100644 index abe2e3451d02..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the test_iam_permissions call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb deleted file mode 100644 index 00c9558cd83c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/undelete_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the undelete_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table. -# -def undelete_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new - - # Call the undelete_table method. - result = client.undelete_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb deleted file mode 100644 index 383be6ce0938..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_authorized_view.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_authorized_view call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view. -# -def update_authorized_view - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new - - # Call the update_authorized_view method. - result = client.update_authorized_view request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb deleted file mode 100644 index 32aa9d456b3a..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_backup.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_backup call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup. -# -def update_backup - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new - - # Call the update_backup method. - result = client.update_backup request - - # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Backup. - p result -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb deleted file mode 100644 index c33e873f5e7d..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_schema_bundle.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_schema_bundle call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle. -# -def update_schema_bundle - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new - - # Call the update_schema_bundle method. - result = client.update_schema_bundle request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb deleted file mode 100644 index d49e5c04deca..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/bigtable_table_admin/update_table.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] -require "google/cloud/bigtable/admin/v2" - -## -# Snippet for the update_table call in the BigtableTableAdmin service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table. -# -def update_table - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new - - # Call the update_table method. - result = client.update_table request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json deleted file mode 100644 index 307c646525b1..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/snippets/snippet_metadata_google.bigtable.admin.v2.json +++ /dev/null @@ -1,2655 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-bigtable-admin-v2", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.bigtable.admin.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", - "title": "Snippet for the create_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance.", - "file": "bigtable_instance_admin/create_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", - "title": "Snippet for the get_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance.", - "file": "bigtable_instance_admin/get_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", - "title": "Snippet for the list_instances call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances.", - "file": "bigtable_instance_admin/list_instances.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_instances", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_instances", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListInstances", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", - "title": "Snippet for the update_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance.", - "file": "bigtable_instance_admin/update_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Instance", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", - "title": "Snippet for the partial_update_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance.", - "file": "bigtable_instance_admin/partial_update_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "partial_update_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "PartialUpdateInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", - "title": "Snippet for the delete_instance call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance.", - "file": "bigtable_instance_admin/delete_instance.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_instance", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_instance", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteInstance", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", - "title": "Snippet for the create_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster.", - "file": "bigtable_instance_admin/create_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", - "title": "Snippet for the get_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster.", - "file": "bigtable_instance_admin/get_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", - "title": "Snippet for the list_clusters call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters.", - "file": "bigtable_instance_admin/list_clusters.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_clusters", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_clusters", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListClusters", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", - "title": "Snippet for the update_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster.", - "file": "bigtable_instance_admin/update_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::Cluster", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", - "title": "Snippet for the partial_update_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster.", - "file": "bigtable_instance_admin/partial_update_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "partial_update_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#partial_update_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "PartialUpdateCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", - "title": "Snippet for the delete_cluster call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster.", - "file": "bigtable_instance_admin/delete_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_cluster", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteCluster", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", - "title": "Snippet for the create_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile.", - "file": "bigtable_instance_admin/create_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", - "title": "Snippet for the get_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile.", - "file": "bigtable_instance_admin/get_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AppProfile", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", - "title": "Snippet for the list_app_profiles call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles.", - "file": "bigtable_instance_admin/list_app_profiles.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_app_profiles", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_app_profiles", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListAppProfiles", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", - "title": "Snippet for the update_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile.", - "file": "bigtable_instance_admin/update_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", - "title": "Snippet for the delete_app_profile call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile.", - "file": "bigtable_instance_admin/delete_app_profile.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_app_profile", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_app_profile", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteAppProfile", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy.", - "file": "bigtable_instance_admin/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy.", - "file": "bigtable_instance_admin/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions.", - "file": "bigtable_instance_admin/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", - "title": "Snippet for the list_hot_tablets call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets.", - "file": "bigtable_instance_admin/list_hot_tablets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_hot_tablets", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_hot_tablets", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListHotTablets", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync", - "title": "Snippet for the create_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view.", - "file": "bigtable_instance_admin/create_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync", - "title": "Snippet for the get_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view.", - "file": "bigtable_instance_admin/get_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::LogicalView", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync", - "title": "Snippet for the list_logical_views call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views.", - "file": "bigtable_instance_admin/list_logical_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_logical_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_logical_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListLogicalViews", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync", - "title": "Snippet for the update_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view.", - "file": "bigtable_instance_admin/update_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync", - "title": "Snippet for the delete_logical_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view.", - "file": "bigtable_instance_admin/delete_logical_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_logical_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_logical_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteLogicalView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync", - "title": "Snippet for the create_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view.", - "file": "bigtable_instance_admin/create_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#create_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "CreateMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync", - "title": "Snippet for the get_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view.", - "file": "bigtable_instance_admin/get_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#get_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::MaterializedView", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "GetMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync", - "title": "Snippet for the list_materialized_views call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views.", - "file": "bigtable_instance_admin/list_materialized_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_materialized_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#list_materialized_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "ListMaterializedViews", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync", - "title": "Snippet for the update_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view.", - "file": "bigtable_instance_admin/update_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#update_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "UpdateMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync", - "title": "Snippet for the delete_materialized_view call in the BigtableInstanceAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view.", - "file": "bigtable_instance_admin/delete_materialized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_materialized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client#delete_materialized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableInstanceAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client" - }, - "method": { - "short_name": "DeleteMaterializedView", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", - "service": { - "short_name": "BigtableInstanceAdmin", - "full_name": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", - "title": "Snippet for the create_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table.", - "file": "bigtable_table_admin/create_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", - "title": "Snippet for the create_table_from_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot.", - "file": "bigtable_table_admin/create_table_from_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_table_from_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_table_from_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateTableFromSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", - "title": "Snippet for the list_tables call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables.", - "file": "bigtable_table_admin/list_tables.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_tables", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_tables", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListTables", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", - "title": "Snippet for the get_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table.", - "file": "bigtable_table_admin/get_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", - "title": "Snippet for the update_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table.", - "file": "bigtable_table_admin/update_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", - "title": "Snippet for the delete_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table.", - "file": "bigtable_table_admin/delete_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", - "title": "Snippet for the undelete_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table.", - "file": "bigtable_table_admin/undelete_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "undelete_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#undelete_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UndeleteTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", - "title": "Snippet for the create_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view.", - "file": "bigtable_table_admin/create_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", - "title": "Snippet for the list_authorized_views call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views.", - "file": "bigtable_table_admin/list_authorized_views.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_authorized_views", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_authorized_views", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListAuthorizedViews", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", - "title": "Snippet for the get_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view.", - "file": "bigtable_table_admin/get_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::AuthorizedView", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", - "title": "Snippet for the update_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view.", - "file": "bigtable_table_admin/update_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", - "title": "Snippet for the delete_authorized_view call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view.", - "file": "bigtable_table_admin/delete_authorized_view.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_authorized_view", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_authorized_view", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteAuthorizedView", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", - "title": "Snippet for the modify_column_families call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families.", - "file": "bigtable_table_admin/modify_column_families.rb", - "language": "RUBY", - "client_method": { - "short_name": "modify_column_families", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#modify_column_families", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Table", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ModifyColumnFamilies", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", - "title": "Snippet for the drop_row_range call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range.", - "file": "bigtable_table_admin/drop_row_range.rb", - "language": "RUBY", - "client_method": { - "short_name": "drop_row_range", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#drop_row_range", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DropRowRange", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", - "title": "Snippet for the generate_consistency_token call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token.", - "file": "bigtable_table_admin/generate_consistency_token.rb", - "language": "RUBY", - "client_method": { - "short_name": "generate_consistency_token", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#generate_consistency_token", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GenerateConsistencyToken", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", - "title": "Snippet for the check_consistency call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency.", - "file": "bigtable_table_admin/check_consistency.rb", - "language": "RUBY", - "client_method": { - "short_name": "check_consistency", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#check_consistency", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CheckConsistency", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", - "title": "Snippet for the snapshot_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table.", - "file": "bigtable_table_admin/snapshot_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "snapshot_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#snapshot_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "SnapshotTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", - "title": "Snippet for the get_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot.", - "file": "bigtable_table_admin/get_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Snapshot", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", - "title": "Snippet for the list_snapshots call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots.", - "file": "bigtable_table_admin/list_snapshots.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_snapshots", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_snapshots", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListSnapshots", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", - "title": "Snippet for the delete_snapshot call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot.", - "file": "bigtable_table_admin/delete_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_snapshot", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteSnapshot", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", - "title": "Snippet for the create_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup.", - "file": "bigtable_table_admin/create_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", - "title": "Snippet for the get_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup.", - "file": "bigtable_table_admin/get_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", - "title": "Snippet for the update_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup.", - "file": "bigtable_table_admin/update_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::Backup", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", - "title": "Snippet for the delete_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup.", - "file": "bigtable_table_admin/delete_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", - "title": "Snippet for the list_backups call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups.", - "file": "bigtable_table_admin/list_backups.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_backups", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_backups", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListBackups", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", - "title": "Snippet for the restore_table call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table.", - "file": "bigtable_table_admin/restore_table.rb", - "language": "RUBY", - "client_method": { - "short_name": "restore_table", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#restore_table", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "RestoreTable", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", - "title": "Snippet for the copy_backup call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup.", - "file": "bigtable_table_admin/copy_backup.rb", - "language": "RUBY", - "client_method": { - "short_name": "copy_backup", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#copy_backup", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CopyBackup", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy.", - "file": "bigtable_table_admin/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy.", - "file": "bigtable_table_admin/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions.", - "file": "bigtable_table_admin/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync", - "title": "Snippet for the create_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle.", - "file": "bigtable_table_admin/create_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "CreateSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync", - "title": "Snippet for the update_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle.", - "file": "bigtable_table_admin/update_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#update_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "UpdateSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync", - "title": "Snippet for the get_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle.", - "file": "bigtable_table_admin/get_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#get_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::SchemaBundle", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "GetSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync", - "title": "Snippet for the list_schema_bundles call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles.", - "file": "bigtable_table_admin/list_schema_bundles.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_schema_bundles", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#list_schema_bundles", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "ListSchemaBundles", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync", - "title": "Snippet for the delete_schema_bundle call in the BigtableTableAdmin service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle.", - "file": "bigtable_table_admin/delete_schema_bundle.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_schema_bundle", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#delete_schema_bundle", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "BigtableTableAdmin::Client", - "full_name": "::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client" - }, - "method": { - "short_name": "DeleteSchemaBundle", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", - "service": { - "short_name": "BigtableTableAdmin", - "full_name": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb deleted file mode 100644 index d7820c4ab5a3..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" -require "google/bigtable/admin/v2/bigtable_instance_admin_services_pb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb deleted file mode 100644 index 2454f9a7005c..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_paths_test.rb +++ /dev/null @@ -1,139 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_app_profile_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.app_profile_path project: "value0", instance: "value1", app_profile: "value2" - assert_equal "projects/value0/instances/value1/appProfiles/value2", path - end - end - - def test_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" - assert_equal "projects/value0/instances/value1/clusters/value2", path - end - end - - def test_crypto_key_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path - end - end - - def test_instance_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.instance_path project: "value0", instance: "value1" - assert_equal "projects/value0/instances/value1", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_logical_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.logical_view_path project: "value0", instance: "value1", logical_view: "value2" - assert_equal "projects/value0/instances/value1/logicalViews/value2", path - end - end - - def test_materialized_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.materialized_view_path project: "value0", instance: "value1", materialized_view: "value2" - assert_equal "projects/value0/instances/value1/materializedViews/value2", path - end - end - - def test_project_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.project_path project: "value0" - assert_equal "projects/value0", path - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb deleted file mode 100644 index 72716ecb7974..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_instance_admin_test.rb +++ /dev/null @@ -1,2095 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_instance_admin_pb" -require "google/cloud/bigtable/admin/v2/bigtable_instance_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_instance - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - instance_id = "hello world" - instance = {} - clusters = {} - - create_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["instance_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] - assert_equal({}, request["clusters"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_instance parent: parent, instance_id: instance_id, instance: instance, clusters: clusters do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_instance ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_instance({ parent: parent, instance_id: instance_id, instance: instance, clusters: clusters }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_instance(::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new(parent: parent, instance_id: instance_id, instance: instance, clusters: clusters), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_instance_client_stub.call_rpc_count - end - end - - def test_get_instance - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_instance({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_instance name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_instance ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_instance({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_instance(::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_instance_client_stub.call_rpc_count - end - end - - def test_list_instances - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_token = "hello world" - - list_instances_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_instances, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_instances_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_instances({ parent: parent, page_token: page_token }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_instances parent: parent, page_token: page_token do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_instances ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_instances({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_instances(::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_instances_client_stub.call_rpc_count - end - end - - def test_update_instance - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Instance.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - display_name = "hello world" - state = :STATE_NOT_KNOWN - type = :TYPE_UNSPECIFIED - edition = :EDITION_UNSPECIFIED - labels = {} - create_time = {} - satisfies_pzs = true - satisfies_pzi = true - tags = {} - - update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Instance, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["display_name"] - assert_equal :STATE_NOT_KNOWN, request["state"] - assert_equal :TYPE_UNSPECIFIED, request["type"] - assert_equal :EDITION_UNSPECIFIED, request["edition"] - assert_equal({}, request["labels"].to_h) - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["create_time"] - assert_equal true, request["satisfies_pzs"] - assert request.has_satisfies_pzs? - assert_equal true, request["satisfies_pzi"] - assert request.has_satisfies_pzi? - assert_equal({}, request["tags"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_instance({ name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_instance name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_instance ::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_instance({ name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_instance(::Google::Cloud::Bigtable::Admin::V2::Instance.new(name: name, display_name: display_name, state: state, type: type, edition: edition, labels: labels, create_time: create_time, satisfies_pzs: satisfies_pzs, satisfies_pzi: satisfies_pzi, tags: tags), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_instance_client_stub.call_rpc_count - end - end - - def test_partial_update_instance - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - instance = {} - update_mask = {} - - partial_update_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :partial_update_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Instance), request["instance"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, partial_update_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.partial_update_instance({ instance: instance, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.partial_update_instance instance: instance, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.partial_update_instance ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.partial_update_instance({ instance: instance, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.partial_update_instance(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new(instance: instance, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, partial_update_instance_client_stub.call_rpc_count - end - end - - def test_delete_instance - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_instance_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_instance, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_instance_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_instance({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_instance name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_instance ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_instance({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_instance(::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_instance_client_stub.call_rpc_count - end - end - - def test_create_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - cluster_id = "hello world" - cluster = {} - - create_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["cluster_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_cluster parent: parent, cluster_id: cluster_id, cluster: cluster do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_cluster ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_cluster({ parent: parent, cluster_id: cluster_id, cluster: cluster }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_cluster(::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new(parent: parent, cluster_id: cluster_id, cluster: cluster), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_cluster_client_stub.call_rpc_count - end - end - - def test_get_cluster - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Cluster.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_cluster ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_cluster(::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_cluster_client_stub.call_rpc_count - end - end - - def test_list_clusters - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_token = "hello world" - - list_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_clusters, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_clusters_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_clusters({ parent: parent, page_token: page_token }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_clusters parent: parent, page_token: page_token do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_clusters ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_clusters({ parent: parent, page_token: page_token }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_clusters(::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new(parent: parent, page_token: page_token), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_clusters_client_stub.call_rpc_count - end - end - - def test_update_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - location = "hello world" - state = :STATE_NOT_KNOWN - serve_nodes = 42 - node_scaling_factor = :NODE_SCALING_FACTOR_UNSPECIFIED - cluster_config = {} - default_storage_type = :STORAGE_TYPE_UNSPECIFIED - encryption_config = {} - - update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::Cluster, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["location"] - assert_equal :STATE_NOT_KNOWN, request["state"] - assert_equal 42, request["serve_nodes"] - assert_equal :NODE_SCALING_FACTOR_UNSPECIFIED, request["node_scaling_factor"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::ClusterConfig), request["cluster_config"] - assert_equal :cluster_config, request.config - assert_equal :STORAGE_TYPE_UNSPECIFIED, request["default_storage_type"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig), request["encryption_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_cluster name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_cluster ::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_cluster({ name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_cluster(::Google::Cloud::Bigtable::Admin::V2::Cluster.new(name: name, location: location, state: state, serve_nodes: serve_nodes, node_scaling_factor: node_scaling_factor, cluster_config: cluster_config, default_storage_type: default_storage_type, encryption_config: encryption_config), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_cluster_client_stub.call_rpc_count - end - end - - def test_partial_update_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - cluster = {} - update_mask = {} - - partial_update_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :partial_update_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Cluster), request["cluster"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, partial_update_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.partial_update_cluster cluster: cluster, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.partial_update_cluster ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.partial_update_cluster({ cluster: cluster, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.partial_update_cluster(::Google::Cloud::Bigtable::Admin::V2::PartialUpdateClusterRequest.new(cluster: cluster, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, partial_update_cluster_client_stub.call_rpc_count - end - end - - def test_delete_cluster - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_cluster, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_cluster_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_cluster ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_cluster(::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_cluster_client_stub.call_rpc_count - end - end - - def test_create_app_profile - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - app_profile_id = "hello world" - app_profile = {} - ignore_warnings = true - - create_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["app_profile_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_app_profile parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_app_profile ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_app_profile({ parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_app_profile(::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new(parent: parent, app_profile_id: app_profile_id, app_profile: app_profile, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_app_profile_client_stub.call_rpc_count - end - end - - def test_get_app_profile - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AppProfile.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_app_profile({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_app_profile name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_app_profile ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_app_profile({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_app_profile(::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_app_profile_client_stub.call_rpc_count - end - end - - def test_list_app_profiles - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_app_profiles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_app_profiles, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_app_profiles_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_app_profiles parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_app_profiles ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_app_profiles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_app_profiles(::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_app_profiles_client_stub.call_rpc_count - end - end - - def test_update_app_profile - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - app_profile = {} - update_mask = {} - ignore_warnings = true - - update_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AppProfile), request["app_profile"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_app_profile app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_app_profile ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_app_profile({ app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_app_profile(::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new(app_profile: app_profile, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_app_profile_client_stub.call_rpc_count - end - end - - def test_delete_app_profile - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - ignore_warnings = true - - delete_app_profile_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_app_profile, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_app_profile_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_app_profile name: name, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_app_profile ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_app_profile({ name: name, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_app_profile(::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new(name: name, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_app_profile_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_list_hot_tablets - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - start_time = {} - end_time = {} - page_size = 42 - page_token = "hello world" - - list_hot_tablets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_hot_tablets, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_hot_tablets_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_hot_tablets parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_hot_tablets ::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_hot_tablets({ parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_hot_tablets(::Google::Cloud::Bigtable::Admin::V2::ListHotTabletsRequest.new(parent: parent, start_time: start_time, end_time: end_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_hot_tablets_client_stub.call_rpc_count - end - end - - def test_create_logical_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - logical_view_id = "hello world" - logical_view = {} - - create_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["logical_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_logical_view parent: parent, logical_view_id: logical_view_id, logical_view: logical_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_logical_view ::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_logical_view({ parent: parent, logical_view_id: logical_view_id, logical_view: logical_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_logical_view(::Google::Cloud::Bigtable::Admin::V2::CreateLogicalViewRequest.new(parent: parent, logical_view_id: logical_view_id, logical_view: logical_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_logical_view_client_stub.call_rpc_count - end - end - - def test_get_logical_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::LogicalView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_logical_view({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_logical_view name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_logical_view ::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_logical_view({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_logical_view(::Google::Cloud::Bigtable::Admin::V2::GetLogicalViewRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_logical_view_client_stub.call_rpc_count - end - end - - def test_list_logical_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_logical_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_logical_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_logical_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_logical_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_logical_views ::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_logical_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_logical_views(::Google::Cloud::Bigtable::Admin::V2::ListLogicalViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_logical_views_client_stub.call_rpc_count - end - end - - def test_update_logical_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - logical_view = {} - update_mask = {} - - update_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::LogicalView), request["logical_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_logical_view logical_view: logical_view, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_logical_view ::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_logical_view({ logical_view: logical_view, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_logical_view(::Google::Cloud::Bigtable::Admin::V2::UpdateLogicalViewRequest.new(logical_view: logical_view, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_logical_view_client_stub.call_rpc_count - end - end - - def test_delete_logical_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_logical_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_logical_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_logical_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_logical_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_logical_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_logical_view ::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_logical_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_logical_view(::Google::Cloud::Bigtable::Admin::V2::DeleteLogicalViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_logical_view_client_stub.call_rpc_count - end - end - - def test_create_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - materialized_view_id = "hello world" - materialized_view = {} - - create_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["materialized_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_materialized_view parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_materialized_view ::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_materialized_view({ parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_materialized_view(::Google::Cloud::Bigtable::Admin::V2::CreateMaterializedViewRequest.new(parent: parent, materialized_view_id: materialized_view_id, materialized_view: materialized_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_materialized_view_client_stub.call_rpc_count - end - end - - def test_get_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::MaterializedView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_materialized_view({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_materialized_view name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_materialized_view ::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_materialized_view({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_materialized_view(::Google::Cloud::Bigtable::Admin::V2::GetMaterializedViewRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_materialized_view_client_stub.call_rpc_count - end - end - - def test_list_materialized_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_materialized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_materialized_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_materialized_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_materialized_views parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_materialized_views ::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_materialized_views({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_materialized_views(::Google::Cloud::Bigtable::Admin::V2::ListMaterializedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_materialized_views_client_stub.call_rpc_count - end - end - - def test_update_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - materialized_view = {} - update_mask = {} - - update_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::MaterializedView), request["materialized_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_materialized_view materialized_view: materialized_view, update_mask: update_mask do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_materialized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_materialized_view({ materialized_view: materialized_view, update_mask: update_mask }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_materialized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateMaterializedViewRequest.new(materialized_view: materialized_view, update_mask: update_mask), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_materialized_view_client_stub.call_rpc_count - end - end - - def test_delete_materialized_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_materialized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_materialized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_materialized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_materialized_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_materialized_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_materialized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_materialized_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_materialized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteMaterializedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_materialized_view_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb deleted file mode 100644 index b4858530f9ca..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_table_admin_pb" -require "google/bigtable/admin/v2/bigtable_table_admin_services_pb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb deleted file mode 100644 index f660e3430c6e..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_paths_test.rb +++ /dev/null @@ -1,151 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_authorized_view_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.authorized_view_path project: "value0", instance: "value1", table: "value2", authorized_view: "value3" - assert_equal "projects/value0/instances/value1/tables/value2/authorizedViews/value3", path - end - end - - def test_backup_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.backup_path project: "value0", instance: "value1", cluster: "value2", backup: "value3" - assert_equal "projects/value0/instances/value1/clusters/value2/backups/value3", path - end - end - - def test_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cluster_path project: "value0", instance: "value1", cluster: "value2" - assert_equal "projects/value0/instances/value1/clusters/value2", path - end - end - - def test_crypto_key_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path - end - end - - def test_instance_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.instance_path project: "value0", instance: "value1" - assert_equal "projects/value0/instances/value1", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_schema_bundle_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.schema_bundle_path project: "value0", instance: "value1", table: "value2", schema_bundle: "value3" - assert_equal "projects/value0/instances/value1/tables/value2/schemaBundles/value3", path - end - end - - def test_snapshot_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.snapshot_path project: "value0", instance: "value1", cluster: "value2", snapshot: "value3" - assert_equal "projects/value0/instances/value1/clusters/value2/snapshots/value3", path - end - end - - def test_table_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.table_path project: "value0", instance: "value1", table: "value2" - assert_equal "projects/value0/instances/value1/tables/value2", path - end - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb deleted file mode 100644 index 44ea7cd17fc5..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/google/cloud/bigtable/admin/v2/bigtable_table_admin_test.rb +++ /dev/null @@ -1,2339 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/bigtable/admin/v2/bigtable_table_admin_pb" -require "google/cloud/bigtable/admin/v2/bigtable_table_admin" - -class ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_table - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - table = {} - initial_splits = [{}] - - create_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest::Split, request["initial_splits"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_table parent: parent, table_id: table_id, table: table, initial_splits: initial_splits do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_table ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_table({ parent: parent, table_id: table_id, table: table, initial_splits: initial_splits }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_table(::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest.new(parent: parent, table_id: table_id, table: table, initial_splits: initial_splits), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_table_client_stub.call_rpc_count - end - end - - def test_create_table_from_snapshot - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - source_snapshot = "hello world" - - create_table_from_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_table_from_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal "hello world", request["source_snapshot"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_table_from_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_table_from_snapshot parent: parent, table_id: table_id, source_snapshot: source_snapshot do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_table_from_snapshot ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_table_from_snapshot({ parent: parent, table_id: table_id, source_snapshot: source_snapshot }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_table_from_snapshot(::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest.new(parent: parent, table_id: table_id, source_snapshot: source_snapshot), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_table_from_snapshot_client_stub.call_rpc_count - end - end - - def test_list_tables - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - view = :VIEW_UNSPECIFIED - page_size = 42 - page_token = "hello world" - - list_tables_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_tables, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, request - assert_equal "hello world", request["parent"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_tables_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_tables parent: parent, view: view, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_tables ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_tables({ parent: parent, view: view, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_tables(::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest.new(parent: parent, view: view, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_tables_client_stub.call_rpc_count - end - end - - def test_get_table - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :VIEW_UNSPECIFIED - - get_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, request - assert_equal "hello world", request["name"] - assert_equal :VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_table({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_table name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_table ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_table({ name: name, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_table(::Google::Cloud::Bigtable::Admin::V2::GetTableRequest.new(name: name, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_table_client_stub.call_rpc_count - end - end - - def test_update_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - table = {} - update_mask = {} - ignore_warnings = true - - update_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Table), request["table"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_table table: table, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_table ::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_table({ table: table, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_table(::Google::Cloud::Bigtable::Admin::V2::UpdateTableRequest.new(table: table, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_table_client_stub.call_rpc_count - end - end - - def test_delete_table - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_table({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_table name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_table ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_table({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_table(::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_table_client_stub.call_rpc_count - end - end - - def test_undelete_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - undelete_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :undelete_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, undelete_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.undelete_table({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.undelete_table name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.undelete_table ::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.undelete_table({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.undelete_table(::Google::Cloud::Bigtable::Admin::V2::UndeleteTableRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, undelete_table_client_stub.call_rpc_count - end - end - - def test_create_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - authorized_view_id = "hello world" - authorized_view = {} - - create_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["authorized_view_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_authorized_view parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_authorized_view ::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_authorized_view({ parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_authorized_view(::Google::Cloud::Bigtable::Admin::V2::CreateAuthorizedViewRequest.new(parent: parent, authorized_view_id: authorized_view_id, authorized_view: authorized_view), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_authorized_view_client_stub.call_rpc_count - end - end - - def test_list_authorized_views - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - view = :RESPONSE_VIEW_UNSPECIFIED - - list_authorized_views_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_authorized_views, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_authorized_views_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_authorized_views parent: parent, page_size: page_size, page_token: page_token, view: view do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_authorized_views ::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_authorized_views({ parent: parent, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_authorized_views(::Google::Cloud::Bigtable::Admin::V2::ListAuthorizedViewsRequest.new(parent: parent, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_authorized_views_client_stub.call_rpc_count - end - end - - def test_get_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - view = :RESPONSE_VIEW_UNSPECIFIED - - get_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal :RESPONSE_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_authorized_view({ name: name, view: view }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_authorized_view name: name, view: view do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_authorized_view ::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_authorized_view({ name: name, view: view }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_authorized_view(::Google::Cloud::Bigtable::Admin::V2::GetAuthorizedViewRequest.new(name: name, view: view), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_authorized_view_client_stub.call_rpc_count - end - end - - def test_update_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - authorized_view = {} - update_mask = {} - ignore_warnings = true - - update_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::AuthorizedView), request["authorized_view"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_authorized_view authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_authorized_view ::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_authorized_view({ authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_authorized_view(::Google::Cloud::Bigtable::Admin::V2::UpdateAuthorizedViewRequest.new(authorized_view: authorized_view, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_authorized_view_client_stub.call_rpc_count - end - end - - def test_delete_authorized_view - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_authorized_view_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_authorized_view, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_authorized_view_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_authorized_view({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_authorized_view name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_authorized_view ::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_authorized_view({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_authorized_view(::Google::Cloud::Bigtable::Admin::V2::DeleteAuthorizedViewRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_authorized_view_client_stub.call_rpc_count - end - end - - def test_modify_column_families - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Table.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - modifications = [{}] - ignore_warnings = true - - modify_column_families_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :modify_column_families, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, request - assert_equal "hello world", request["name"] - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification, request["modifications"].first - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, modify_column_families_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.modify_column_families name: name, modifications: modifications, ignore_warnings: ignore_warnings do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.modify_column_families ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.modify_column_families({ name: name, modifications: modifications, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.modify_column_families(::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest.new(name: name, modifications: modifications, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, modify_column_families_client_stub.call_rpc_count - end - end - - def test_drop_row_range - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - row_key_prefix = "hello world" - - drop_row_range_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :drop_row_range, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["row_key_prefix"] - assert_equal :row_key_prefix, request.target - refute_nil options - end - - Gapic::ServiceStub.stub :new, drop_row_range_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.drop_row_range name: name, row_key_prefix: row_key_prefix do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.drop_row_range ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.drop_row_range({ name: name, row_key_prefix: row_key_prefix }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.drop_row_range(::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest.new(name: name, row_key_prefix: row_key_prefix), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, drop_row_range_client_stub.call_rpc_count - end - end - - def test_generate_consistency_token - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - generate_consistency_token_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :generate_consistency_token, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, generate_consistency_token_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.generate_consistency_token({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.generate_consistency_token name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.generate_consistency_token ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.generate_consistency_token({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.generate_consistency_token(::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, generate_consistency_token_client_stub.call_rpc_count - end - end - - def test_check_consistency - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - consistency_token = "hello world" - standard_read_remote_writes = {} - - check_consistency_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :check_consistency, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["consistency_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::StandardReadRemoteWrites), request["standard_read_remote_writes"] - assert_equal :standard_read_remote_writes, request.mode - refute_nil options - end - - Gapic::ServiceStub.stub :new, check_consistency_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.check_consistency name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.check_consistency ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.check_consistency({ name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.check_consistency(::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest.new(name: name, consistency_token: consistency_token, standard_read_remote_writes: standard_read_remote_writes), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, check_consistency_client_stub.call_rpc_count - end - end - - def test_snapshot_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - cluster = "hello world" - snapshot_id = "hello world" - ttl = {} - description = "hello world" - - snapshot_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :snapshot_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["cluster"] - assert_equal "hello world", request["snapshot_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] - assert_equal "hello world", request["description"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, snapshot_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.snapshot_table name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.snapshot_table ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.snapshot_table({ name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.snapshot_table(::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest.new(name: name, cluster: cluster, snapshot_id: snapshot_id, ttl: ttl, description: description), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, snapshot_table_client_stub.call_rpc_count - end - end - - def test_get_snapshot - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Snapshot.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_snapshot({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_snapshot name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_snapshot ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_snapshot({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_snapshot(::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_snapshot_client_stub.call_rpc_count - end - end - - def test_list_snapshots - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_snapshots, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_snapshots_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_snapshots parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_snapshots ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_snapshots({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_snapshots(::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_snapshots_client_stub.call_rpc_count - end - end - - def test_delete_snapshot - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_snapshot, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_snapshot({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_snapshot name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_snapshot ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_snapshot({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_snapshot(::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_snapshot_client_stub.call_rpc_count - end - end - - def test_create_backup - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - backup_id = "hello world" - backup = {} - - create_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["backup_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_backup parent: parent, backup_id: backup_id, backup: backup do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_backup ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_backup({ parent: parent, backup_id: backup_id, backup: backup }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_backup(::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest.new(parent: parent, backup_id: backup_id, backup: backup), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_backup_client_stub.call_rpc_count - end - end - - def test_get_backup - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_backup({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_backup name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_backup ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_backup({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_backup(::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_backup_client_stub.call_rpc_count - end - end - - def test_update_backup - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::Backup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - backup = {} - update_mask = {} - - update_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::Backup), request["backup"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_backup({ backup: backup, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_backup backup: backup, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_backup ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_backup({ backup: backup, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_backup(::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest.new(backup: backup, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_backup_client_stub.call_rpc_count - end - end - - def test_delete_backup - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_backup({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_backup name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_backup ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_backup({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_backup(::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_backup_client_stub.call_rpc_count - end - end - - def test_list_backups - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - order_by = "hello world" - page_size = 42 - page_token = "hello world" - - list_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_backups, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_backups_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_backups parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_backups ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_backups({ parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_backups(::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest.new(parent: parent, filter: filter, order_by: order_by, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_backups_client_stub.call_rpc_count - end - end - - def test_restore_table - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - table_id = "hello world" - backup = "hello world" - - restore_table_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :restore_table, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["table_id"] - assert_equal "hello world", request["backup"] - assert_equal :backup, request.source - refute_nil options - end - - Gapic::ServiceStub.stub :new, restore_table_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.restore_table({ parent: parent, table_id: table_id, backup: backup }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.restore_table parent: parent, table_id: table_id, backup: backup do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.restore_table ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.restore_table({ parent: parent, table_id: table_id, backup: backup }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.restore_table(::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest.new(parent: parent, table_id: table_id, backup: backup), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, restore_table_client_stub.call_rpc_count - end - end - - def test_copy_backup - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - backup_id = "hello world" - source_backup = "hello world" - expire_time = {} - - copy_backup_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :copy_backup, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["backup_id"] - assert_equal "hello world", request["source_backup"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["expire_time"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, copy_backup_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.copy_backup parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.copy_backup ::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.copy_backup({ parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.copy_backup(::Google::Cloud::Bigtable::Admin::V2::CopyBackupRequest.new(parent: parent, backup_id: backup_id, source_backup: source_backup, expire_time: expire_time), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, copy_backup_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_create_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - schema_bundle_id = "hello world" - schema_bundle = {} - - create_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["schema_bundle_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_schema_bundle parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_schema_bundle({ parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::CreateSchemaBundleRequest.new(parent: parent, schema_bundle_id: schema_bundle_id, schema_bundle: schema_bundle), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_schema_bundle_client_stub.call_rpc_count - end - end - - def test_update_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - schema_bundle = {} - update_mask = {} - ignore_warnings = true - - update_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle), request["schema_bundle"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal true, request["ignore_warnings"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_schema_bundle schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_schema_bundle({ schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::UpdateSchemaBundleRequest.new(schema_bundle: schema_bundle, update_mask: update_mask, ignore_warnings: ignore_warnings), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_schema_bundle_client_stub.call_rpc_count - end - end - - def test_get_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::SchemaBundle.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_schema_bundle({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_schema_bundle name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_schema_bundle({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::GetSchemaBundleRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_schema_bundle_client_stub.call_rpc_count - end - end - - def test_list_schema_bundles - # Create GRPC objects. - grpc_response = ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_schema_bundles_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_schema_bundles, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_schema_bundles_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_schema_bundles parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_schema_bundles ::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_schema_bundles({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_schema_bundles(::Google::Cloud::Bigtable::Admin::V2::ListSchemaBundlesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_schema_bundles_client_stub.call_rpc_count - end - end - - def test_delete_schema_bundle - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - - delete_schema_bundle_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_schema_bundle, name - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_schema_bundle_client_stub do - # Create client - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_schema_bundle({ name: name, etag: etag }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_schema_bundle name: name, etag: etag do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_schema_bundle ::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_schema_bundle({ name: name, etag: etag }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_schema_bundle(::Google::Cloud::Bigtable::Admin::V2::DeleteSchemaBundleRequest.new(name: name, etag: etag), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_schema_bundle_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb b/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-bigtable-admin-v2/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct"